зеркало из https://github.com/github/codeql.git
Swift: document `introducer_int`
This commit is contained in:
Родитель
7b181a2de0
Коммит
b65f49bd50
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче