Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LocalScope.cs
Go to the documentation of this file.
1
namespace
System.Reflection.Metadata
;
2
3
public
readonly
struct
LocalScope
4
{
5
private
readonly
MetadataReader
_reader
;
6
7
private
readonly
int
_rowId
;
8
9
private
LocalScopeHandle
Handle
=>
LocalScopeHandle
.
FromRowId
(
_rowId
);
10
11
public
MethodDefinitionHandle
Method
=>
_reader
.
LocalScopeTable
.GetMethod(
_rowId
);
12
13
public
ImportScopeHandle
ImportScope
=>
_reader
.
LocalScopeTable
.GetImportScope(
Handle
);
14
15
public
int
StartOffset
=>
_reader
.
LocalScopeTable
.GetStartOffset(
_rowId
);
16
17
public
int
Length
=>
_reader
.
LocalScopeTable
.GetLength(
_rowId
);
18
19
public
int
EndOffset
=>
_reader
.
LocalScopeTable
.GetEndOffset(
_rowId
);
20
21
internal
LocalScope
(
MetadataReader
reader,
LocalScopeHandle
handle
)
22
{
23
_reader
= reader;
24
_rowId
=
handle
.RowId;
25
}
26
27
public
LocalVariableHandleCollection
GetLocalVariables
()
28
{
29
return
new
LocalVariableHandleCollection
(
_reader
,
Handle
);
30
}
31
32
public
LocalConstantHandleCollection
GetLocalConstants
()
33
{
34
return
new
LocalConstantHandleCollection
(
_reader
,
Handle
);
35
}
36
37
public
LocalScopeHandleCollection.ChildrenEnumerator
GetChildren
()
38
{
39
return
new
LocalScopeHandleCollection
.
ChildrenEnumerator
(
_reader
,
_rowId
);
40
}
41
}
System.Reflection.Metadata.MetadataReader.LocalScopeTable
LocalScopeTableReader LocalScopeTable
Definition
MetadataReader.cs:169
System.Reflection.Metadata.MetadataReader
Definition
MetadataReader.cs:12
System.Reflection.Metadata
Definition
AssemblyExtensions.cs:4
System.ExceptionArgument.handle
@ handle
System.Reflection.Metadata.Handle
Definition
Handle.cs:6
System.Reflection.Metadata.ImportScopeHandle
Definition
ImportScopeHandle.cs:6
System.Reflection.Metadata.ImportScope
Definition
ImportScope.cs:4
System.Reflection.Metadata.LocalConstantHandleCollection
Definition
LocalConstantHandleCollection.cs:7
System.Reflection.Metadata.LocalScopeHandleCollection.ChildrenEnumerator
Definition
LocalScopeHandleCollection.cs:49
System.Reflection.Metadata.LocalScopeHandleCollection
Definition
LocalScopeHandleCollection.cs:7
System.Reflection.Metadata.LocalScopeHandle.FromRowId
static LocalScopeHandle FromRowId(int rowId)
Definition
LocalScopeHandle.cs:16
System.Reflection.Metadata.LocalScopeHandle
Definition
LocalScopeHandle.cs:4
System.Reflection.Metadata.LocalScope.LocalScope
LocalScope(MetadataReader reader, LocalScopeHandle handle)
Definition
LocalScope.cs:21
System.Reflection.Metadata.LocalScope.EndOffset
int EndOffset
Definition
LocalScope.cs:19
System.Reflection.Metadata.LocalScope.Length
int Length
Definition
LocalScope.cs:17
System.Reflection.Metadata.LocalScope._reader
readonly MetadataReader _reader
Definition
LocalScope.cs:5
System.Reflection.Metadata.LocalScope.GetChildren
LocalScopeHandleCollection.ChildrenEnumerator GetChildren()
Definition
LocalScope.cs:37
System.Reflection.Metadata.LocalScope.StartOffset
int StartOffset
Definition
LocalScope.cs:15
System.Reflection.Metadata.LocalScope.GetLocalVariables
LocalVariableHandleCollection GetLocalVariables()
Definition
LocalScope.cs:27
System.Reflection.Metadata.LocalScope.GetLocalConstants
LocalConstantHandleCollection GetLocalConstants()
Definition
LocalScope.cs:32
System.Reflection.Metadata.LocalScope._rowId
readonly int _rowId
Definition
LocalScope.cs:7
System.Reflection.Metadata.LocalScope.Method
MethodDefinitionHandle Method
Definition
LocalScope.cs:11
System.Reflection.Metadata.LocalScope
Definition
LocalScope.cs:4
System.Reflection.Metadata.LocalVariableHandleCollection
Definition
LocalVariableHandleCollection.cs:7
System.Reflection.Metadata.MethodDefinitionHandle
Definition
MethodDefinitionHandle.cs:4
source
System.Reflection.Metadata
System.Reflection.Metadata
LocalScope.cs
Generated by
1.10.0