Parameter class

A parameter or return type.

Inheritance
Mixed in types

Constructors

Parameter(Scope scope, int token, int _methodToken, int sequence, int _attributes, TypeIdentifier typeIdentifier, String name, Uint8List signatureBlob)
Parameter.fromToken(Scope scope, int token)
Creates a parameter object from a provided token.
factory
Parameter.fromTypeIdentifier(Scope scope, int methodToken, TypeIdentifier runtimeType)
Creates a parameter object from a provided type identifier.
factory
Parameter.fromVoid(Scope scope, int methodToken)
Creates a void parameter object.
factory

Properties

customAttributes List<CustomAttribute>
Enumerate all attributes that this object has.
no setterinherited
hasDefault bool
Returns true if the parameter has a default value.
no setter
hasFieldMarshal bool
Returns true if the parameter has marshaling information.
no setter
hashCode int
The hash code for this object.
no setterinherited
isGlobal bool
Returns true if the token is marked as global.
no setterinherited
isInParam bool
Returns true if the parameter is passed into the method call.
no setter
isOptional bool
Returns true if the parameter is optional.
no setter
isOutParam bool
Returns true if the parameter is passed from the method return.
no setter
isResolvedToken bool
Returns true if the token maps to an entry in the WinMD database.
no setterinherited
name String
getter/setter pair
parent Method
Returns the Method that takes the parameter.
no setter
reader → IMetaDataImport2
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope Scope
The Scope that contains this token.
finalinherited
sequence int
final
signatureBlob Uint8List
final
token int
A unique identifier for this token in the metadata file.
finalinherited
tokenType TokenType
no setterinherited
typeIdentifier TypeIdentifier
getter/setter pair

Methods

attributeAsString(String attrName) String
Retrieve the string associated with a specific attribute name.
inherited
existsAttribute(String attrName) bool
Tests whether this object has an attribute matching the given name.
inherited
findAttribute(String attrName) CustomAttribute?
Returns the first attribute matching the given attribute name.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited