Swift: document introducer_int

This commit is contained in:
Paolo Tranquilli
2022-10-20 10:46:12 +02:00
parent 7b181a2de0
commit b65f49bd50
3 changed files with 6 additions and 2 deletions

View File

@@ -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()})

View File

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

View File

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