ThrowingElementVisitor2<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

ThrowingElementVisitor2()

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
visitClassElement(ClassElement2 element) → R?
override
visitConstructorElement(ConstructorElement2 element) → R?
override
visitEnumElement(EnumElement2 element) → R?
override
visitExtensionElement(ExtensionElement2 element) → R?
override
visitExtensionTypeElement(ExtensionTypeElement2 element) → R?
override
visitFieldElement(FieldElement2 element) → R?
override
visitFieldFormalParameterElement(FieldFormalParameterElement2 element) → R?
override
visitFormalParameterElement(FormalParameterElement element) → R?
override
visitGenericFunctionTypeElement(GenericFunctionTypeElement2 element) → R?
override
visitGetterElement(GetterElement element) → R?
override
visitLabelElement(LabelElement2 element) → R?
override
visitLibraryElement(LibraryElement2 element) → R?
override
visitLocalFunctionElement(LocalFunctionElement element) → R?
override
visitLocalVariableElement(LocalVariableElement2 element) → R?
override
visitMethodElement(MethodElement2 element) → R?
override
visitMixinElement(MixinElement2 element) → R?
override
visitMultiplyDefinedElement(MultiplyDefinedElement2 element) → R?
override
visitPrefixElement(PrefixElement2 element) → R?
override
visitSetterElement(SetterElement element) → R?
override
visitSuperFormalParameterElement(SuperFormalParameterElement2 element) → R?
override
visitTopLevelFunctionElement(TopLevelFunctionElement element) → R?
override
visitTopLevelVariableElement(TopLevelVariableElement2 element) → R?
override
visitTypeAliasElement(TypeAliasElement2 element) → R?
override
visitTypeParameterElement(TypeParameterElement2 element) → R?
override

Operators

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