Class SourceLocation
A location in source code, comprising of a source file and a segment of text within the file.
Import path
import semmle.code.csharp.LocationDirect supertypes
Indirect supertypes
Predicates
| getFile | Gets the file of the location. |
| getMappedLocation | Gets the location that takes into account |
| hasLocationInfo | Holds if this element is at the specified location. The location spans column |
| toString | Gets a textual representation of this location. |
Inherited predicates
| before | Holds if this location starts before the specified location. | from Location |
| getEndColumn | Gets the 1-based column number (inclusive) where this location ends. | from Location |
| getEndLine | Gets the 1-based line number (inclusive) where this location ends. | from Location |
| getStartColumn | Gets the 1-based column number (inclusive) where this location starts. | from Location |
| getStartLine | Gets the 1-based line number (inclusive) where this location starts. | from Location |
| strictlyBefore | Holds if this location starts strictly before the specified location. | from Location |