mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: use AccessPathSyntax.qll to parse input/output summary specs
This commit is contained in:
@@ -47,6 +47,9 @@ class AccessPath extends string instanceof AccessPath::Range {
|
||||
result = count(int n | exists(this.getRawToken(n))) and
|
||||
not hasSyntaxError()
|
||||
}
|
||||
|
||||
/** Gets the `n`th-last token, with 0 being the last token. */
|
||||
AccessPathToken getLastToken(int n) { result = getToken(getNumToken() - 1 - n) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user