示例#1
0
 public Body(SimpleDeclaration declaration, Body body)
 {
     SimpleDeclarations = new List <SimpleDeclaration> {
         declaration
     };
     SimpleDeclarations.AddRange(body.SimpleDeclarations);
     Statements = new List <Statement>();
     Statements.AddRange(body.Statements);
 }
示例#2
0
        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);
        }