mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
use Identifier instead of just a plain string when getting tuple-element-names
This commit is contained in:
@@ -4,6 +4,6 @@ query predicate test_TupleTypeExpr(TupleTypeExpr type, int n, int res0, TypeExpr
|
||||
res0 = type.getNumElementType() and res1 = type.getElementType(n)
|
||||
}
|
||||
|
||||
query predicate test_TupleTypeElementName(TupleTypeExpr type, int n, string name) {
|
||||
query predicate test_TupleTypeElementName(TupleTypeExpr type, int n, Identifier name) {
|
||||
name = type.getElementName(n)
|
||||
}
|
||||
|
||||
@@ -219,8 +219,8 @@ test_TupleTypeExpr
|
||||
| tst.ts:179:21:179:44 | [...Str ... umbers] | 0 | 2 | tst.ts:179:22:179:31 | ...Strings |
|
||||
| tst.ts:179:21:179:44 | [...Str ... umbers] | 1 | 2 | tst.ts:179:34:179:43 | ...Numbers |
|
||||
test_TupleTypeElementName
|
||||
| tst.ts:169:34:169:64 | [first: ... number] | 0 | first |
|
||||
| tst.ts:169:34:169:64 | [first: ... number] | 1 | second |
|
||||
| tst.ts:169:34:169:64 | [first: ... number] | 0 | tst.ts:169:35:169:39 | first |
|
||||
| tst.ts:169:34:169:64 | [first: ... number] | 1 | tst.ts:169:50:169:55 | second |
|
||||
test_FieldTypes
|
||||
| tst.ts:15:3:15:22 | numberField: number; | tst.ts:15:16:15:21 | number |
|
||||
| tst.ts:16:3:16:22 | stringField: string; | tst.ts:16:16:16:21 | string |
|
||||
|
||||
Reference in New Issue
Block a user