public Body(SimpleDeclaration declaration, Body body) { SimpleDeclarations = new List <SimpleDeclaration> { declaration }; SimpleDeclarations.AddRange(body.SimpleDeclarations); Statements = new List <Statement>(); Statements.AddRange(body.Statements); }
public ProgramRoot(SimpleDeclaration declaration, ProgramRoot programRoot) { SimpleDeclarations = new List <SimpleDeclaration>(); RoutineDeclarations = new List <RoutineDeclaration>(); SimpleDeclarations.Add(declaration); SimpleDeclarations.AddRange(programRoot.SimpleDeclarations); RoutineDeclarations.AddRange(programRoot.RoutineDeclarations); }