2 writes to parent
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\ParentSymbol.cs (1)
52sym.parent = this;
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
30child.parent = parent;
26 references to parent
Microsoft.CSharp (26)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (1)
122ErrAppendParentCore(sym.parent, pctx);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
948Debug.Assert(swt.GetType() != null && swt.GetType().OwningAggregate == swt.Sym.parent as AggregateSymbol); 999AggregateSymbol aggCalled = swt.Sym.parent as AggregateSymbol;
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
647Debug.Assert(method.parent is AggregateSymbol);
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (4)
36Debug.Assert(atsCheck == null || symCheck.parent == atsCheck.OwningAggregate); 120Debug.Assert(atsCheck == null || symCheck.parent == atsCheck.OwningAggregate); 176for (Symbol symT = symWhere; symT != null; symT = symT.parent) 193AggregateSymbol aggCheck = symCheck.parent as AggregateSymbol;
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\AggregateSymbol.cs (3)
107public NamespaceOrAggregateSymbol Parent => parent as NamespaceOrAggregateSymbol; 109public bool isNested() => parent is AggregateSymbol; 111public AggregateSymbol GetOuterAgg() => parent as AggregateSymbol;
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\FieldSymbol.cs (1)
37public AggregateSymbol getClass() => parent as AggregateSymbol;
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (1)
179public AggregateSymbol getClass() => parent as AggregateSymbol;
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\ParentSymbol.cs (2)
27Debug.Assert(sym.parent == null || sym.parent == this);
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\Symbol.cs (2)
162return ((AggregateSymbol)parent).AssociatedAssembly; 186return ((AggregateSymbol)parent).InternalsVisibleTo(assembly);
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (4)
29Debug.Assert(child.parent == null || child.parent == parent); 46if (s_dictionary.TryGetValue(new Key(child.name, child.parent), out Symbol sym)) 59s_dictionary.Add(new Key(child.name, child.parent), child);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (2)
293if (pctx.DenormMeth && tvs.parent != null) 431if (pctx.DenormMeth && tvs.parent != null)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeParameterType.cs (1)
28public ParentSymbol OwningSymbol => Symbol.parent;
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (1)
131Debug.Assert(ats == null || sym.parent == ats.OwningAggregate);
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
387for (AggregateSymbol p = parent; p != null; p = p.parent as AggregateSymbol)