Represents a type token that is usable to assign a type to something.
See Also: Inherited members from dylan.NET.Tokenizer.AST.Tokens.Token.
|
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.) |
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
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
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
If set to true indicates that an array type is desired.
Syntax
public bool IsArrayRemarks
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
If set to true indicates that a byref type is desired.
Syntax
public bool IsByRefRemarks
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
Deprecated.
Syntax
public string OrdOpRemarks
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
Holds the System.Type instance representing the required type. This is set automatically if the standard type tokens are used.
Syntax
public Type RefTypRemarks
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
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