Example #1
0
	protected Statement  continue_stmt() //throws RecognitionException, TokenStreamException
{
		Statement s;
		
		IToken  c = null;
		s = null;
		
		try {      // for error handling
			c = LT(1);
			match(CONTINUE);
			if (0==inputState.guessing)
			{
				s = new ContinueStatement(ToLexicalInfo(c));
			}
		}
		catch (RecognitionException ex)
		{
			if (0 == inputState.guessing)
			{
				reportError(ex, "continue_stmt");
				recover(ex,tokenSet_21_);
			}
			else
			{
				throw ex;
			}
		}
		return s;
	}
Example #2
0
        //throws RecognitionException, TokenStreamException
        protected Statement continue_stmt()
        {
            Statement s;

            IToken  c = null;
            s = null;

            try {      // for error handling
            c = LT(1);
            match(CONTINUE);
            if (0==inputState.guessing)
            {
                s = new ContinueStatement(SourceLocationFactory.ToLexicalInfo(c));
            }
            }
            catch (RecognitionException ex)
            {
            if (0 == inputState.guessing)
            {
                reportError(ex);
                recover(ex,tokenSet_22_);
            }
            else
            {
                throw ex;
            }
            }
            return s;
        }
Example #3
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     EmitGoTo(_currentLoopInfo.ContinueLabel, node);
 }
 public override void OnContinueStatement(ContinueStatement node)
 {
     ReplaceCurrentNode(NewGoto(node));
     ++_usage;
 }
Example #5
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     CheckInLoop(node);
 }
Example #6
0
		override public object Clone()
		{
		
			ContinueStatement clone = new ContinueStatement();
			clone._lexicalInfo = _lexicalInfo;
			clone._endSourceLocation = _endSourceLocation;
			clone._documentation = _documentation;
			clone._isSynthetic = _isSynthetic;
			clone._entity = _entity;
			if (_annotations != null) clone._annotations = (Hashtable)_annotations.Clone();
			if (null != _modifier)
			{
				clone._modifier = _modifier.Clone() as StatementModifier;
				clone._modifier.InitializeParent(clone);
			}
			return clone;


		}
Example #7
0
		override public bool EnterContinueStatement(ContinueStatement node)
		{
			RemoveUnreachableCode(node);
			return false;
		}
 public override void LeaveContinueStatement(ContinueStatement node)
 {
     LeaveStatement(node);
 }
Example #9
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     EmitDebugInfo(node);
     if (InTryInLoop())
     {
         _il.Emit(OpCodes.Leave, _currentLoopInfo.ContinueLabel);
     }
     else
     {
         _il.Emit(OpCodes.Br, _currentLoopInfo.ContinueLabel);
     }
 }
Example #10
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     WriteIndented();
     WriteKeyword("continue ");
     Visit(node.Modifier);
     WriteLine();
 }