Represents a generic type token that is usable to assign a type to something.
See Also: Inherited members from TypeTok.
|
Constructs a new GenericTypeTok. | |
|
Constructs a new GenericTypeTok assigning the type name's value as specified in the value parameter. |
|
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.) |
|
AddParam
(TypeTok)Adds a generic type parameter to the list of generic type parameters ie. 'Params'. |
|
override
|
ToString
()Outputs the GenericTypeTok in terms of dylan.NET syntax. |
|
override
|
ToString
()Outputs the TypeTok in terms of dylan.NET syntax. (Inherited from TypeTok.) |
|
override
|
ToString
()Outputs the Token in terms of dylan.NET syntax. (Inherited from dylan.NET.Tokenizer.AST.Tokens.Token.) |
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
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
Adds a generic type parameter to the list of generic type parameters ie. 'Params'.
Syntax
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
Holds the type tokens for the type parameters that have to be substituted into this type.
Syntax
public TypeTok[] ParamsRemarks
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
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