public virtual Object Visit(ASTOrNode node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Example #2
0
		public void ConditionalOrExpression()
		{
			ConditionalAndExpression();
			while(true)
			{
				if (GetCurrentTokenKind() != ParserConstants.LOGICAL_OR)
				{
					jj_la1[37] = 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_13_brk;
				}
				ConsumeToken(ParserConstants.LOGICAL_OR);
				ASTOrNode jjtn001 = new ASTOrNode(this, ParserTreeConstants.OR_NODE);
				bool jjtc001 = true;
				nodeTree.OpenNodeScope(jjtn001);
				//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
				try
				{
					ConditionalAndExpression();
				}
				catch(System.Exception exception)
				{
					nodeTree.ClearNodeScope(jjtn001);
					jjtc001 = false;
					if (exception is SystemException)
					{
						throw;
					}
					if (exception is ParseException)
					{
						throw;
					}
					throw (ApplicationException) exception;
				}
				finally
				{
					if (jjtc001)
					{
						nodeTree.CloseNodeScope(jjtn001, 2);
					}
				}
			}
			//UPGRADE_NOTE: Label 'label_13_brk' was added. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1011"'
			label_13_brk:
			;
		}
		/// <summary>Display an ASTOrNode ( || )
		/// </summary>
		public override Object Visit(ASTOrNode node, Object data)
		{
			return ShowNode(node, data);
		}