A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ruby-syntax-tree.github.io/syntax_tree/SyntaxTree/Node below:

class SyntaxTree::Node - RDoc Documentation

  1. SyntaxTree::
  2. Node
class SyntaxTree::Node

This is the parent node of all of the syntax tree nodes. It’s pretty much exclusively here to make it easier to operate with the tree in cases where you’re trying to monkey-patch or strictly type.

Attributes Public Instance Methods

Source

def accept(visitor)
  raise NotImplementedError
end

Source

def child_nodes
  raise NotImplementedError
end

Source

def construct_keys
  PrettierPrint.format(+"") { |q| accept(MatchVisitor.new(q)) }
end

Source

def deconstruct
  raise NotImplementedError
end

Source

def deconstruct_keys(keys)
  raise NotImplementedError
end

Source

def end_char
  location.end_char
end

Source

def format(q)
  raise NotImplementedError
end

Source

def pretty_print(q)
  accept(PrettyPrintVisitor.new(q))
end

Source

def start_char
  location.start_char
end

Source

def to_json(*opts)
  accept(JSONVisitor.new).to_json(*opts)
end

Source

def to_mermaid
  accept(MermaidVisitor.new)
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4