Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
LocalVariable.cs
Go to the documentation of this file.
1
using
System.Globalization
;
2
using
System.Runtime.CompilerServices
;
3
4
namespace
System.Linq.Expressions.Interpreter
;
5
6
internal
sealed
class
LocalVariable
7
{
8
public
readonly
int
Index
;
9
10
private
int
_flags
;
11
12
public
bool
IsBoxed
13
{
14
get
15
{
16
return
(
_flags
& 1) != 0;
17
}
18
set
19
{
20
if
(
value
)
21
{
22
_flags
|= 1;
23
}
24
else
25
{
26
_flags
&= -2;
27
}
28
}
29
}
12
public
bool
IsBoxed
{
…
};
30
31
public
bool
InClosure
=> (
_flags
& 2) != 0;
32
33
internal
LocalVariable
(
int
index
,
bool
closure)
34
{
35
Index
=
index
;
36
_flags
= (closure ? 2 : 0);
37
}
33
internal
LocalVariable
(
int
index
,
bool
closure) {
…
}
38
39
public
override
string
ToString
()
40
{
41
IFormatProvider
invariantCulture =
CultureInfo
.
InvariantCulture
;
42
DefaultInterpolatedStringHandler
handler =
new
DefaultInterpolatedStringHandler
(3, 3, invariantCulture);
43
handler.
AppendFormatted
(
Index
);
44
handler.
AppendLiteral
(
": "
);
45
handler.
AppendFormatted
(
IsBoxed
?
"boxed"
:
null
);
46
handler.
AppendLiteral
(
" "
);
47
handler.
AppendFormatted
(
InClosure
?
"in closure"
:
null
);
48
return
string
.Create(invariantCulture, ref handler);
49
}
39
public
override
string
ToString
() {
…
}
50
}
6
internal
sealed
class
LocalVariable
{
…
};
System.Globalization.CultureInfo.InvariantCulture
static CultureInfo InvariantCulture
Definition
CultureInfo.cs:144
System.Globalization.CultureInfo
Definition
CultureInfo.cs:8
System.Linq.Expressions.Interpreter.LocalVariable._flags
int _flags
Definition
LocalVariable.cs:10
System.Linq.Expressions.Interpreter.LocalVariable.ToString
override string ToString()
Definition
LocalVariable.cs:39
System.Linq.Expressions.Interpreter.LocalVariable.LocalVariable
LocalVariable(int index, bool closure)
Definition
LocalVariable.cs:33
System.Linq.Expressions.Interpreter.LocalVariable.InClosure
bool InClosure
Definition
LocalVariable.cs:31
System.Linq.Expressions.Interpreter.LocalVariable.Index
readonly int Index
Definition
LocalVariable.cs:8
System.Linq.Expressions.Interpreter.LocalVariable
Definition
LocalVariable.cs:7
System.Runtime.CompilerServices.IsBoxed
Definition
IsBoxed.cs:4
System.IFormatProvider
Definition
IFormatProvider.cs:4
System.Globalization
Definition
Calendar.cs:1
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Linq.ExceptionArgument.index
@ index
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.ExceptionArgument.value
@ value
System.Index
Definition
Index.cs:7
System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral
void AppendLiteral(string value)
Definition
DefaultInterpolatedStringHandler.cs:78
System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted
void AppendFormatted(ReadOnlySpan< char > value)
Definition
DefaultInterpolatedStringHandler.cs:210
System.Runtime.CompilerServices.DefaultInterpolatedStringHandler
Definition
DefaultInterpolatedStringHandler.cs:10
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
LocalVariable.cs
Generated by
1.10.0