Class BoxArgument

All Implemented Interfaces:
BoxVisitable

public class BoxArgument extends BoxExpression
AST Node representing an argument. Argument can have a name like: a=10
  • Constructor Details

    • BoxArgument

      public BoxArgument(BoxExpression value, Position position, String sourceText)
      Creates the AST node for an anonymous argument
      Parameters:
      value - expression representing the value of the argument
      position - position of the statement in the source code
      sourceText - source code that originated the Node
    • BoxArgument

      public BoxArgument(BoxExpression name, BoxExpression value, Position position, String sourceText)
      Creates the AST node for a named argument
      Parameters:
      name - expression representing the name of the argument
      value - expression representing the value of the argument
      position - position of the statement in the source code
      sourceText - source code that originated the Node
  • Method Details