当前位置: 首页>>代码示例>>C#>>正文


C# ContinueStatement类代码示例

本文整理汇总了C#中ContinueStatement的典型用法代码示例。如果您正苦于以下问题:C# ContinueStatement类的具体用法?C# ContinueStatement怎么用?C# ContinueStatement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ContinueStatement类属于命名空间,在下文中一共展示了ContinueStatement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ContinueStatementProducesContinueWithLabel

        public void ContinueStatementProducesContinueWithLabel()
        {
            var c = new ContinueStatement("here");

            Assert.AreEqual("here", c.Label);
            Assert.AreEqual("continue here;", c.ToString());
        }
开发者ID:DaveVdE,项目名称:adamjsgenerator,代码行数:7,代码来源:ContinueStatementTests.cs

示例2: Visit

 public override void Visit(ContinueStatement node) { this.action(node); }
开发者ID:yaakoviyun,项目名称:sqlskim,代码行数:1,代码来源:AllNodesVisitor.cs

示例3: Visit

			public override object Visit (Continue continueStatement)
			{
				var result = new ContinueStatement ();
				var location = LocationsBag.GetLocations (continueStatement);
				result.AddChild (new CSharpTokenNode (Convert (continueStatement.loc), "continue".Length), ContinueStatement.Roles.Keyword);
				if (location != null)
					result.AddChild (new CSharpTokenNode (Convert (location[0]), 1), ContinueStatement.Roles.Semicolon);
				return result;
			}
开发者ID:pgoron,项目名称:monodevelop,代码行数:9,代码来源:CSharpParser.cs

示例4: VisitContinueStatement

		public virtual void VisitContinueStatement (ContinueStatement continueStatement)
		{
			VisitChildren (continueStatement);
		}
开发者ID:modulexcite,项目名称:ICSharpCode.Decompiler-retired,代码行数:4,代码来源:DepthFirstAstVisitor.cs

示例5: Walk

 // ContinueStatement
 public override bool Walk(ContinueStatement node) { return false; }
开发者ID:jxnmaomao,项目名称:ironruby,代码行数:2,代码来源:PythonWalker.Generated.cs

示例6: Walk

 // ContinueStatement
 protected internal virtual bool Walk(ContinueStatement node) { return true; }
开发者ID:JamesTryand,项目名称:IronScheme,代码行数:2,代码来源:Walker.Generated.cs

示例7: Walk

        public override bool Walk(ContinueStatement node)
        {
            node.Parent = _currentScope;
            node.LoopStatement = _loops[_loops.Count - 1];

            return base.Walk(node);
        }
开发者ID:TerabyteX,项目名称:main,代码行数:7,代码来源:PythonNameBinder.cs

示例8: VisitContinueStatement

		public virtual void VisitContinueStatement(ContinueStatement continueStatement)
		{
			StartNode(continueStatement);
			WriteKeyword("continue", ContinueStatement.ContinueKeywordRole);
			Semicolon();
			EndNode(continueStatement);
		}
开发者ID:icsharpcode,项目名称:NRefactory,代码行数:7,代码来源:CSharpOutputVisitor.cs

示例9: VisitContinueStatement

 public void VisitContinueStatement(ContinueStatement continueStatement)
 {
     // EMPTY
 }
开发者ID:xuld,项目名称:DocPlus,代码行数:4,代码来源:DocAstVistor.cs

示例10: Statement


//.........这里部分代码省略.........
                    sscs.EndLocation = t.EndLocation;

                    return sscs;
                case Default:
                    Step();

                    var ssds = new SwitchStatement.DefaultStatement()
                    {
                        Location = la.Location,
                        Parent = Parent
                    };

                    Expect(Colon);

                    var ssdssl = new List<IStatement>();

                    while (laKind != Case && laKind != Default && laKind != CloseCurlyBrace && !IsEOF)
                    {
                        var stmt = Statement(Scope: Scope, Parent: ssds);

                        if (stmt != null)
                        {
                            stmt.Parent = ssds;
                            ssdssl.Add(stmt);
                        }
                    }

                    ssds.ScopeStatementList = ssdssl.ToArray();
                    ssds.EndLocation = t.EndLocation;

                    return ssds;
                case Continue:
                    Step();
                    var cs = new ContinueStatement() { Location = t.Location, Parent = Parent };
                    if (laKind == (Identifier))
                    {
                        Step();
                        cs.Identifier = t.Value;
                    }
                    else if(IsEOF)
                        cs.IdentifierHash = DTokens.IncompleteIdHash;

                    Expect(Semicolon);
                    cs.EndLocation = t.EndLocation;

                    return cs;
                case Break:
                    Step();
                    var bs = new BreakStatement() { Location = t.Location, Parent = Parent };

                    if (laKind == (Identifier))
                    {
                        Step();
                        bs.Identifier = t.Value;
                    }
                    else if(IsEOF)
                        bs.IdentifierHash = DTokens.IncompleteIdHash;

                    Expect(Semicolon);

                    bs.EndLocation = t.EndLocation;

                    return bs;
                case Return:
                    Step();
                    var rs = new ReturnStatement() { Location = t.Location, Parent = Parent };
开发者ID:rainers,项目名称:D_Parser,代码行数:67,代码来源:Parser_Impl.cs

示例11: VisitContinueStatement

 public override void VisitContinueStatement(ContinueStatement continueStatement)
 {
     if (!findReturn)
     {
         this.Continue.Add(continueStatement);
     }
     base.VisitContinueStatement(continueStatement);
 }
开发者ID:TinkerWorX,项目名称:Bridge,代码行数:8,代码来源:LambdaVisitor.cs

示例12: ContinueStatement

 void ContinueStatement(out Statement stat)
 {
     ContinueStatement cs = new ContinueStatement(GetPragma(la)); stat = cs;
     Expect(29);
     if (la.kind == 1) {
     Get();
     cs.label = t.val;
     }
     Expect(5);
     SetEndPragma(stat);
 }
开发者ID:unycorn,项目名称:lolcode-dot-net,代码行数:11,代码来源:Parser.cs

示例13: VisitContinueStatement

 public override void VisitContinueStatement(ContinueStatement continueStatement)
 {
     this.Continue.Add(continueStatement);
     base.VisitContinueStatement(continueStatement);
 }
开发者ID:wangxueqzz,项目名称:Bridge,代码行数:5,代码来源:LambdaVisitor.cs

示例14: VisitContinueStatement

 public override void VisitContinueStatement(ContinueStatement continueStatement)
 {
     _result.Add(new JsContinueStatement());
 }
开发者ID:jack128,项目名称:SaltarelleCompiler,代码行数:4,代码来源:StatementCompiler.cs

示例15: VisitContinueStatement

 public override StringBuilder VisitContinueStatement(ContinueStatement continueStatement, int data)
 {
     return new StringBuilder("continue;");
 }
开发者ID:mono-soc-2011,项目名称:SLSharp,代码行数:4,代码来源:GlslVisitor.cs


注:本文中的ContinueStatement类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。