abstract class HCL::AST::Node

Direct Known Subclasses

Defined in:

hcl/ast/node.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : HCL::Any) ==

Instance methods inherited from class Object

===(other : HCL::Any) ===

Class methods inherited from class Object

from_hcl(string_or_io : String | IO, ctx : HCL::ExpressionContext = HCL::ExpressionContext.default_context) from_hcl

Constructor Detail

def self.new(source : String = "", token : Pegmatite::Token | Nil = nil) #

[View source]

Instance Method Detail

def accept(visitor) #

[View source]
def evaluate(ctx : ExpressionContext) #

[View source]
def inspect(io) #

[View source]
def source : String #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def value(ctx : ExpressionContext) : Any #

DEPRECATED Use #evaluate


[View source]