ThrowingElementVisitor<R> class

An AST visitor that will throw an exception if any of the visit methods that are invoked have not been overridden. It is intended to be a superclass for classes that implement the visitor pattern and need to (a) override all of the visit methods or (b) need to override a subset of the visit method and want to catch when any other visit methods have been invoked.

Clients may extend this class.

Implemented types

Constructors

ThrowingElementVisitor()
Initialize a newly created visitor.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
visitAugmentationImportElement(AugmentationImportElement element) → R?
override
visitClassElement(ClassElement element) → R?
override
visitCompilationUnitElement(CompilationUnitElement element) → R?
override
visitConstructorElement(ConstructorElement element) → R?
override
visitEnumElement(EnumElement element) → R?
override
visitExtensionElement(ExtensionElement element) → R?
override
visitFieldElement(FieldElement element) → R?
override
visitFieldFormalParameterElement(FieldFormalParameterElement element) → R?
override
visitFunctionElement(FunctionElement element) → R?
override
visitGenericFunctionTypeElement(GenericFunctionTypeElement element) → R?
override
visitLabelElement(LabelElement element) → R?
override
visitLibraryAugmentationElement(LibraryAugmentationElement element) → R?
override
visitLibraryElement(LibraryElement element) → R?
override
visitLibraryExportElement(LibraryExportElement element) → R?
override
visitLibraryImportElement(LibraryImportElement element) → R?
override
visitLocalVariableElement(LocalVariableElement element) → R?
override
visitMethodElement(MethodElement element) → R?
override
visitMixinElement(MixinElement element) → R?
override
visitMultiplyDefinedElement(MultiplyDefinedElement element) → R?
override
visitParameterElement(ParameterElement element) → R?
override
visitPartElement(PartElement element) → R?
override
visitPrefixElement(PrefixElement element) → R?
override
visitPropertyAccessorElement(PropertyAccessorElement element) → R?
override
visitSuperFormalParameterElement(SuperFormalParameterElement element) → R?
override
visitTopLevelVariableElement(TopLevelVariableElement element) → R?
override
visitTypeAliasElement(TypeAliasElement element) → R?
override
visitTypeParameterElement(TypeParameterElement element) → R?
override

Operators

operator ==(Object other) bool
The equality operator.
inherited