61 references to Sym
Microsoft.CSharp (61)
Microsoft\CSharp\RuntimeBinder\Errors\ErrorFmt.cs (2)
116
this.swtMemo.sym = swt.
Sym
;
124
this.mpwiMemo.sym = mpwi.
Sym
;
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (3)
167
ErrAppendSym(meth.swtSlot.
Sym
, ctx, fArgs);
283
if (prop.swtSlot.
Sym
!= null)
286
ErrAppendSym(prop.swtSlot.
Sym
, ctx);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (12)
165
if (swt != null && swt.
Sym
.getKind() != SYMKIND.SK_MethodSymbol)
640
IndexerSymbol index = swt.
Sym
as IndexerSymbol;
748
if (swt.
Sym
.getKind() != SYMKIND.SK_MethodSymbol)
768
ExprMemberGroup memGroup = CreateMemberGroupExpr(payload.Name, payload.TypeArguments, callingObject, swt.
Sym
.getKind());
791
if (swtEvent.
Sym
.getKind() == SYMKIND.SK_FieldSymbol)
795
else if (swtEvent.
Sym
.getKind() == SYMKIND.SK_EventSymbol)
812
if ((payload.Name.StartsWith("set_", StringComparison.Ordinal) && ((MethodSymbol)swt.
Sym
).Params.Count > 1) ||
813
(payload.Name.StartsWith("get_", StringComparison.Ordinal) && ((MethodSymbol)swt.
Sym
).Params.Count > 0))
1152
switch (swt.
Sym
.getKind())
1158
if (swt.
Sym
is IndexerSymbol)
1316
if (swt.
Sym
.getKind() == SYMKIND.SK_EventSymbol)
1325
else if (swt.
Sym
is FieldSymbol field && field.isEvent)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (9)
392
Debug.Assert(mwi.
Sym
is MethodSymbol && (!mwi.Meth().isOverride || mwi.Meth().isHideByName));
463
Debug.Assert(pwt.
Sym
is PropertySymbol &&
948
Debug.Assert(swt.GetType() != null && swt.GetType().OwningAggregate == swt.
Sym
.parent as AggregateSymbol);
950
bool isStatic = swt.
Sym
.isStatic;
979
if ((swt.
Sym
is MethodSymbol) && swt.Meth().IsConstructor())
999
AggregateSymbol aggCalled = swt.
Sym
.parent as AggregateSymbol;
1012
Symbol pSym = swt.
Sym
;
1020
bool isStatic = swt.
Sym
.isStatic;
1067
MethodOrPropertySymbol mp = swt.
Sym
as MethodOrPropertySymbol;
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
30
Name name = method.
Sym
?.name;
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (4)
627
if (meth.swtSlot.
Sym
!= null && meth.swtSlot.
Sym
== method)
1172
_results.UninferableResult.Set(_mpwiCantInferInstArg.
Sym
as MethodSymbol, _mpwiCantInferInstArg.GetType(), _mpwiCantInferInstArg.TypeArgs);
1174
Debug.Assert(_results.UninferableResult.
Sym
is MethodSymbol);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinderResult.cs (1)
70
if (UninferableResult.
Sym
== null)
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (15)
231
if (_swtFirst.
Sym
is FieldSymbol && symCur is EventSymbol
242
else if (_swtFirst.
Sym
is FieldSymbol && symCur is EventSymbol)
249
if (_swtFirst.
Sym
.getKind() != symCur.getKind())
277
else if (_swtFirst.
Sym
.getKind() != symCur.getKind())
282
if (!(_swtFirst.
Sym
is MethodSymbol))
472
Debug.Assert(CSemanticChecker.CheckBogus(swt.
Sym
));
478
ErrorCode.ERR_BindToBogusProp1, swt.
Sym
.name, new SymWithType(meth1 ?? meth2, swt.GetType()),
479
new ErrArgRefOnly(swt.
Sym
))
481
ErrorCode.ERR_BindToBogusProp2, swt.
Sym
.name, new SymWithType(meth1, swt.GetType()),
482
new SymWithType(meth2, swt.GetType()), new ErrArgRefOnly(swt.
Sym
));
610
return !_swtInaccess.
Sym
.isUserCallable() && ((_flags & MemLookFlags.UserCallable) != 0)
646
Debug.Assert(!(_swtBadArity.
Sym
is AggregateSymbol));
647
if (_swtBadArity.
Sym
is MethodSymbol badMeth)
650
return ErrorHandling.Error(cvar > 0 ? ErrorCode.ERR_BadArity : ErrorCode.ERR_HasNoTypeVars, _swtBadArity, new ErrArgSymKind(_swtBadArity.
Sym
), cvar);
653
return ErrorHandling.Error(ErrorCode.ERR_TypeArgsNotAllowed, _swtBadArity, new ErrArgSymKind(_swtBadArity.
Sym
));
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (2)
256
Debug.Assert(!CheckAccess(swtBad.
Sym
, swtBad.GetType(), symWhere, typeQual) ||
259
return CheckAccess2(swtBad.
Sym
, swtBad.GetType(), symWhere, typeQual)
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (12)
74
return swt1.
Sym
== swt2.
Sym
&& swt1.Ats == swt2.Ats;
85
return
Sym
== other.
Sym
&& Ats == other.Ats;
92
return (
Sym
?.GetHashCode() ?? 0) + (Ats?.GetHashCode() ?? 0);
104
return
Sym
as MethodOrPropertySymbol;
109
return
Sym
as MethodSymbol;
114
return
Sym
as PropertySymbol;
119
return
Sym
as FieldSymbol;
124
return
Sym
as EventSymbol;
170
Set(swt.
Sym
as PropertySymbol, swt.Ats);
243
Set(mpwi.
Sym
as MethodSymbol, mpwi.Ats, mpwi.TypeArgs);