2 // ASTList.cs: Representation of a collection of source elements
3 // that form an Ecmascript program.
6 // Cesar Octavio Lopez Nataren
8 // (C) 2003, Cesar Octavio Lopez Nataren, <cesar@ciencias.unam.mx>
11 using System.Collections;
15 namespace Microsoft.JScript.Tmp {
17 public class ASTList : AST {
19 internal ArrayList elems;
23 elems = new ArrayList ();
26 internal ASTList Add (AST elem)
32 public override string ToString ()
34 StringBuilder sb = new StringBuilder ();
36 foreach (AST ast in elems)
37 sb.Append (ast.ToString () + "\n");
39 return sb.ToString ();
42 internal override bool Resolve (IdentificationTable context)
44 throw new NotImplementedException ();
47 internal override void Emit (EmitContext ec)
49 throw new NotImplementedException ();