AstNodeExtension extension

on
  • AstNode?

Properties

findComponentExpression → Expression?

Available on AstNode?, provided by the AstNodeExtension extension

Attempts to find and return the closest expression that encloses this and is an independent Nocterm Component.
no setter
findInstanceCreationExpression → InstanceCreationExpression?

Available on AstNode?, provided by the AstNodeExtension extension

Returns the instance creation expression that surrounds this node, if any, and otherwise null.
no setter
isComponentExpression bool

Available on AstNode?, provided by the AstNodeExtension extension

Whether this AstNode is the Nocterm class Component, or its subtype.
no setter

Methods

findArgumentNamed(String name) → NamedExpression?

Available on AstNode?, provided by the AstNodeExtension extension

Finds the named expression whose name is the given name that is an argument to a nocterm instance creation expression.