Swift: document `introducer_int`

This commit is contained in:
Paolo Tranquilli 2022-10-20 10:46:12 +02:00
Родитель 7b181a2de0
Коммит b65f49bd50
3 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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