class Mint::Ast
- Mint::Ast
- Reference
- Object
Defined in:
ast.crast/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
- #comments : Array(Mint::Ast::Comment)
- #components : Array(Mint::Ast::Component)
-
#dup
Returns a shallow copy of this object.
- #enums : Array(Mint::Ast::Enum)
- #keywords : Array({Int32, Int32})
- #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)
-
#normalize
Normalizes the ast: - merges multiple modules with the same name
- #operators : Array({Int32, Int32})
- #providers : Array(Mint::Ast::Provider)
- #records : Array(Mint::Ast::RecordDefinition)
- #routes : Array(Mint::Ast::Routes)
- #stores : Array(Mint::Ast::Store)
- #suites : Array(Mint::Ast::Suite)
- #unified_locales : Array(Mint::Ast::Locale)
- #unified_modules : Array(Mint::Ast::Module)
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)
#
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.