@@ -21,16 +21,12 @@ private string getLocationFilePath(@location_default loc) {
2121overlay [ local]
2222private string getSingleLocationFilePath ( @element e ) {
2323 exists ( @location_default loc |
24- // @var_decl has a direct location in the var_decls relation
2524 var_decls ( e , _, _, _, loc )
2625 or
27- // @fun_decl has a direct location in the fun_decls relation
2826 fun_decls ( e , _, _, _, loc )
2927 or
30- // @type_decl has a direct location in the type_decls relation
3128 type_decls ( e , _, loc )
3229 or
33- // @namespace_decl has a direct location in the namespace_decls relation
3430 namespace_decls ( e , _, loc , _)
3531 |
3632 result = getLocationFilePath ( loc )
@@ -43,19 +39,14 @@ private string getSingleLocationFilePath(@element e) {
4339overlay [ local]
4440private string getMultiLocationFilePath ( @element e ) {
4541 exists ( @location_default loc |
46- // @variable gets its location(s) from its @var_decl(s)
4742 exists ( @var_decl vd | var_decls ( vd , e , _, _, loc ) )
4843 or
49- // @function gets its location(s) from its @fun_decl(s)
5044 exists ( @fun_decl fd | fun_decls ( fd , e , _, _, loc ) )
5145 or
52- // @usertype gets its location(s) from its @type_decl(s)
5346 exists ( @type_decl td | type_decls ( td , e , loc ) )
5447 or
55- // @namespace gets its location(s) from its @namespace_decl(s)
5648 exists ( @namespace_decl nd | namespace_decls ( nd , e , loc , _) )
5749 or
58- // @macroinvocation gets its location(s) from macrolocationbind
5950 macrolocationbind ( e , loc )
6051 |
6152 result = getLocationFilePath ( loc )
0 commit comments