File tree Expand file tree Collapse file tree 10 files changed +12
-9
lines changed
lib/codeql/rust/elements/internal Expand file tree Collapse file tree 10 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change 11import rust
22
33from Function f
4- where exists ( f . getLocation ( ) . getFile ( ) . getRelativePath ( ) )
4+ where f . fromSource ( )
55select f
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ module Impl {
4141 * Gets the primary file where this element occurs.
4242 */
4343 File getFile ( ) { result = this .getLocation ( ) .getFile ( ) }
44+
45+ /** Holds if this element is from source code. */
46+ predicate fromSource ( ) { exists ( this .getFile ( ) .getRelativePath ( ) ) }
4447 }
4548
4649 /** Gets the non-synthesized location of `l`, if any. */
You can’t perform that action at this time.
0 commit comments