class

Mint::Ast

Inherits Reference < Object

Constructors

new(operators : Array(NamedTuple(from: Mint::Parser::Location, to: Mint::Parser::Location)) = [] of ::NamedTuple(from: Parser::Location, to: Parser::Location), keywords : Array(NamedTuple(from: Mint::Parser::Location, to: Mint::Parser::Location)) = [] of ::NamedTuple(from: Parser::Location, to: Parser::Location), type_definitions : Array(Mint::Ast::TypeDefinition) = [] of TypeDefinition, unified_modules : Array(Mint::Ast::Module) = [] of Module, unified_locales : Array(Mint::Ast::Locale) = [] of Locale, components : Array(Mint::Ast::Component) = [] of Component, providers : Array(Mint::Ast::Provider) = [] of Provider, comments : Array(Mint::Ast::Comment) = [] of Comment, modules : Array(Mint::Ast::Module) = [] of Module, locales : Array(Mint::Ast::Locale) = [] of Locale, routes : Array(Mint::Ast::Routes) = [] of Routes, suites : Array(Mint::Ast::Suite) = [] of Suite, stores : Array(Mint::Ast::Store) = [] of Store, nodes : Array(Mint::Ast::Node) = [] of Node)
Source

Class methods

space_separated?(node1, node2)
Source

Instance methods

comments
Source
components
Source
dup

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.

Source
includes?(node : Ast::Node, other : Ast::Node)
Source
keywords
Source
locales
Source
main
Source
merge(ast) : self
Source
modules
Source
nodes
Source
nodes_at_cursor(*, column : Int64, path : String, line : Int64) : Array(Ast::Node)
Source
nodes_at_path(path : String) : Array(Ast::Node)
Source
normalize

Normalizes the ast:

  • merges multiple modules with the same name
Source
operators
Source
providers
Source
routes
Source
stores
Source
suites
Source
type_definitions
Source
unified_locales
Source
unified_modules
Source

Nested types