class Highway::Compiler::Parse::Tree::Step

This class represents a step node in a parse tree. It contains information about a single step and its parameters.

Attributes

index[R]

Index of step in its scope.

@return [Integer]

name[R]

Name of the step.

@return [String]

parameters[R]

Parameters of the step.

@return [Hash]

preset[R]

Parent preset of the step.

@return [String]

stage[R]

Parent stage of the step.

@return [String]

Public Class Methods

new(index:, name:, parameters:, preset:, stage:) click to toggle source

Initialize an instance.

@param index [Integer] Index of step in its scope. @param name [String] Name of the step. @param parameters [Hash] Parameters of the step. @param preset [String] Parent preset of the step. @param stage [String] Parent stage of the step.

# File lib/highway/compiler/parse/tree/step.rb, line 24
def initialize(index:, name:, parameters:, preset:, stage:)
  @name = name
  @parameters = parameters
  @preset = preset
  @stage = stage
  @index = index
end