Skip to content

Commit 6ff8508

Browse files
authored
Java: Clarify documentation for Location predicate results
1 parent 6d80445 commit 6ff8508

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/ql/src/semmle/code/Location.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,16 @@ class Top extends @top {
9090

9191
/** A location maps language elements to positions in source files. */
9292
class Location extends @location {
93-
/** Gets the line number where this location starts. */
93+
/** Gets the 1-based line number (inclusive) where this location starts. */
9494
int getStartLine() { locations_default(this, _, result, _, _, _) }
9595

96-
/** Gets the column number where this location starts. */
96+
/** Gets the 1-based column number (inclusive) where this location starts. */
9797
int getStartColumn() { locations_default(this, _, _, result, _, _) }
9898

99-
/** Gets the line number where this location ends. */
99+
/** Gets the 1-based line number (inclusive) where this location ends. */
100100
int getEndLine() { locations_default(this, _, _, _, result, _) }
101101

102-
/** Gets the column number where this location ends. */
102+
/** Gets the 1-based column number (inclusive) where this location ends. */
103103
int getEndColumn() { locations_default(this, _, _, _, _, result) }
104104

105105
/**

0 commit comments

Comments
 (0)