File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
csharp/ql/src/semmle/code Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,6 @@ class Element extends DotNet::Element, @element {
2727 /** Gets a location of this element, including sources and assemblies. */
2828 override Location getALocation ( ) { none ( ) }
2929
30- override File getFile ( ) { result = getLocation ( ) .getFile ( ) }
31-
32- override predicate fromSource ( ) { this .getFile ( ) .fromSource ( ) }
33-
3430 /** Holds if this element is from an assembly. */
3531 predicate fromLibrary ( ) { this .getFile ( ) .fromLibrary ( ) }
3632
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ class Element extends @dotnet_element {
2222 Location getALocation ( ) { none ( ) }
2323
2424 /** Gets the file containing this element. */
25- File getFile ( ) { result = getLocation ( ) .getFile ( ) }
25+ final File getFile ( ) { result = this . getLocation ( ) .getFile ( ) }
2626
2727 /** Holds if this element is from source code. */
28- predicate fromSource ( ) { none ( ) }
28+ predicate fromSource ( ) { this . getFile ( ) . fromSource ( ) }
2929
3030 /**
3131 * Gets the "language" of this program element, as defined by the extension of the filename.
You can’t perform that action at this time.
0 commit comments