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

TypeTok Class

Represents a type token that is usable to assign a type to something.

Syntax

public class TypeTok : dylan.NET.Tokenizer.AST.Tokens.Token

Remarks

All type tokens should directly or indirectly inherit from this class.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

Members

See Also: Inherited members from dylan.NET.Tokenizer.AST.Tokens.Token.

Public Constructors

Constructs a new TypeToken.
Constructs a new TypeTok assigning the type name's value as specified in the value parameter.
Constructs a new TypeTok from the given Type instance and infers the values of the Value,IsArray and IsByRef fields.

Public Fields

IsArray bool . If set to true indicates that an array type is desired.
IsByRef bool . If set to true indicates that a byref type is desired.
Line int . The Line where this Token was found. (Inherited from Token.)
OrdOp string . Deprecated.
RefTyp Type . Holds the System.Type instance representing the required type. This is set automatically if the standard type tokens are used.
Value string . The textual value of the Token. (Inherited from Token.)

Public Methods

override
ToString () : string
Outputs the TypeTok in terms of dylan.NET syntax.
override
ToString () : string
Outputs the Token in terms of dylan.NET syntax. (Inherited from Token.)

Member Details

TypeTok Constructor

Constructs a new TypeToken.

Syntax

public TypeTok ()

Remarks

If you want to pass the type name during construction use the other constructor.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

TypeTok Constructor

Constructs a new TypeTok assigning the type name's value as specified in the value parameter.

Syntax

public TypeTok (string value)

Parameters

value
A valid type name that is reachable given the defined lists of assemblies and namespaces to import.

Remarks

If you wish to set the type name later use the other constructor and set the 'Value' field acccordingly.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

TypeTok Constructor

Constructs a new TypeTok from the given Type instance and infers the values of the Value,IsArray and IsByRef fields.

Syntax

public TypeTok (Type value)

Parameters

value
A Type instance to convert into a TypeTok.

Remarks

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

IsArray Field

If set to true indicates that an array type is desired.

Syntax

public bool IsArray

Remarks

Usually this field gets set true by the parser after finding '[]' after the type name.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

IsByRef Field

If set to true indicates that a byref type is desired.

Syntax

public bool IsByRef

Remarks

Normally this field gets set true by the parser after finding '&' after the type name.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

OrdOp Field

Deprecated.

Syntax

public string OrdOp

Remarks

Deprecated.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2

RefTyp Field

Holds the System.Type instance representing the required type. This is set automatically if the standard type tokens are used.

Syntax

public Type RefTyp

Remarks

Make sure not to set this manually. Let the constructors of the standard type tokens or the parser/codegen infer its value instead.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.7.2, 11.2.7.3, 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, 11.2.8.2, 11.2.8.3, 11.2.8.4, 11.2.8.5, 11.2.8.6, 11.2.8.7, 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

ToString Method

Outputs the TypeTok in terms of dylan.NET syntax.

Syntax

public override string ToString ()

Returns

The dylan.NET syntax that represents this TypeTok.

Remarks

This method is overridden in GenericTypeTok as this implementation does not capture generic type parameters.

Requirements

Namespace: dylan.NET.Tokenizer.AST.Tokens.TypeToks
Assembly: tokenizer.AST (in tokenizer.AST.dll)
Assembly Versions: 11.2.8.9, 11.2.9.1, 11.2.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6