isComponentExpression property
bool
get
isComponentExpression
Whether this AstNode is the Nocterm class Component, or its subtype.
Implementation
bool get isComponentExpression {
return switch (this) {
null => false,
AstNode(parent: NamedType()) ||
AstNode(parent: AstNode(parent: NamedType())) => false,
AstNode(parent: ConstructorName()) => false,
NamedExpression() => false,
Expression(:final staticType) => staticType.isComponentType,
_ => false,
};
}