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 Iterable<AssemblyRef>
latefinal
classes Iterable<TypeDef>
latefinal
delegates Iterable<TypeDef>
latefinal
enums Iterable<TypeDef>
latefinal
executableKind PEKind
no setter
guid String
latefinal
hashCode int
The hash code for this object.
no setterinherited
interfaces Iterable<TypeDef>
latefinal
moduleRefs Iterable<ModuleRef>
latefinal
moduleToken int
no setter
name String
latefinal
reader → IMetaDataImport2
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structs Iterable<TypeDef>
latefinal
typeDefs Iterable<TypeDef>
Get an enumerated list of typedefs for this scope.
no setter
userStrings Iterable<String>
latefinal
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