RecursiveElementVisitor<R> class
A visitor that will recursively visit all of the element in an element model. For example, using an instance of this class to visit a CompilationUnitElement will also cause all of the types in the compilation unit to be visited.
Subclasses that override a visit method must either invoke the overridden visit method or must explicitly ask the visited element to visit its children. Failure to do so will cause the children of the visited element to not be visited.
Clients may extend this class.
- Implemented types
Constructors
- RecursiveElementVisitor()
-
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
-
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
-
visitExtensionTypeElement(
ExtensionTypeElement 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
-
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