Exemplo n.º 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;
	}
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     EmitGoTo(_currentLoopInfo.ContinueLabel, node);
 }
Exemplo n.º 4
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     ReplaceCurrentNode(NewGoto(node));
     ++_usage;
 }
Exemplo n.º 5
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     CheckInLoop(node);
 }
Exemplo n.º 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;


		}
Exemplo n.º 7
0
		override public bool EnterContinueStatement(ContinueStatement node)
		{
			RemoveUnreachableCode(node);
			return false;
		}
Exemplo n.º 8
0
 public override void LeaveContinueStatement(ContinueStatement node)
 {
     LeaveStatement(node);
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 10
0
 public override void OnContinueStatement(ContinueStatement node)
 {
     WriteIndented();
     WriteKeyword("continue ");
     Visit(node.Modifier);
     WriteLine();
 }