Class: LIT::Builder::Object Private

Inherits:
Object
  • Object
show all
Defined in:
lib/lit/builder/object.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Constant Summary collapse

AST =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0

Parser::AST

Instance Method Summary collapse

Constructor Details

#initialize(ast, target_module) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Object.

Since:

  • 0.1.0



10
11
12
13
14
# File 'lib/lit/builder/object.rb', line 10

def initialize(ast, target_module)
  @ast = ast
  @target_module = target_module
  @type_checker = TypeChecker.new(target_module)
end

Instance Method Details

#buildObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



16
17
18
# File 'lib/lit/builder/object.rb', line 16

def build
  @ast.statements.map { |stmt| build_statement(stmt) }
end