Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (10)
35public static ACCESSERROR CheckAccess2(Symbol symCheck, AggregateType atsCheck, Symbol symWhere, CType typeThru)
86public static bool CheckTypeAccess(CType type, Symbol symWhere)
121private static ACCESSERROR CheckAccessCore(Symbol symCheck, AggregateType atsCheck, Symbol symWhere, CType typeThru)
180for (Symbol symT = symWhere; symT != null; symT = symT.parent)
255public static bool CheckBogus(Symbol sym) => (sym as PropertySymbol)?.Bogus ?? false;
259public static RuntimeBinderException ReportAccessError(SymWithType swtBad, Symbol symWhere, CType typeQual)
272public static bool CheckAccess(Symbol symCheck, AggregateType atsCheck, Symbol symWhere, CType typeThru) =>
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (9)
18private static readonly Dictionary<Key, Symbol> s_dictionary = new Dictionary<Key, Symbol>();
20public static Symbol LookupSym(Name name, ParentSymbol parent, symbmask_t kindmask)
23return s_dictionary.TryGetValue(new Key(name, parent), out Symbol sym) ? FindCorrectKind(sym, kindmask) : null;
26public static void InsertChild(ParentSymbol parent, Symbol child)
36private static void InsertChildNoGrow(Symbol child)
46if (s_dictionary.TryGetValue(new Key(child.name, child.parent), out Symbol sym))
63private static Symbol FindCorrectKind(Symbol sym, symbmask_t kindmask)
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (2)
143private static bool CheckConstraintsCore(Symbol symErr, TypeArray typeVars, TypeArray typeArgs, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags)
166private static bool CheckSingleConstraint(Symbol symErr, TypeParameterType var, CType arg, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags)