• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ContinueStatement类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: VisitContinueStatement

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


示例17: VisitContinue

 public void VisitContinue(ContinueStatement c)
 {
     throw new NotImplementedException();
 }
开发者ID:uxmal,项目名称:pytocs,代码行数:4,代码来源:PyStatementWriter.cs


示例18: Visit

		public virtual void Visit(ContinueStatement s)
		{
			VisitAbstractStmt(s);
		}
开发者ID:DinrusGroup,项目名称:DinrusIDE,代码行数:4,代码来源:DefaultDepthFirstVisitor.cs


示例19: VisitContinueStatement

		public override void VisitContinueStatement(ContinueStatement continueStatement)
		{
			FixSemicolon(continueStatement.SemicolonToken);
		}
开发者ID:txdv,项目名称:monodevelop,代码行数:4,代码来源:AstFormattingVisitor.cs


示例20: PostWalk

 protected internal virtual void PostWalk(ContinueStatement node) { }
开发者ID:JamesTryand,项目名称:IronScheme,代码行数:1,代码来源:Walker.Generated.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Contour类代码示例发布时间:2022-05-24
下一篇:
C# ContextType类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap