Interface ScopeOfNode

All Superinterfaces:
ASTNode, ExpressionNode, ForLoopInitializerNode, InitializerNode, SizeableNode

public interface ScopeOfNode extends ExpressionNode
Represents a CIVL-C scope-of expression, which has the form $scopeof(lhs), where lhs is a left-hand-side expression. This returns the dynamic scope (a value of type $scope) which contains the memory unit specified by lhs.
  • Method Details

    • expression

      ExpressionNode expression()
      Returns the argument (lhs) of this scope-of expression.
      Returns:
      the argument
    • setExpression

      void setExpression(ExpressionNode expr)
      Sets the argument of this scope-of expression
      Parameters:
      expr - the argument