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

GenericTypeTok Class

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

Syntax

public class GenericTypeTok : TypeTok

Remarks

Used to represent generic types and the parameters to be substitited into their definition.

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

Members

See Also: Inherited members from TypeTok.

Public Constructors

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

Public Fields

IsArray bool . If set to true indicates that an array type is desired. (Inherited from TypeTok.)
IsByRef bool . If set to true indicates that a byref type is desired. (Inherited from TypeTok.)
Line int . The Line where this Token was found. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)
OrdOp string . Deprecated. (Inherited from TypeTok.)
Params TypeTok[]. Holds the type tokens for the type parameters that have to be substituted into this type.
RefTyp Type . Holds the System.Type instance representing the required type. This is set automatically if the standard type tokens are used. (Inherited from TypeTok.)
Value string . The textual value of the Token. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)

Public Methods

AddParam (TypeTok)
Adds a generic type parameter to the list of generic type parameters ie. 'Params'.
override
ToString () : string
Outputs the GenericTypeTok in terms of dylan.NET syntax.
override
ToString () : string
Outputs the TypeTok in terms of dylan.NET syntax. (Inherited from TypeTok.)
override
ToString () : string
Outputs the Token in terms of dylan.NET syntax. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.)

Member Details

GenericTypeTok Constructor

Constructs a new GenericTypeTok.

Syntax

public GenericTypeTok ()

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.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

GenericTypeTok Constructor

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

Syntax

public GenericTypeTok (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.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6

AddParam Method

Adds a generic type parameter to the list of generic type parameters ie. 'Params'.

Syntax

public void AddParam (TypeTok param)

Parameters

param
A type token representing a generic type parameter.

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

Params Field

Holds the type tokens for the type parameters that have to be substituted into this type.

Syntax

public TypeTok[] Params

Remarks

The parameters may be generic or non-generic.

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

ToString Method

Outputs the GenericTypeTok in terms of dylan.NET syntax.

Syntax

public override string ToString ()

Returns

The dylan.NET syntax that represents this GenericTypeTok.

Remarks

This method is overrides the TypeTok implementation of ToString() since that 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.9.2, 11.2.9.3, 11.2.9.4, 11.2.9.5, 11.2.9.6