public void Visit(ArrayDeclaration expression) { var array = Global.ArrayClass.New(); // Process parameters JsInstance[] parameters = new JsInstance[expression.Parameters.Count]; for (int i = 0; i < expression.Parameters.Count; i++) { expression.Parameters[i].Accept(this); array[i.ToString()] = Result; } Result = array; }
public void Visit(ArrayDeclaration expression) { indent++; foreach (var parameter in expression.Parameters) { Indent(); parameter.Accept(this); Builder.AppendLine(); } indent--; }
void Analyze(ArrayDeclaration Stmt) { if (Stmt.Parameters != null) { int StatusIndex = AddToJintStack(Stmt.Source, JintState.ArrayDeclaration); Analyze(Stmt.Parameters); RemoveJintStackFrom(StatusIndex); } }