5 writes to OptionalObject
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
610
memgroup.
OptionalObject
= callingObject;
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
399
pMemGroup.
OptionalObject
= pObject;
493
pMemGroup.
OptionalObject
= pObject;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MemberGroup.cs (1)
23
OptionalObject
= optionalObject;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExprVisitorBase.cs (1)
193
(pExpr as ExprMemberGroup).
OptionalObject
= exprRet;
24 references to OptionalObject
Microsoft.CSharp (24)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (3)
395
Expr pObject = pMemGroup.
OptionalObject
;
531
AssertObjectIsLvalue(result.MemberGroup.
OptionalObject
);
731
return BindToProperty(grp.
OptionalObject
, new PropWithType(mpwiBest), bindFlags, args, grp);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (11)
108
return (pGroup.Flags & EXPRFLAG.EXF_CTOR) != 0 ? pGroup.ParentType : pGroup.
OptionalObject
?.Type;
325
CType pTypeThrough = _pGroup.
OptionalObject
?.Type;
371
MethodOrPropertySymbol methprop = FindMostDerivedMethod(_pCurrentSym, _pGroup.
OptionalObject
);
656
MethodOrPropertySymbol methprop = FindMostDerivedMethod(_pCurrentSym, _pGroup.
OptionalObject
);
674
MethodOrPropertySymbol methprop = FindMostDerivedMethod(_pCurrentSym, _pGroup.
OptionalObject
);
1033
pMethod = FindMostDerivedMethod(_pCurrentSym, _pGroup.
OptionalObject
);
1113
List<Name> paramNames = FindMostDerivedMethod(_misnamed.MethProp(), _pGroup.
OptionalObject
).ParameterNames;
1151
if (_pGroup.
OptionalObject
?.Type != null &&
1152
_pGroup.
OptionalObject
.Type.IsDelegateType &&
1158
nameErr = ((AggregateType)_pGroup.
OptionalObject
.Type).OwningAggregate.name;
1197
return _pGroup.
OptionalObject
?.Type is AggregateType agg && agg.OwningAggregate.IsDelegate()
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (1)
15
if (expr is ExprCall pCall && pCall.MemberGroup.
OptionalObject
== null
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (8)
51
Expr instance = Visit(prop.MemberGroup.
OptionalObject
);
274
if (expr.MethWithInst.Meth().isStatic || expr.MemberGroup.
OptionalObject
== null)
280
pObject = expr.MemberGroup.
OptionalObject
;
305
Debug.Assert(!expr.MethWithInst.Meth().isVirtual || expr.MemberGroup.
OptionalObject
!= null);
315
if (expr.PropWithTypeSlot.Prop().isStatic || expr.MemberGroup.
OptionalObject
== null)
321
pObject = Visit(expr.MemberGroup.
OptionalObject
);
365
Expr oldObject = memberGroup.
OptionalObject
;
1023
return pExpr is ExprProperty prop && prop.MemberGroup.
OptionalObject
== pObject && pObject.Type is NullableType;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExprVisitorBase.cs (1)
192
exprRet = Visit((pExpr as ExprMemberGroup).
OptionalObject
);