本文整理汇总了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());
}
示例2: Visit
public override void Visit(ContinueStatement node) { this.action(node); }
示例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;
}
示例4: VisitContinueStatement
public virtual void VisitContinueStatement (ContinueStatement continueStatement)
{
VisitChildren (continueStatement);
}
示例5: Walk
// ContinueStatement
public override bool Walk(ContinueStatement node) { return false; }
示例6: Walk
// ContinueStatement
protected internal virtual bool Walk(ContinueStatement node) { return true; }
示例7: Walk
public override bool Walk(ContinueStatement node)
{
node.Parent = _currentScope;
node.LoopStatement = _loops[_loops.Count - 1];
return base.Walk(node);
}
示例8: VisitContinueStatement
public virtual void VisitContinueStatement(ContinueStatement continueStatement)
{
StartNode(continueStatement);
WriteKeyword("continue", ContinueStatement.ContinueKeywordRole);
Semicolon();
EndNode(continueStatement);
}
示例9: VisitContinueStatement
public void VisitContinueStatement(ContinueStatement continueStatement)
{
// EMPTY
}
示例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 };
示例11: VisitContinueStatement
public override void VisitContinueStatement(ContinueStatement continueStatement)
{
if (!findReturn)
{
this.Continue.Add(continueStatement);
}
base.VisitContinueStatement(continueStatement);
}
示例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);
}
示例13: VisitContinueStatement
public override void VisitContinueStatement(ContinueStatement continueStatement)
{
this.Continue.Add(continueStatement);
base.VisitContinueStatement(continueStatement);
}
示例14: VisitContinueStatement
public override void VisitContinueStatement(ContinueStatement continueStatement)
{
_result.Add(new JsContinueStatement());
}
示例15: VisitContinueStatement
public override StringBuilder VisitContinueStatement(ContinueStatement continueStatement, int data)
{
return new StringBuilder("continue;");
}