class Mint::Ast

Defined in:

ast.cr
ast/access.cr
ast/argument.cr
ast/array_access.cr
ast/array_destructuring.cr
ast/array_literal.cr
ast/block.cr
ast/bool_literal.cr
ast/call.cr
ast/call_expression.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/data.cr
ast/decode.cr
ast/directives/asset.cr
ast/directives/documentation.cr
ast/directives/format.cr
ast/directives/highlight.cr
ast/directives/inline.cr
ast/directives/svg.cr
ast/encode.cr
ast/enum.cr
ast/enum_destructuring.cr
ast/enum_id.cr
ast/enum_option.cr
ast/enum_record.cr
ast/enum_record_definition.cr
ast/env.cr
ast/for.cr
ast/for_condition.cr
ast/function.cr
ast/get.cr
ast/here_doc.cr
ast/html_attribute.cr
ast/html_component.cr
ast/html_element.cr
ast/html_expression.cr
ast/html_fragment.cr
ast/html_style.cr
ast/if.cr
ast/inline_function.cr
ast/interpolation.cr
ast/js.cr
ast/locale.cr
ast/locale_key.cr
ast/member_access.cr
ast/module.cr
ast/module_access.cr
ast/negated_expression.cr
ast/next_call.cr
ast/node.cr
ast/number_literal.cr
ast/operation.cr
ast/option.cr
ast/parenthesized_expression.cr
ast/pipe.cr
ast/property.cr
ast/provider.cr
ast/record.cr
ast/record_definition.cr
ast/record_definition_field.cr
ast/record_field.cr
ast/record_update.cr
ast/regexp_literal.cr
ast/return_call.cr
ast/route.cr
ast/routes.cr
ast/spread.cr
ast/state.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_id.cr
ast/type_variable.cr
ast/unary_minus.cr
ast/use.cr
ast/variable.cr
ast/void.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(operators : Array(Tuple(Int32, Int32)) = [] of Tuple(Int32, Int32), keywords : Array(Tuple(Int32, Int32)) = [] of Tuple(Int32, Int32), records : Array(Mint::Ast::RecordDefinition) = [] of RecordDefinition, 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, enums : Array(Mint::Ast::Enum) = [] of Enum, 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 enums : Array(Mint::Ast::Enum) #

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

[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 normalize #

Normalizes the ast:

  • merges multiple modules with the same name

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

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

[View source]

[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 unified_locales : Array(Mint::Ast::Locale) #

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

[View source]