Class IrVarDecl
Represents a variable declaration.
public class IrVarDecl : IrStatement
- Inheritance
-
IrVarDecl
- Inherited Members
Constructors
IrVarDecl(string, IrType, IrExpression?)
Initializes a new instance of IrVarDecl with the specified name, type, and optional initializer.
public IrVarDecl(string name, IrType type, IrExpression? initializer = null)
Parameters
namestringtypeIrTypeinitializerIrExpression
Properties
Initializer
Gets the optional initializer expression.
public IrExpression? Initializer { get; }
Property Value
Kind
Gets the IR node kind for this statement.
public override IrNodeKind Kind { get; }
Property Value
Name
Gets the variable name.
public string Name { get; }
Property Value
Type
Gets the variable type.
public IrType Type { get; }