public AggregateDeclaration CreateAggregateDecl(AggregateSymbol agg, AggregateDeclaration declOuter) { Debug.Assert(agg != null); //Debug.Assert(declOuter == null || declOuter.Bag() == agg.Parent); // DECLSYMs are not parented like named symbols. AggregateDeclaration sym = newBasicSym(SYMKIND.SK_AggregateDeclaration, agg.name, null) as AggregateDeclaration; declOuter?.AddToChildList(sym); agg.AddDecl(sym); Debug.Assert(sym != null); return(sym); }
public AggregateDeclaration CreateAggregateDecl(AggregateSymbol agg, Declaration declOuter) { Debug.Assert(agg != null); //Debug.Assert(declOuter == null || declOuter.Bag() == agg.Parent); // DECLSYMs are not parented like named symbols. AggregateDeclaration sym = newBasicSym(SYMKIND.SK_AggregateDeclaration, agg.name, null).AsAggregateDeclaration(); if (declOuter != null) { declOuter.AddToChildList(sym); } agg.AddDecl(sym); Debug.Assert(sym != null); return (sym); }