本文整理汇总了C#中CheckedStatement类的典型用法代码示例。如果您正苦于以下问题:C# CheckedStatement类的具体用法?C# CheckedStatement怎么用?C# CheckedStatement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CheckedStatement类属于命名空间,在下文中一共展示了CheckedStatement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Visit
public override object Visit(Checked checkedStatement)
{
var result = new CheckedStatement();
result.AddChild(new CSharpTokenNode(Convert(checkedStatement.loc), CheckedStatement.CheckedKeywordRole), CheckedStatement.CheckedKeywordRole);
if (checkedStatement.Block != null)
result.AddChild((BlockStatement)checkedStatement.Block.Accept(this), Roles.Body);
return result;
}
示例2: VisitCheckedStatement
public virtual void VisitCheckedStatement (CheckedStatement checkedStatement)
{
VisitChildren (checkedStatement);
}
示例3: VisitCheckedStatement
public virtual void VisitCheckedStatement(CheckedStatement checkedStatement)
{
if (this.ThrowException)
{
throw (Exception)this.CreateException(checkedStatement);
}
}
示例4: VisitCheckedStatement
public override void VisitCheckedStatement(CheckedStatement checkedStatement) {
checkedStatement.Body.AcceptVisitor(this);
}
示例5: VisitCheckedStatement
public StringBuilder VisitCheckedStatement(CheckedStatement checkedStatement, int data)
{
throw new SLSharpException("SL# can only operate in unchecked context.");
}
示例6: VisitCheckedStatement
public override void VisitCheckedStatement(CheckedStatement checkedStatement)
{
FixEmbeddedStatment(policy.StatementBraceStyle, policy.FixedBraceForcement, checkedStatement.Body);
}
示例7: VisitCheckedStatement
public virtual void VisitCheckedStatement(CheckedStatement checkedStatement)
{
DebugExpression(checkedStatement);
StartNode(checkedStatement);
WriteKeywordReference(CheckedStatement.CheckedKeywordRole);
checkedStatement.Body.AcceptVisitor(this);
EndNode(checkedStatement);
}
示例8: TrackedVisitCheckedStatement
public virtual object TrackedVisitCheckedStatement(CheckedStatement checkedStatement, object data) {
return base.VisitCheckedStatement(checkedStatement, data);
}
示例9: VisitCheckedStatement
public void VisitCheckedStatement(CheckedStatement checkedStatement)
{
JsonObject statement = CreateJsonStatement(checkedStatement);
AddKeyword(statement, CheckedStatement.CheckedKeywordRole);
statement.AddJsonValue("body", GenStatement(checkedStatement.Body));
Push(statement);
}
示例10: VisitCheckedStatement
public virtual object VisitCheckedStatement(CheckedStatement checkedStatement, object data) {
Debug.Assert((checkedStatement != null));
Debug.Assert((checkedStatement.Block != null));
return checkedStatement.Block.AcceptVisitor(this, data);
}
示例11: VisitCheckedStatement
public void VisitCheckedStatement(CheckedStatement node)
{
NotSupported(node);
}
示例12: VisitCheckedStatement
public virtual object VisitCheckedStatement(CheckedStatement checkedStatement, object data) {
throw new global::System.NotImplementedException("CheckedStatement");
}
示例13: VisitCheckedStatement
public virtual object VisitCheckedStatement(CheckedStatement checkedStatement, object data) {
Debug.Assert((checkedStatement != null));
Debug.Assert((checkedStatement.Block != null));
nodeStack.Push(checkedStatement.Block);
checkedStatement.Block.AcceptVisitor(this, data);
checkedStatement.Block = ((Statement)(nodeStack.Pop()));
return null;
}
示例14: Visit
public override object Visit (Checked checkedStatement)
{
var result = new CheckedStatement ();
result.AddChild (new CSharpTokenNode (Convert (checkedStatement.loc), "checked".Length), CheckedStatement.Roles.Keyword);
result.AddChild ((INode)checkedStatement.Block.Accept (this), CheckedStatement.Roles.EmbeddedStatement);
return result;
}
示例15: Process_Checked_Statement
private void Process_Checked_Statement(StringBuilder sb, CheckedStatement statement)
{
sb.Append("checked");
sb.Append(ProcessStatement(statement.Statement));
}