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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
visitClassElement(ClassElement element) → R
override
visitCompilationUnitElement(CompilationUnitElement element) → R
override
visitConstructorElement(ConstructorElement element) → R
override
visitExportElement(ExportElement element) → R
override
visitExtensionElement(ExtensionElement element) → R
override
visitFieldElement(FieldElement element) → R
override
visitFieldFormalParameterElement(FieldFormalParameterElement element) → R
override
visitFunctionElement(FunctionElement element) → R
override
visitFunctionTypeAliasElement(FunctionTypeAliasElement element) → R
override
visitGenericFunctionTypeElement(GenericFunctionTypeElement element) → R
override
visitImportElement(ImportElement element) → R
override
visitLabelElement(LabelElement element) → R
override
visitLibraryElement(LibraryElement element) → R
override
visitLocalVariableElement(LocalVariableElement element) → R
override
visitMethodElement(MethodElement element) → R
override
visitMultiplyDefinedElement(MultiplyDefinedElement element) → R
override
visitParameterElement(ParameterElement element) → R
override
visitPrefixElement(PrefixElement element) → R
override
visitPropertyAccessorElement(PropertyAccessorElement element) → R
override
visitTopLevelVariableElement(TopLevelVariableElement element) → R
override
visitTypeParameterElement(TypeParameterElement element) → R
override

Operators

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