Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ScopeWithType.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
using
System.Collections.ObjectModel
;
3
4
namespace
System.Linq.Expressions
;
5
6
internal
sealed
class
ScopeWithType
:
ScopeN
7
{
8
public
sealed
override
Type
Type
{
get
; }
9
10
internal
ScopeWithType
(
IReadOnlyList<ParameterExpression>
variables
,
IReadOnlyList<Expression>
expressions
,
Type
type
)
11
:
base
(
variables
,
expressions
)
12
{
13
Type
=
type
;
14
}
15
16
internal
override
BlockExpression
Rewrite
(
ReadOnlyCollection<ParameterExpression>
variables
,
Expression
[]
args
)
17
{
18
if
(
args
==
null
)
19
{
20
Expression
.
ValidateVariables
(
variables
,
"variables"
);
21
return
new
ScopeWithType
(
variables
,
base
.Body,
Type
);
22
}
23
return
new
ScopeWithType
(
ReuseOrValidateVariables
(
variables
),
args
,
Type
);
24
}
25
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Linq.Expressions.BlockExpression
Definition
BlockExpression.cs:12
System.Linq.Expressions.Expression.ValidateVariables
static void ValidateVariables(ReadOnlyCollection< ParameterExpression > varList, string collectionName)
Definition
Expression.cs:2234
System.Linq.Expressions.Expression
Definition
Expression.cs:5484
System.Linq.Expressions.ScopeExpression.ReuseOrValidateVariables
IReadOnlyList< ParameterExpression > ReuseOrValidateVariables(ReadOnlyCollection< ParameterExpression > variables)
Definition
ScopeExpression.cs:28
System.Linq.Expressions.ScopeN
Definition
ScopeN.cs:8
System.Linq.Expressions.ScopeWithType.Rewrite
override BlockExpression Rewrite(ReadOnlyCollection< ParameterExpression > variables, Expression[] args)
Definition
ScopeWithType.cs:16
System.Linq.Expressions.ScopeWithType.ScopeWithType
ScopeWithType(IReadOnlyList< ParameterExpression > variables, IReadOnlyList< Expression > expressions, Type type)
Definition
ScopeWithType.cs:10
System.Linq.Expressions.ScopeWithType
Definition
ScopeWithType.cs:7
System.Type
Definition
Type.cs:14
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Collections.ObjectModel
Definition
EventArgsCache.cs:4
System.Linq.Expressions
Definition
AnalyzedTree.cs:3
System.ExceptionArgument.type
@ type
source
System.Linq.Expressions
System.Linq.Expressions
ScopeWithType.cs
Generated by
1.10.0