Class Expr.Assign
An assignment expression.
Inheritance
System.Object
Expr.Assign
Assembly: Perlang.Common.dll
Syntax
public class Assign : Expr, ITokenAware
Constructors
|
Improve this Doc
View Source
Assign(Expr.Identifier, Expr)
Declaration
public Assign(Expr.Identifier identifier, Expr value)
Parameters
Properties
|
Improve this Doc
View Source
Identifier
Gets the identifier which is the target of the assignment. For example, in the a = 42
expression, a
is the
identifier.
Declaration
public Expr.Identifier Identifier { get; }
Property Value
|
Improve this Doc
View Source
Name
Gets the name of the identifier being assigned to.
Declaration
public Token Name { get; }
Property Value
|
Improve this Doc
View Source
Token
Declaration
public Token Token { get; }
Property Value
|
Improve this Doc
View Source
Value
Gets the value being assigned. Can be either a compile-time constant or an expression with a dynamic
value, computed at runtime.
Declaration
public Expr Value { get; }
Property Value
Methods
|
Improve this Doc
View Source
Accept<TR>(Expr.IVisitor<TR>)
Declaration
public override TR Accept<TR>(Expr.IVisitor<TR> visitor)
Parameters
Returns
Type Parameters
Overrides
Perlang.Expr.Accept<TR>(Perlang.Expr.IVisitor<TR>)
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Implements