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