TokenType enum
The type of object represented by a given token.
Constructors
- TokenType()
-
const
- TokenType.fromToken(int token)
-
Returns the type of the token.
factory
Values
- module → const TokenType
-
A compilation unit, an executable, or some other development unit, deployment unit, or run-time unit.
It is possible (though not required) to declare attributes on the module as a whole, including a name, a GUID, custom attributes, and so forth.
- typeRef → const TokenType
-
Reference to either a runtime reference type or a value type.
In a sense, the collection of type references in a module is the collection of compile-time import dependencies.
- typeDef → const TokenType
-
Declaration of either a runtime reference type (class or interface) or a value type.
- fieldDef → const TokenType
-
Declaration of a variable as a data member of a class or interface, or declaration of a global, module-level variable.
- methodDef → const TokenType
-
Definition of a method as a member of a class or interface, or as a global module-level method.
- paramDef → const TokenType
-
Definition of an optional data structure that stores additional metadata for the parameter.
It is not necessary to emit a data structure for each parameter in a method. However, when there is additional metadata to persist for the parameter, such as marshaling or type-mapping information, an optional parameter data structure can be created.
- interfaceImpl → const TokenType
-
A specific class’s implementation of a specific interface.
This metadata abstraction enables the storing of information that is the intersection of that which is specific to neither the class nor the interface.
- memberRef → const TokenType
-
Reference to a method or field.
A member reference is generated in metadata for every method invocation or field access that is made by any implementation in the current module, and a token is persisted in the Microsoft intermediate language (MSIL) stream. There is no runtime support for property or event references.
- customAttribute → const TokenType
-
An arbitrary data structure associated with any metadata object that can be referenced with an mdToken.
An exception is that custom attributes themselves cannot have custom attributes.
- permission → const TokenType
-
A declarative security permission set associated with mdTypeDef, mdMethodDef, and mdAssembly.
- signature → const TokenType
-
A local variable signature in the portable executable (PE) file or a method signature that is passed to an MSIL instruction.
- event → const TokenType
-
Declaration of a named event as a member of a class or interface.
- property → const TokenType
-
Declaration of a property as a member of a class or interface.
- moduleRef → const TokenType
-
A compile-time reference to a module, which records the source for type and member imports.
- typeSpec → const TokenType
-
A type, such as a boxed value type, that can be used as input to any MSIL instruction that takes a type.
- assembly → const TokenType
-
An assembly.
- assemblyRef → const TokenType
-
A reference to an assembly.
- file → const TokenType
-
A file.
- exportedType → const TokenType
- manifestResource → const TokenType
- genericParam → const TokenType
- methodSpec → const TokenType
-
A signature of an instantiated generic method.
- genericParamConstraint → const TokenType
- string → const TokenType
-
A string that is passed to an MSIL instruction.
- name → const TokenType
-
A name.
- baseType → const TokenType
-
A base type.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited