Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (10)
33public static ACCESSERROR CheckAccess2(Symbol symCheck, AggregateType atsCheck, Symbol symWhere, CType typeThru)
83public static bool CheckTypeAccess(CType type, Symbol symWhere)
117private static ACCESSERROR CheckAccessCore(Symbol symCheck, AggregateType atsCheck, Symbol symWhere, CType typeThru)
176for (Symbol symT = symWhere; symT != null; symT = symT.parent)
251public static bool CheckBogus(Symbol sym) => (sym as PropertySymbol)?.Bogus ?? false;
254public static RuntimeBinderException ReportAccessError(SymWithType swtBad, Symbol symWhere, CType typeQual)
266public 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)
140private static bool CheckConstraintsCore(Symbol symErr, TypeArray typeVars, TypeArray typeArgs, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags)
162private static bool CheckSingleConstraint(Symbol symErr, TypeParameterType var, CType arg, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags)