This visitor is responsible for composing the strings that get returned by the various inspect methods defined on each of the nodes.

Attributes
Read

The current prefix string.

Read

The list of commands that we need to execute in order to compose the final string.

Class Methods

Compose an inspect string for the given node.

Initializes a new instance of the InspectVisitor.

Instance Methods

Compose the final string.

Compose a string representing the given inner location field.

Compose a header for the given node.

Inspect a AliasGlobalVariableNode node.

Inspect a AliasMethodNode node.

Inspect a AlternationPatternNode node.

Inspect a AndNode node.

Inspect a ArgumentsNode node.

Inspect a ArrayNode node.

Inspect a ArrayPatternNode node.

Inspect a AssocNode node.

Inspect a AssocSplatNode node.

Inspect a BackReferenceReadNode node.

Inspect a BeginNode node.

Inspect a BlockArgumentNode node.

Inspect a BlockLocalVariableNode node.

Inspect a BlockNode node.

Inspect a BlockParameterNode node.

Inspect a BlockParametersNode node.

Inspect a BreakNode node.

Inspect a CallAndWriteNode node.

Inspect a CallNode node.

Inspect a CallOperatorWriteNode node.

Inspect a CallOrWriteNode node.

Inspect a CallTargetNode node.

Inspect a CapturePatternNode node.

Inspect a CaseMatchNode node.

Inspect a CaseNode node.

Inspect a ClassNode node.

Inspect a ClassVariableAndWriteNode node.

Inspect a ClassVariableOrWriteNode node.

Inspect a ClassVariableReadNode node.

Inspect a ClassVariableTargetNode node.

Inspect a ClassVariableWriteNode node.

Inspect a ConstantAndWriteNode node.

Inspect a ConstantOperatorWriteNode node.

Inspect a ConstantOrWriteNode node.

Inspect a ConstantPathAndWriteNode node.

Inspect a ConstantPathNode node.

Inspect a ConstantPathOrWriteNode node.

Inspect a ConstantPathTargetNode node.

Inspect a ConstantPathWriteNode node.

Inspect a ConstantReadNode node.

Inspect a ConstantTargetNode node.

Inspect a ConstantWriteNode node.

Inspect a DefNode node.

Inspect a DefinedNode node.

Inspect a ElseNode node.

Inspect a EmbeddedStatementsNode node.

Inspect a EmbeddedVariableNode node.

Inspect a EnsureNode node.

Inspect a FalseNode node.

Inspect a FindPatternNode node.

Inspect a FlipFlopNode node.

Inspect a FloatNode node.

Inspect a ForNode node.

Inspect a ForwardingArgumentsNode node.

Inspect a ForwardingParameterNode node.

Inspect a ForwardingSuperNode node.

Inspect a GlobalVariableAndWriteNode node.

Inspect a GlobalVariableOrWriteNode node.

Inspect a GlobalVariableReadNode node.

Inspect a GlobalVariableTargetNode node.

Inspect a GlobalVariableWriteNode node.

Inspect a HashNode node.

Inspect a HashPatternNode node.

Inspect a IfNode node.

Inspect a ImaginaryNode node.

Inspect a ImplicitNode node.

Inspect a ImplicitRestNode node.

Inspect a InNode node.

Inspect a IndexAndWriteNode node.

Inspect a IndexOperatorWriteNode node.

Inspect a IndexOrWriteNode node.

Inspect a IndexTargetNode node.

Inspect a InstanceVariableOrWriteNode node.

Inspect a InstanceVariableReadNode node.

Inspect a InstanceVariableTargetNode node.

Inspect a InstanceVariableWriteNode node.

Inspect a IntegerNode node.

Inspect a InterpolatedStringNode node.

Inspect a InterpolatedSymbolNode node.

Inspect a InterpolatedXStringNode node.

Inspect a ItParametersNode node.

Inspect a KeywordHashNode node.

Inspect a KeywordRestParameterNode node.

Inspect a LambdaNode node.

Inspect a LocalVariableAndWriteNode node.

Inspect a LocalVariableOrWriteNode node.

Inspect a LocalVariableReadNode node.

Inspect a LocalVariableTargetNode node.

Inspect a LocalVariableWriteNode node.

Inspect a MatchLastLineNode node.

Inspect a MatchPredicateNode node.

Inspect a MatchRequiredNode node.

Inspect a MatchWriteNode node.

Inspect a MissingNode node.

Inspect a ModuleNode node.

Inspect a MultiTargetNode node.

Inspect a MultiWriteNode node.

Inspect a NextNode node.

Inspect a NilNode node.

Inspect a NoKeywordsParameterNode node.

Inspect a NumberedParametersNode node.

Inspect a NumberedReferenceReadNode node.

Inspect a OptionalParameterNode node.

Inspect a OrNode node.

Inspect a ParametersNode node.

Inspect a ParenthesesNode node.

Inspect a PinnedExpressionNode node.

Inspect a PinnedVariableNode node.

Inspect a PostExecutionNode node.

Inspect a PreExecutionNode node.

Inspect a ProgramNode node.

Inspect a RangeNode node.

Inspect a RationalNode node.

Inspect a RedoNode node.

Inspect a RegularExpressionNode node.

Inspect a RequiredParameterNode node.

Inspect a RescueModifierNode node.

Inspect a RescueNode node.

Inspect a RestParameterNode node.

Inspect a RetryNode node.

Inspect a ReturnNode node.

Inspect a SelfNode node.

Inspect a ShareableConstantNode node.

Inspect a SingletonClassNode node.

Inspect a SourceEncodingNode node.

Inspect a SourceFileNode node.

Inspect a SourceLineNode node.

Inspect a SplatNode node.

Inspect a StatementsNode node.

Inspect a StringNode node.

Inspect a SuperNode node.

Inspect a SymbolNode node.

Inspect a TrueNode node.

Inspect a UndefNode node.

Inspect a UnlessNode node.

Inspect a UntilNode node.

Inspect a WhenNode node.

Inspect a WhileNode node.

Inspect a XStringNode node.

Inspect a YieldNode node.