TCodeVarDeclarationStatement.Create Constructor
Creates an inline variable declaration with the specified name, type, and initializer.
Syntax
Unit: Bcl.Code.MetaClasses
constructor TCodeVarDeclarationStatement.Create(const AVarName: string; AVarType: TCodeTypeReference; AExpression: TCodeExpression);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AVarName | string | The variable name. |
| AVarType | TCodeTypeReference | The type reference for the variable, or nil for type inference. |
|
| AExpression | TCodeExpression | The initialization expression, or nil if none. |