@@ -18,7 +18,7 @@ predicate isOverlay() { databaseMetadata("isOverlay", "true") }
18
18
overlay [ local]
19
19
string getRawFile ( @locatable el ) {
20
20
exists ( @location loc , @file file |
21
- hasLocation ( el , loc ) and
21
+ ( hasLocation ( el , loc ) or xmllocations ( el , loc ) ) and
22
22
locations_default ( loc , file , _, _, _, _) and
23
23
files ( file , result )
24
24
)
@@ -92,23 +92,3 @@ overlay[discard_entity]
92
92
private predicate discardBaseConfigLocatable ( @configLocatable el ) {
93
93
overlayChangedFiles ( baseConfigLocatable ( el ) )
94
94
}
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