Scope class

A metadata scope, which typically matches an on-disk file.

Rather than being created directly, you should obtain a scope from a MetadataStore, which caches scopes to avoid duplication.

Constructors

Scope(IMetaDataImport2 reader, IMetaDataAssemblyImport assemblyImport)

Properties

assemblyImport → IMetaDataAssemblyImport
final
assemblyRefs List<AssemblyRef>
no setter
delegates List<TypeDef>
Get an enumerated list of all delegates in this scope.
no setter
enums List<TypeDef>
Get an enumerated list of all enumerations in this scope.
no setter
executableKind PEKind
no setter
guid String
latefinal
hashCode int
The hash code for this object.
no setterinherited
moduleRefs List<ModuleRef>
Get an enumerated list of modules in this scope.
no setter
moduleToken int
no setter
name String
latefinal
reader → IMetaDataImport2
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeDefs Iterable<TypeDef>
Get an enumerated list of typedefs for this scope.
no setter
userStrings List<String>
Get an enumerated list of all hard-coded strings in this scope.
no setter
version String
no setter

Methods

findTypeDef(String name, {PreferredArchitecture preferredArchitecture = PreferredArchitecture.x64}) TypeDef?
Return the first typedef object matching the given name.
findTypeDefByToken(int token) TypeDef?
Return the typedef matching the given token.
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