32 references to MemLookFlags
Microsoft.CSharp (32)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (8)
390
private ExprCall BindToMethod(MethWithInst mwi, Expr pArguments, ExprMemberGroup pMemGroup,
MemLookFlags
flags)
402
if ((flags & (
MemLookFlags
.Ctor |
MemLookFlags
.NewObj)) == (
MemLookFlags
.Ctor |
MemLookFlags
.NewObj))
414
if ((flags &
MemLookFlags
.Ctor) != 0)
416
if ((flags &
MemLookFlags
.NewObj) != 0)
734
return BindToMethod(new MethWithInst(mpwiBest), args, grp, (
MemLookFlags
)grp.Flags);
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (20)
45
private
MemLookFlags
_flags;
141
if (methProp != null && (_flags &
MemLookFlags
.UserCallable) != 0 && !methProp.isUserCallable())
176
if (((_flags &
MemLookFlags
.Ctor) == 0) != (meth == null || !meth.IsConstructor()) ||
177
((_flags &
MemLookFlags
.Operator) == 0) != (meth == null || !meth.isOperator) ||
178
((_flags &
MemLookFlags
.Indexer) == 0) != !(prop is IndexerSymbol))
190
if (!(symCur is MethodSymbol) && (_flags &
MemLookFlags
.Indexer) == 0 && CSemanticChecker.CheckBogus(symCur))
201
if ((_flags &
MemLookFlags
.MustBeInvocable) != 0)
388
if ((_flags &
MemLookFlags
.Ctor) != 0)
521
public bool Lookup(CType typeSrc, Expr obj, ParentSymbol symWhere, Name name, int arity,
MemLookFlags
flags)
523
Debug.Assert((flags & ~
MemLookFlags
.All) == 0);
536
_typeQual = (_flags &
MemLookFlags
.Ctor) != 0 ? _typeSrc : obj?.Type;
545
Debug.Assert((_flags & (
MemLookFlags
.Ctor |
MemLookFlags
.NewObj |
MemLookFlags
.Operator |
MemLookFlags
.BaseCall)) == 0);
610
return !_swtInaccess.Sym.isUserCallable() && ((_flags &
MemLookFlags
.UserCallable) != 0)
615
if ((_flags &
MemLookFlags
.Ctor) != 0)
623
if ((_flags &
MemLookFlags
.Operator) != 0)
628
if ((_flags &
MemLookFlags
.Indexer) != 0)
635
return ErrorHandling.Error((_flags &
MemLookFlags
.MustBeInvocable) != 0 ? ErrorCode.ERR_NonInvocableMemberCalled : ErrorCode.ERR_CantCallSpecialMethod, _swtBad);
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (4)
117
(allowSpecialNames ? 0 :
MemLookFlags
.UserCallable) |
118
(name == SpecialNames.Indexer ?
MemLookFlags
.Indexer : 0) |
119
(name == SpecialNames.Constructor ?
MemLookFlags
.Ctor : 0) |
120
(requireInvocable ?
MemLookFlags
.MustBeInvocable : 0)))