Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodCallExpression.cs
Go to the documentation of this file.
7
9
10[DebuggerTypeProxy(typeof(MethodCallExpressionProxy))]
12{
13 public sealed override ExpressionType NodeType => ExpressionType.Call;
14
15 public sealed override Type Type => Method.ReturnType;
16
17 public MethodInfo Method { get; }
18
20
22
23 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
24 public virtual int ArgumentCount
25 {
26 get
27 {
29 }
30 }
31
36
37 internal virtual Expression GetInstance()
38 {
39 return null;
40 }
41
43 {
44 if (@object == Object)
45 {
47 if (arguments == null)
48 {
49 collection = null;
50 }
51 else
52 {
54 if (collection == null)
55 {
56 arguments = (collection = arguments.ToReadOnly());
57 }
58 }
60 {
61 return this;
62 }
63 }
64 return Expression.Call(@object, Method, arguments);
65 }
66
67 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
69 {
71 }
72
73 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
78
79 protected internal override Expression Accept(ExpressionVisitor visitor)
80 {
81 return visitor.VisitMethodCall(this);
82 }
83
84 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
89
90 [ExcludeFromCodeCoverage(Justification = "Unreachable")]
91 public virtual Expression GetArgument(int index)
92 {
94 }
95}
static MethodCallExpression Call(MethodInfo method)
MethodCallExpression Update(Expression? @object, IEnumerable< Expression >? arguments)
virtual bool SameArguments(ICollection< Expression > arguments)
override Expression Accept(ExpressionVisitor visitor)
virtual MethodCallExpression Rewrite(Expression instance, IReadOnlyList< Expression > args)
virtual ReadOnlyCollection< Expression > GetOrMakeArguments()