@@ -18,7 +18,7 @@ predicate isOverlay() { databaseMetadata("isOverlay", "true") }
1818overlay [ local]
1919string getRawFile ( @locatable el ) {
2020 exists ( @location loc , @file file |
21- hasLocation ( el , loc ) and
21+ ( hasLocation ( el , loc ) or xmllocations ( el , loc ) ) and
2222 locations_default ( loc , file , _, _, _, _) and
2323 files ( file , result )
2424 )
@@ -92,23 +92,3 @@ overlay[discard_entity]
9292private predicate discardBaseConfigLocatable ( @configLocatable el ) {
9393 overlayChangedFiles ( baseConfigLocatable ( el ) )
9494}
95-
96- overlay [ local]
97- private predicate baseXmlLocatable ( @xmllocatable l ) {
98- not isOverlay ( ) and not files ( l , _) and not xmlNs ( l , _, _, _)
99- }
100-
101- overlay [ local]
102- private predicate overlayHasXmlLocatable ( ) {
103- isOverlay ( ) and
104- exists ( @xmllocatable l | not files ( l , _) and not xmlNs ( l , _, _, _) )
105- }
106-
107- overlay [ discard_entity]
108- private predicate discardBaseXmlLocatable ( @xmllocatable el ) {
109- // The XML extractor is currently not incremental, so if
110- // the overlay contains any XML locatables, the overlay should
111- // contain a full extraction and all XML locatables from base
112- // should be discarded.
113- baseXmlLocatable ( el ) and overlayHasXmlLocatable ( )
114- }
0 commit comments