Exemple #1
0
        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;
        }
Exemple #2
0
		public void Visit(ArrayDeclaration expression)
		{
			indent++;
			foreach (var parameter in expression.Parameters)
			{
				Indent();
				parameter.Accept(this);
				Builder.AppendLine();
			}
			indent--;
		}
Exemple #3
0
 void Analyze(ArrayDeclaration Stmt)
 {
     if (Stmt.Parameters != null)
     {
         int StatusIndex = AddToJintStack(Stmt.Source, JintState.ArrayDeclaration);
         Analyze(Stmt.Parameters);
         RemoveJintStackFrom(StatusIndex);
     }
 }