tokenizer.AST : dylan.NET.Tokenizer.AST.Tokens.Literals Namespace

NullLiteral Class

Represents the 'null' keyword in the form of a literal of type object.

Syntax

public class NullLiteral : Literal

Remarks

This literal always evaluates to a null reference.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

Members

See Also: Inherited members from Literal.

Public Constructors

Constructs a new NullLiteral.
Constructs a new NullLiteral.

Public Fields

Conv bool . Holds a flag indicating whether a conversion is to be made or not. (Inherited from Literal.)
Line int . The Line where this Token was found. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)
LitTyp dylan.NET.Tokenizer.AST.Tokens.TypeToks.TypeTok . Holds a TypeTok indicating the type of literal represented. The RefTyp field of the TypeTok is useful during code generation. (Inherited from Literal.)
NullVal object . Holds a null reference.
TTok dylan.NET.Tokenizer.AST.Tokens.TypeToks.TypeTok . Holds a TypeTok indicating the type to convert to. (Inherited from Literal.)
Value string . The textual value of the Token. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)

Member Details

NullLiteral Constructor

Constructs a new NullLiteral.

Syntax

public NullLiteral ()

Remarks

Also sets LitTyp to an ObjectTok instance.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

NullLiteral Constructor

Constructs a new NullLiteral.

Syntax

public NullLiteral (string value)

Parameters

value
The value to give to the 'Value' field which in this case is not useful.

Remarks

Also sets LitTyp to an ObjectTok instance.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1

NullVal Field

Holds a null reference.

Syntax

public object NullVal

Remarks

The code generator will not use this null reference. Instead it will load one using the 'ldnull' opcode.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.Literals
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.4, 11.2.7.5, 11.2.7.6, 11.2.7.7, 11.2.7.8, 11.2.7.9, 11.2.8.1