AccumulatingVisitor<A> class
A Visitor to accumulate values of type A
.
This Visitor let's you use multiple SimpleVisitors
traversing the AST only once and collecting the return
values in the accumulator
.
- Inheritance
-
- Object
- RecursiveVisitor
- AccumulatingVisitor
Constructors
-
AccumulatingVisitor({List<
SimpleVisitor< visitors = const []})List< >A> >
Properties
-
accumulator
↔ List<
A> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
visitors
↔ List<
SimpleVisitor< List< >A> > -
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
visitArgumentNode(
ArgumentNode node) → void -
Visit ArgumentNode.
override
-
visitBooleanValueNode(
BooleanValueNode node) → void -
Visit BooleanValueNode.
override
-
visitDefaultValueNode(
DefaultValueNode node) → void -
Visit DefaultValueNode.
override
-
visitDirectiveDefinitionNode(
DirectiveDefinitionNode node) → void -
Visit DirectiveDefinitionNode.
override
-
visitDirectiveNode(
DirectiveNode node) → void -
Visit DirectiveNode.
override
-
visitDocumentNode(
DocumentNode node) → void -
Visit DocumentNode.
override
-
visitEnumTypeDefinitionNode(
EnumTypeDefinitionNode node) → void -
Visit EnumTypeDefinitionNode.
override
-
visitEnumTypeExtensionNode(
EnumTypeExtensionNode node) → void -
Visit EnumTypeExtensionNode.
override
-
visitEnumValueDefinitionNode(
EnumValueDefinitionNode node) → void -
Visit EnumValueDefinitionNode.
override
-
visitEnumValueNode(
EnumValueNode node) → void -
Visit EnumValueNode.
override
-
visitFieldDefinitionNode(
FieldDefinitionNode node) → void -
Visit FieldDefinitionNode.
override
-
visitFieldNode(
FieldNode node) → void -
Visit FieldNode.
override
-
visitFloatValueNode(
FloatValueNode node) → void -
Visit FloatValueNode.
override
-
visitFragmentDefinitionNode(
FragmentDefinitionNode node) → void -
Visit FragmentDefinitionNode.
override
-
visitFragmentSpreadNode(
FragmentSpreadNode node) → void -
Visit FragmentSpreadNode.
override
-
visitInlineFragmentNode(
InlineFragmentNode node) → void -
Visit InlineFragmentNode.
override
-
visitInputObjectTypeDefinitionNode(
InputObjectTypeDefinitionNode node) → void -
Visit InputObjectTypeDefinitionNode.
override
-
visitInputObjectTypeExtensionNode(
InputObjectTypeExtensionNode node) → void -
Visit InputObjectTypeExtensionNode.
override
-
visitInputValueDefinitionNode(
InputValueDefinitionNode node) → void -
Visit InputValueDefinitionNode.
override
-
visitInterfaceTypeDefinitionNode(
InterfaceTypeDefinitionNode node) → void -
Visit InterfaceTypeDefinitionNode.
override
-
visitInterfaceTypeExtensionNode(
InterfaceTypeExtensionNode node) → void -
Visit InterfaceTypeExtensionNode.
override
-
visitIntValueNode(
IntValueNode node) → void -
Visit IntValueNode.
override
-
visitListTypeNode(
ListTypeNode node) → void -
Visit ListTypeNode.
override
-
visitListValueNode(
ListValueNode node) → void -
Visit ListValueNode.
override
-
visitNamedTypeNode(
NamedTypeNode node) → void -
Visit NamedTypeNode.
override
-
visitNameNode(
NameNode node) → void -
Visit NameNode.
override
-
visitNullValueNode(
NullValueNode node) → void -
Visit NullValueNode.
override
-
visitObjectFieldNode(
ObjectFieldNode node) → void -
Visit ObjectFieldNode.
override
-
visitObjectTypeDefinitionNode(
ObjectTypeDefinitionNode node) → void -
Visit ObjectTypeDefinitionNode.
override
-
visitObjectTypeExtensionNode(
ObjectTypeExtensionNode node) → void -
Visit ObjectTypeExtensionNode.
override
-
visitObjectValueNode(
ObjectValueNode node) → void -
Visit ObjectValueNode.
override
-
visitOperationDefinitionNode(
OperationDefinitionNode node) → void -
Visit OperationDefinitionNode.
override
-
visitOperationTypeDefinitionNode(
OperationTypeDefinitionNode node) → void -
Visit OperationTypeDefinitionNode.
override
-
visitScalarTypeDefinitionNode(
ScalarTypeDefinitionNode node) → void -
Visit ScalarTypeDefinitionNode.
override
-
visitScalarTypeExtensionNode(
ScalarTypeExtensionNode node) → void -
Visit ScalarTypeExtensionNode.
override
-
visitSchemaDefinitionNode(
SchemaDefinitionNode node) → void -
Visit SchemaDefinitionNode.
override
-
visitSchemaExtensionNode(
SchemaExtensionNode node) → void -
Visit SchemaExtensionNode.
override
-
visitSelectionSetNode(
SelectionSetNode node) → void -
Visit SelectionSetNode.
override
-
visitStringValueNode(
StringValueNode node) → void -
Visit StringValueNode.
override
-
visitTypeConditionNode(
TypeConditionNode node) → void -
Visit TypeConditionNode.
override
-
visitUnionTypeDefinitionNode(
UnionTypeDefinitionNode node) → void -
Visit UnionTypeDefinitionNode.
override
-
visitUnionTypeExtensionNode(
UnionTypeExtensionNode node) → void -
Visit UnionTypeExtensionNode.
override
-
visitVariableDefinitionNode(
VariableDefinitionNode node) → void -
Visit VariableDefinitionNode.
override
-
visitVariableNode(
VariableNode node) → void -
Visit VariableNode.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited