class Mint::Ast

Defined in:

ast.cr
ast/access.cr
ast/argument.cr
ast/array_destructuring.cr
ast/array_literal.cr
ast/await.cr
ast/block.cr
ast/bool_literal.cr
ast/bracket_access.cr
ast/builtin.cr
ast/call.cr
ast/case.cr
ast/case_branch.cr
ast/comment.cr
ast/component.cr
ast/connect.cr
ast/connect_variable.cr
ast/constant.cr
ast/css_definition.cr
ast/css_font_face.cr
ast/css_keyframes.cr
ast/css_nested_at.cr
ast/css_selector.cr
ast/dbg.cr
ast/decode.cr
ast/defer.cr
ast/directives/file_based.cr
ast/directives/format.cr
ast/directives/highlight.cr
ast/discard.cr
ast/emit.cr
ast/encode.cr
ast/env.cr
ast/field.cr
ast/field_access.cr
ast/for.cr
ast/function.cr
ast/get.cr
ast/here_document.cr
ast/html_attribute.cr
ast/html_component.cr
ast/html_element.cr
ast/html_fragment.cr
ast/html_style.cr
ast/id.cr
ast/if.cr
ast/inline_function.cr
ast/interpolation.cr
ast/js.cr
ast/locale.cr
ast/locale_key.cr
ast/map.cr
ast/map_field.cr
ast/module.cr
ast/negated_expression.cr
ast/next_call.cr
ast/node.cr
ast/number_literal.cr
ast/operation.cr
ast/parenthesized_expression.cr
ast/pipe.cr
ast/property.cr
ast/provider.cr
ast/record.cr
ast/record_update.cr
ast/regexp_literal.cr
ast/return_call.cr
ast/route.cr
ast/routes.cr
ast/signal.cr
ast/spread.cr
ast/state.cr
ast/state_setter.cr
ast/statement.cr
ast/store.cr
ast/string_literal.cr
ast/style.cr
ast/suite.cr
ast/test.cr
ast/tuple_destructuring.cr
ast/tuple_literal.cr
ast/type.cr
ast/type_definition.cr
ast/type_definition_field.cr
ast/type_destructuring.cr
ast/type_variable.cr
ast/type_variant.cr
ast/unary_minus.cr
ast/use.cr
ast/variable.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(type_definitions : Array(Mint::Ast::TypeDefinition) = [] of TypeDefinition, operators : Array(Tuple(Int64, Int64)) = [] of Tuple(Int64, Int64), keywords : Array(Tuple(Int64, Int64)) = [] of Tuple(Int64, Int64), 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) #

[View source]

Class Method Detail

def self.new_line?(node1, node2) #

[View source]
def self.space_separated?(node1, node2) #

[View source]

Instance Method Detail

def comments : Array(Mint::Ast::Comment) #

[View source]
def components : Array(Mint::Ast::Component) #

[View source]
def dup #
Description copied from class Reference

Returns a shallow copy of this object.

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


[View source]
def includes?(node : Ast::Node, other : Ast::Node) #

[View source]
def keywords : Array({Int64, Int64}) #

[View source]
def locales : Array(Mint::Ast::Locale) #

[View source]
def main : Component | Nil #

[View source]
def merge(ast) : self #

[View source]
def modules : Array(Mint::Ast::Module) #

[View source]
def new_line?(node1, node2) #

[View source]
def nodes : Array(Mint::Ast::Node) #

[View source]
def nodes_at_cursor(*, column : Int64, path : String, line : Int64) : Array(Ast::Node) #

[View source]
def nodes_at_path(path : String) : Array(Ast::Node) #

[View source]
def normalize #

Normalizes the ast:

  • merges multiple modules with the same name

[View source]
def operators : Array({Int64, Int64}) #

[View source]
def providers : Array(Mint::Ast::Provider) #

[View source]
def routes : Array(Mint::Ast::Routes) #

[View source]
def stores : Array(Mint::Ast::Store) #

[View source]
def suites : Array(Mint::Ast::Suite) #

[View source]
def type_definitions : Array(Mint::Ast::TypeDefinition) #

[View source]
def unified_locales : Array(Mint::Ast::Locale) #

[View source]
def unified_modules : Array(Mint::Ast::Module) #

[View source]