class Mint::Ast
- Mint::Ast
- Reference
- Object
Defined in:
ast.crast/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
- #comments : Array(Mint::Ast::Comment)
- #components : Array(Mint::Ast::Component)
-
#dup
Returns a shallow copy of this object.
- #includes?(node : Ast::Node, other : Ast::Node)
- #keywords : Array({Int64, Int64})
- #locales : Array(Mint::Ast::Locale)
- #main : Component | Nil
- #merge(ast) : self
- #modules : Array(Mint::Ast::Module)
- #new_line?(node1, node2)
- #nodes : Array(Mint::Ast::Node)
- #nodes_at_cursor(*, column : Int64, path : String, line : Int64) : Array(Ast::Node)
- #nodes_at_path(path : String) : Array(Ast::Node)
-
#normalize
Normalizes the ast: - merges multiple modules with the same name
- #operators : Array({Int64, Int64})
- #providers : Array(Mint::Ast::Provider)
- #routes : Array(Mint::Ast::Routes)
- #stores : Array(Mint::Ast::Store)
- #suites : Array(Mint::Ast::Suite)
- #type_definitions : Array(Mint::Ast::TypeDefinition)
- #unified_locales : Array(Mint::Ast::Locale)
- #unified_modules : Array(Mint::Ast::Module)
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)
#
Class Method Detail
Instance Method Detail
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.