Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DynamicExpression.cs
Go to the documentation of this file.
6
8
10{
11 public override bool CanReduce => true;
12
13 public override Type Type => typeof(object);
14
15 public sealed override ExpressionType NodeType => ExpressionType.Dynamic;
16
17 public CallSiteBinder Binder { get; }
18
19 public Type DelegateType { get; }
20
22
23 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
24 int IArgumentProvider.ArgumentCount
25 {
26 get
27 {
29 }
30 }
31
37
39 [UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "The field will be preserved by the DynamicDependency")]
45
54
63
72
81
90
91 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
96
97 protected internal override Expression Accept(ExpressionVisitor visitor)
98 {
100 {
101 return dynamicExpressionVisitor.VisitDynamic(this);
102 }
103 return base.Accept(visitor);
104 }
105
106 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
108 {
110 }
111
113 {
115 if (arguments == null)
116 {
117 collection = null;
118 }
119 else
120 {
122 if (collection == null)
123 {
124 arguments = (collection = arguments.ToReadOnly());
125 }
126 }
128 {
129 return this;
130 }
132 }
133
134 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
136 {
138 }
139
140 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
145
150
155
160
165
170
175
180
185
190
195
200
205
210
215}
virtual DynamicExpression Rewrite(Expression[] args)
static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, IEnumerable< Expression >? arguments)
static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, params Expression[] arguments)
static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, ReadOnlyCollection< Expression > arguments)
static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1)
override Expression Accept(ExpressionVisitor visitor)
ReadOnlyCollection< Expression > Arguments
DynamicExpression Update(IEnumerable< Expression >? arguments)
virtual ReadOnlyCollection< Expression > GetOrMakeArguments()
DynamicExpression(Type delegateType, CallSiteBinder binder)
static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3)
static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0)
static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1)
static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2)
static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1)
static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2, Expression arg3)
static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2)
static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[]? arguments)
static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0, Expression arg1, Expression arg2, Expression arg3)
static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, IEnumerable< Expression > arguments)
virtual bool SameArguments(ICollection< Expression > arguments)
static new DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, Expression arg0)
static DynamicExpression Make(Type returnType, Type delegateType, CallSiteBinder binder, Expression arg0, Expression arg1, Expression arg2)
static new DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, Expression arg0)
static DynamicExpression Dynamic(CallSiteBinder binder, Type returnType, params Expression[] arguments)
static DynamicExpression MakeDynamic(Type delegateType, CallSiteBinder binder, params Expression[] arguments)
static ConstantExpression Constant(object? value)
static MemberExpression Field(Expression? expression, FieldInfo field)
static InvocationExpression Invoke(Expression expression)
static CallSite Create(Type delegateType, CallSiteBinder binder)
Definition CallSite.cs:27
Expression Rewrite(Expression[] args)