Пример #1
0
		public void ObjectArray()
		{
			/*@bgen(jjtree) ObjectArray */
			ASTObjectArray jjtn000 = new ASTObjectArray(this, ParserTreeConstants.OBJECT_ARRAY);
			bool jjtc000 = true;
			nodeTree.OpenNodeScope(jjtn000);
			//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
			try
			{
				ConsumeToken(ParserConstants.LBRACKET);
				switch(GetCurrentTokenKind())
				{
					case ParserConstants.LBRACKET:
					case ParserConstants.WHITESPACE:
					case ParserConstants.STRING_LITERAL:
					case ParserConstants.TRUE:
					case ParserConstants.FALSE:
					case ParserConstants.NUMBER_LITERAL:
					case ParserConstants.IDENTIFIER:
					case ParserConstants.LCURLY:
						Parameter();
						while(true)
						{
							switch(GetCurrentTokenKind())
							{
								case ParserConstants.COMMA:
									;
									break;

								default:
									jj_la1[9] = jj_gen;
									//UPGRADE_NOTE: Labeled break statement was changed to a goto statement. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1012"'
									goto label_5_brk;
							}
							ConsumeToken(ParserConstants.COMMA);
							Parameter();
						}
						//UPGRADE_NOTE: Label 'label_5_brk' was added. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1011"'
						label_5_brk:
						;

						break;

					default:
						jj_la1[10] = jj_gen;
						;
						break;
				}
				ConsumeToken(ParserConstants.RBRACKET);
			}
			catch(Exception jjte000)
			{
				nodeTree.ClearNodeScope(jjtn000);
				jjtc000 = false;
				if (jjte000 is SystemException)
				{
					throw;
				}
				if (jjte000 is ParseException)
				{
					throw;
				}
				throw (ApplicationException) jjte000;
			}
			finally
			{
				if (jjtc000)
				{
					nodeTree.CloseNodeScope(jjtn000, true);
				}
			}
		}
Пример #2
0
 public virtual Object Visit(ASTObjectArray node, Object data)
 {
     data = node.ChildrenAccept(this, data);
     return(data);
 }
Пример #3
0
 public override Object Visit(ASTObjectArray node, Object data)
 {
     return(ShowNode(node, data));
 }
Пример #4
0
 public override System.Object visit(ASTObjectArray node, System.Object data)
 {
     return(showNode(node, data));
 }
Пример #5
0
 public virtual System.Object visit(ASTObjectArray node, System.Object data)
 {
     data = node.childrenAccept(this, data);
     return(data);
 }
Пример #6
0
 public override object Visit(ASTObjectArray node, object data)
 {
     return(this.ShowNode(node, data));
 }