class MetaCommit::Contracts::Ast

Structure which is returned by parser and can be traversed to collect children node information @attr [Class] parser_class class which was used to parse this ast

Attributes

parser_class[RW]

Public Instance Methods

children() click to toggle source

@return [Array<MetaCommit::Contracts::Ast>] children ast

# File lib/meta_commit_contracts/ast.rb, line 8
def children

end
first_column() click to toggle source

@return [Integer, nil] column where ast starts (starting from 0)

# File lib/meta_commit_contracts/ast.rb, line 23
def first_column

end
first_line() click to toggle source

@return [Integer, nil] line number where ast starts (starting from 1)

# File lib/meta_commit_contracts/ast.rb, line 13
def first_line

end
last_column() click to toggle source

@return [Integer, nil] column where ast ends (starting from 0)

# File lib/meta_commit_contracts/ast.rb, line 28
def last_column

end
last_line() click to toggle source

@return [Integer, nil] line number where ast ends (starting from 1)

# File lib/meta_commit_contracts/ast.rb, line 18
def last_line

end