mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Swift: document introducer_int
This commit is contained in:
@@ -62,6 +62,7 @@ abbreviations = {
|
||||
"decl": "declaration",
|
||||
"repr": "representation",
|
||||
"param": "parameter",
|
||||
"int": "integer",
|
||||
}
|
||||
|
||||
abbreviations.update({f"{k}s": f"{v}s" for k, v in abbreviations.items()})
|
||||
|
||||
@@ -8,7 +8,8 @@ module Generated {
|
||||
override string getAPrimaryQlClass() { result = "ConcreteVarDecl" }
|
||||
|
||||
/**
|
||||
* Gets the introducer int of this concrete var declaration.
|
||||
* Gets the introducer enumeration value.
|
||||
* This is 0 if the variable was introduced with `let` and 1 if it was introduced with `var`.
|
||||
*/
|
||||
int getIntroducerInt() {
|
||||
result = Synth::convertConcreteVarDeclToRaw(this).(Raw::ConcreteVarDecl).getIntroducerInt()
|
||||
|
||||
@@ -200,7 +200,9 @@ class ConcreteFuncDecl(FuncDecl):
|
||||
pass
|
||||
|
||||
class ConcreteVarDecl(VarDecl):
|
||||
introducer_int: int
|
||||
introducer_int: int | doc("introducer enumeration value") | desc("""
|
||||
This is 0 if the variable was introduced with `let` and 1 if it was introduced with `var`.
|
||||
""")
|
||||
|
||||
class GenericTypeParamDecl(AbstractTypeParamDecl):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user