Skip to content

Commit d98fcdd

Browse files
committed
do not use upperId directly in type signature rules
1 parent b707815 commit d98fcdd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/codeql/ql-language-reference/ql-language-specification.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ A QL signature definition has the following syntax:
349349

350350
predicateSignature ::= qldoc? annotations "signature" head ";"
351351

352-
typeSignature ::= qldoc? annotations "signature" "class" upperId ("extends" type ("," type)*)? (";" | "{" signaturePredicate* "}")
352+
typeSignature ::= qldoc? annotations "signature" "class" classname ("extends" type ("," type)*)? (";" | "{" signaturePredicate* "}")
353353

354354
moduleSignature ::= qldoc? annotation* "signature" "module" moduleSignatureName parameters? "{" moduleSignatureBody "}"
355355

@@ -359,7 +359,7 @@ A QL signature definition has the following syntax:
359359

360360
defaultPredicate ::= qldoc? annotations "default" head "{" formula "}"
361361

362-
signatureType ::= qldoc? annotations "class" upperId ("extends" type ("," type)*)? "{" signaturePredicate* "}"
362+
signatureType ::= qldoc? annotations "class" classname ("extends" type ("," type)*)? "{" signaturePredicate* "}"
363363

364364

365365
A predicate signature definition extends the current module's declared predicate signature environment with a mapping from the predicate signature name and arity to the predicate signature definition.
@@ -2126,7 +2126,7 @@ The complete grammar for QL is as follows:
21262126

21272127
predicateSignature ::= qldoc? annotations "signature" head ";"
21282128

2129-
typeSignature ::= qldoc? annotations "signature" "class" upperId ("extends" type ("," type)*)? (";" | "{" signaturePredicate* "}")
2129+
typeSignature ::= qldoc? annotations "signature" "class" classname ("extends" type ("," type)*)? (";" | "{" signaturePredicate* "}")
21302130

21312131
moduleSignature ::= qldoc? annotation* "signature" "module" moduleSignatureName parameters? "{" moduleSignatureBody "}"
21322132

@@ -2136,7 +2136,7 @@ The complete grammar for QL is as follows:
21362136

21372137
defaultPredicate ::= qldoc? annotations "default" head "{" formula "}"
21382138

2139-
signatureType ::= qldoc? annotations "class" upperId ("extends" type ("," type)*)? "{" signaturePredicate* "}"
2139+
signatureType ::= qldoc? annotations "class" classname ("extends" type ("," type)*)? "{" signaturePredicate* "}"
21402140

21412141
select ::= ("from" var_decls)? ("where" formula)? "select" as_exprs ("order" "by" orderbys)?
21422142

0 commit comments

Comments
 (0)