class Highway::Compiler::Analyze::Tree::Variable

This class represents a variable node in a semantic tree. It contains information about a single variable.

Attributes

name[R]

Name of the variable.

@return [String]

preset[R]

Parent preset of the variable.

@return [String]

value[R]

Value of the variable.

@return [Highway::Compiler::Analyze::Tree::Values::*]

Public Class Methods

new(name:, value:, preset:) click to toggle source

Initialize an instance.

@param name [String] Name of the variable. @param value [Highway::Compiler::Analyze::Tree::Values::*] Value of the variable. @param preset [String] Parent preset of the variable.

# File lib/highway/compiler/analyze/tree/variable.rb, line 22
def initialize(name:, value:, preset:)
  @name = name
  @value = value
  @preset = preset
end