Swift: change doc of Immediate property getters

This commit is contained in:
Paolo Tranquilli
2022-10-20 10:39:37 +02:00
parent 6830c2f355
commit 7b181a2de0
114 changed files with 336 additions and 168 deletions

View File

@@ -60,7 +60,8 @@ module Generated {
{{#type_is_class}}
/**
* {{>ql_property_doc}} *
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
{{type}} getImmediate{{singular}}({{#is_repeated}}int index{{/is_repeated}}) {
{{^ipa}}

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the self parameter of this callable, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ParamDecl getImmediateSelfParam() {
result =
@@ -32,7 +33,8 @@ module Generated {
/**
* Gets the `index`th parameter of this callable (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ParamDecl getImmediateParam(int index) {
result =
@@ -59,7 +61,8 @@ module Generated {
/**
* Gets the body of this callable, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
BraceStmt getImmediateBody() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the location associated with this element in the code, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Location getImmediateLocation() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the file of this location.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
File getImmediateFile() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the `index`th accessor declaration of this abstract storage declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
AccessorDecl getImmediateAccessorDecl(int index) {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the module of this declaration.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ModuleDecl getImmediateModule() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th element of this enum case declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
EnumElementDecl getImmediateElement(int index) {
result =

View File

@@ -18,7 +18,8 @@ module Generated {
/**
* Gets the `index`th parameter of this enum element declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ParamDecl getImmediateParam(int index) {
result =

View File

@@ -13,7 +13,8 @@ module Generated {
/**
* Gets the extended type declaration of this extension declaration.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
NominalTypeDecl getImmediateExtendedTypeDecl() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the `index`th generic type parameter of this generic context (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
GenericTypeParamDecl getImmediateGenericTypeParam(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th active element of this if config declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
AstNode getImmediateActiveElement(int index) {
result =

View File

@@ -14,7 +14,8 @@ module Generated {
/**
* Gets the imported module of this import declaration, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ModuleDecl getImmediateImportedModule() {
result =
@@ -36,7 +37,8 @@ module Generated {
/**
* Gets the `index`th declaration of this import declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ValueDecl getImmediateDeclaration(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the precedence group of this infix operator declaration, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
PrecedenceGroupDecl getImmediatePrecedenceGroup() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the `index`th member of this iterable declaration context (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Decl getImmediateMember(int index) {
result =

View File

@@ -18,7 +18,8 @@ module Generated {
/**
* Gets the `index`th imported module of this module declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ModuleDecl getImmediateImportedModule(int index) {
result =
@@ -47,7 +48,8 @@ module Generated {
/**
* Gets the `index`th exported module of this module declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ModuleDecl getImmediateExportedModule(int index) {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the type of this nominal type declaration.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateType() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the `index`th init of this pattern binding declaration (0-based), if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateInit(int index) {
result =
@@ -39,7 +40,8 @@ module Generated {
/**
* Gets the `index`th pattern of this pattern binding declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediatePattern(int index) {
result =

View File

@@ -13,7 +13,8 @@ module Generated {
/**
* Gets the `index`th parameter of this subscript declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ParamDecl getImmediateParam(int index) {
result =
@@ -40,7 +41,8 @@ module Generated {
/**
* Gets the element type of this subscript declaration.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateElementType() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the body of this top level code declaration.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
BraceStmt getImmediateBody() {
result =

View File

@@ -14,7 +14,8 @@ module Generated {
/**
* Gets the `index`th base type of this type declaration (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateBaseType(int index) {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the interface type of this value declaration.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateInterfaceType() {
result =

View File

@@ -16,7 +16,8 @@ module Generated {
/**
* Gets the type of this var declaration.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateType() {
result = Synth::convertTypeFromRaw(Synth::convertVarDeclToRaw(this).(Raw::VarDecl).getType())
@@ -30,7 +31,8 @@ module Generated {
/**
* Gets the attached property wrapper type of this var declaration, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateAttachedPropertyWrapperType() {
result =
@@ -54,7 +56,8 @@ module Generated {
/**
* Gets the parent pattern of this var declaration, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateParentPattern() {
result =
@@ -76,7 +79,8 @@ module Generated {
/**
* Gets the parent initializer of this var declaration, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateParentInitializer() {
result =

View File

@@ -8,7 +8,8 @@ module Generated {
/**
* Gets the sub expression of this any try expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the function being applied.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateFunction() {
result =
@@ -24,7 +25,8 @@ module Generated {
/**
* Gets the `index`th argument passed to the applied function (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Argument getImmediateArgument(int index) {
result =

View File

@@ -16,7 +16,8 @@ module Generated {
/**
* Gets the expression of this argument.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateExpr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th element of this array expression (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateElement(int index) {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the dest of this assign expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateDest() {
result =
@@ -25,7 +26,8 @@ module Generated {
/**
* Gets the source of this assign expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSource() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this bind optional expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the `index`th binding declaration of this capture list expression (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
PatternBindingDecl getImmediateBindingDecl(int index) {
result =
@@ -41,7 +42,8 @@ module Generated {
/**
* Gets the closure body of this capture list expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ClosureExpr getImmediateClosureBody() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the declaration of this declaration ref expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Decl getImmediateDecl() {
result =
@@ -27,7 +28,8 @@ module Generated {
/**
* Gets the `index`th replacement type of this declaration ref expression (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateReplacementType(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the parameter declaration of this default argument expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ParamDecl getImmediateParamDecl() {
result =
@@ -36,7 +37,8 @@ module Generated {
/**
* Gets the caller side default of this default argument expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateCallerSideDefault() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th element of this dictionary expression (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateElement(int index) {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the qualifier of this dot syntax base ignored expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateQualifier() {
result =
@@ -27,7 +28,8 @@ module Generated {
/**
* Gets the sub expression of this dot syntax base ignored expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the base of this dynamic type expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateBase() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the sub expression of this enum is case expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the element of this enum is case expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
EnumElementDecl getImmediateElement() {
result =

View File

@@ -8,7 +8,8 @@ module Generated {
/**
* Gets the sub expression of this explicit cast expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the type of this expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateType() {
result = Synth::convertTypeFromRaw(Synth::convertExprToRaw(this).(Raw::Expr).getType())

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this force value expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -8,7 +8,8 @@ module Generated {
/**
* Gets the sub expression of this identity expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the condition of this if expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateCondition() {
result =
@@ -25,7 +26,8 @@ module Generated {
/**
* Gets the then expression of this if expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateThenExpr() {
result =
@@ -40,7 +42,8 @@ module Generated {
/**
* Gets the else expression of this if expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateElseExpr() {
result =

View File

@@ -8,7 +8,8 @@ module Generated {
/**
* Gets the sub expression of this implicit conversion expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this in out expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -13,7 +13,8 @@ module Generated {
/**
* Gets the interpolation expression of this interpolated string literal expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
OpaqueValueExpr getImmediateInterpolationExpr() {
result =
@@ -37,7 +38,8 @@ module Generated {
/**
* Gets the interpolation count expression of this interpolated string literal expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateInterpolationCountExpr() {
result =
@@ -61,7 +63,8 @@ module Generated {
/**
* Gets the literal capacity expression of this interpolated string literal expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateLiteralCapacityExpr() {
result =
@@ -83,7 +86,8 @@ module Generated {
/**
* Gets the appending expression of this interpolated string literal expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
TapExpr getImmediateAppendingExpr() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the base of this key path application expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateBase() {
result =
@@ -27,7 +28,8 @@ module Generated {
/**
* Gets the key path of this key path application expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateKeyPath() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the root of this key path expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
TypeRepr getImmediateRoot() {
result =
@@ -33,7 +34,8 @@ module Generated {
/**
* Gets the parsed path of this key path expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateParsedPath() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this lazy initializer expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the base of this lookup expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateBase() {
result =
@@ -24,7 +25,8 @@ module Generated {
/**
* Gets the member of this lookup expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Decl getImmediateMember() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the escaping closure of this make temporarily escapable expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
OpaqueValueExpr getImmediateEscapingClosure() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the nonescaping closure of this make temporarily escapable expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateNonescapingClosure() {
result =
@@ -45,7 +47,8 @@ module Generated {
/**
* Gets the sub expression of this make temporarily escapable expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the sub expression of this obj c selector expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the method of this obj c selector expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
AbstractFunctionDecl getImmediateMethod() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this one way expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the sub expression of this open existential expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the existential of this open existential expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateExistential() {
result =
@@ -45,7 +47,8 @@ module Generated {
/**
* Gets the opaque expression of this open existential expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
OpaqueValueExpr getImmediateOpaqueExpr() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this optional evaluation expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the constructor declaration of this other constructor declaration ref expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ConstructorDecl getImmediateConstructorDecl() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the sub expression of this rebind self in constructor expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the self of this rebind self in constructor expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
VarDecl getImmediateSelf() {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the base of this self apply expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateBase() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the `index`th element of this sequence expression (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateElement(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th argument of this subscript expression (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Argument getImmediateArgument(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the self of this super ref expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
VarDecl getImmediateSelf() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the sub expression of this tap expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =
@@ -32,7 +33,8 @@ module Generated {
/**
* Gets the body of this tap expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
BraceStmt getImmediateBody() {
result =
@@ -47,7 +49,8 @@ module Generated {
/**
* Gets the var of this tap expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
VarDecl getImmediateVar() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this tuple element expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the `index`th element of this tuple expression (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateElement(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the type representation of this type expression, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
TypeRepr getImmediateTypeRepr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the base of this unresolved dot expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateBase() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the sub pattern of this unresolved pattern expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateSubPattern() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub expression of this vararg expansion expression.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub pattern of this binding pattern.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateSubPattern() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the element of this enum element pattern.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
EnumElementDecl getImmediateElement() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the sub pattern of this enum element pattern, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateSubPattern() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the sub expression of this expression pattern.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the cast type representation of this is pattern, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
TypeRepr getImmediateCastTypeRepr() {
result =
@@ -33,7 +34,8 @@ module Generated {
/**
* Gets the sub pattern of this is pattern, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateSubPattern() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub pattern of this optional some pattern.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateSubPattern() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the sub pattern of this paren pattern.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateSubPattern() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the `index`th element of this tuple pattern (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateElement(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the sub pattern of this typed pattern.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediateSubPattern() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the type representation of this typed pattern, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
TypeRepr getImmediateTypeRepr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th element of this brace statement (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
AstNode getImmediateElement(int index) {
result =

View File

@@ -22,7 +22,8 @@ module Generated {
/**
* Gets the target of this break statement, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateTarget() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the pattern of this case label item.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediatePattern() {
result =
@@ -29,7 +30,8 @@ module Generated {
/**
* Gets the guard of this case label item, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateGuard() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the body of this case statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateBody() {
result =
@@ -27,7 +28,8 @@ module Generated {
/**
* Gets the `index`th label of this case statement (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
CaseLabelItem getImmediateLabel(int index) {
result =
@@ -54,7 +56,8 @@ module Generated {
/**
* Gets the `index`th variable of this case statement (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
VarDecl getImmediateVariable(int index) {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the boolean of this condition element, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateBoolean() {
result =
@@ -34,7 +35,8 @@ module Generated {
/**
* Gets the pattern of this condition element, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediatePattern() {
result =
@@ -56,7 +58,8 @@ module Generated {
/**
* Gets the initializer of this condition element, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateInitializer() {
result =

View File

@@ -22,7 +22,8 @@ module Generated {
/**
* Gets the target of this continue statement, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateTarget() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the body of this defer statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
BraceStmt getImmediateBody() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the body of this do catch statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateBody() {
result =
@@ -27,7 +28,8 @@ module Generated {
/**
* Gets the `index`th catch of this do catch statement (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
CaseStmt getImmediateCatch(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the body of this do statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
BraceStmt getImmediateBody() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the fallthrough source of this fallthrough statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
CaseStmt getImmediateFallthroughSource() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the fallthrough dest of this fallthrough statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
CaseStmt getImmediateFallthroughDest() {
result =

View File

@@ -13,7 +13,8 @@ module Generated {
/**
* Gets the pattern of this for each statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Pattern getImmediatePattern() {
result =
@@ -30,7 +31,8 @@ module Generated {
/**
* Gets the sequence of this for each statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSequence() {
result =
@@ -47,7 +49,8 @@ module Generated {
/**
* Gets the where of this for each statement, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateWhere() {
result =
@@ -67,7 +70,8 @@ module Generated {
/**
* Gets the body of this for each statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
BraceStmt getImmediateBody() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the body of this guard statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
BraceStmt getImmediateBody() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the then of this if statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateThen() {
result = Synth::convertStmtFromRaw(Synth::convertIfStmtToRaw(this).(Raw::IfStmt).getThen())
@@ -25,7 +26,8 @@ module Generated {
/**
* Gets the else of this if statement, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateElse() {
result = Synth::convertStmtFromRaw(Synth::convertIfStmtToRaw(this).(Raw::IfStmt).getElse())

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the condition of this labeled conditional statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
StmtCondition getImmediateCondition() {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the condition of this repeat while statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateCondition() {
result =
@@ -29,7 +30,8 @@ module Generated {
/**
* Gets the body of this repeat while statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateBody() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the result of this return statement, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateResult() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th element of this statement condition (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ConditionElement getImmediateElement(int index) {
result =

View File

@@ -12,7 +12,8 @@ module Generated {
/**
* Gets the expression of this switch statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateExpr() {
result =
@@ -27,7 +28,8 @@ module Generated {
/**
* Gets the `index`th case of this switch statement (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
CaseStmt getImmediateCase(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the sub expression of this throw statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateSubExpr() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the body of this while statement.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Stmt getImmediateBody() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the `index`th result of this yield statement (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Expr getImmediateResult(int index) {
result =

View File

@@ -8,7 +8,8 @@ module Generated {
/**
* Gets the result of this any function type.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateResult() {
result =
@@ -25,7 +26,8 @@ module Generated {
/**
* Gets the `index`th parameter type of this any function type (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateParamType(int index) {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the parent of this any generic type, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateParent() {
result =
@@ -31,7 +32,8 @@ module Generated {
/**
* Gets the declaration of this any generic type.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Decl getImmediateDeclaration() {
result =

View File

@@ -10,7 +10,8 @@ module Generated {
/**
* Gets the interface type of this archetype type.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateInterfaceType() {
result =
@@ -27,7 +28,8 @@ module Generated {
/**
* Gets the superclass of this archetype type, if it exists.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateSuperclass() {
result =
@@ -49,7 +51,8 @@ module Generated {
/**
* Gets the `index`th protocol of this archetype type (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
ProtocolDecl getImmediateProtocol(int index) {
result =

View File

@@ -9,7 +9,8 @@ module Generated {
/**
* Gets the `index`th argument type of this bound generic type (0-based).
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateArgType(int index) {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the basetype of this dependent member type.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateBaseType() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the associated type declaration of this dependent member type.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
AssociatedTypeDecl getImmediateAssociatedTypeDecl() {
result =

View File

@@ -11,7 +11,8 @@ module Generated {
/**
* Gets the key type of this dictionary type.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateKeyType() {
result =
@@ -28,7 +29,8 @@ module Generated {
/**
* Gets the value type of this dictionary type.
*
* This includes nodes from the "hidden" AST.
* This includes nodes from the "hidden" AST. It can be overridden in subclasses to change the
* behaviour of both the `Immediate` and non-`Immediate` versions.
*/
Type getImmediateValueType() {
result =

Some files were not shown because too many files have changed in this diff Show More