本文整理汇总了C#中ICSharpCode.NRefactory.Ast.BlockStatement.AcceptChildren方法的典型用法代码示例。如果您正苦于以下问题:C# BlockStatement.AcceptChildren方法的具体用法?C# BlockStatement.AcceptChildren怎么用?C# BlockStatement.AcceptChildren使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICSharpCode.NRefactory.Ast.BlockStatement
的用法示例。
在下文中一共展示了BlockStatement.AcceptChildren方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VisitBlockStatement
public override object VisitBlockStatement(BlockStatement blockStatement, object data)
{
Contract.Requires(blockStatement != null);
// Visit children of block statement (E.g. several ExpressionStatement objects)
blockStatement.AcceptChildren(this, data);
return null;
}
示例2: TrackedVisitBlockStatement
public override object TrackedVisitBlockStatement(BlockStatement blockStatement, object data)
{
return blockStatement.AcceptChildren(this, data);
}
示例3: VisitBlockStatement
public override object VisitBlockStatement(BlockStatement blockStatement, object data)
{
blockStatement.AcceptChildren(this, data);
return null;
}
示例4: VisitBlockStatement
public virtual object VisitBlockStatement(BlockStatement blockStatement, object data)
{
Debug.Assert((blockStatement != null));
return blockStatement.AcceptChildren(this, data);
}
示例5: VisitBlockStatement
public virtual bool VisitBlockStatement(BlockStatement blockStatement, object d)
{
if ((blockStatement == null)) {
return SetFailure();
}
if ((d == null)) {
return SetFailure();
}
if(blockStatement.GetType() != d.GetType()) {return SetFailure();}
var data = (BlockStatement)d;
if (!IsMatch(blockStatement, data)) {
return SetFailure();
}
return blockStatement.AcceptChildren(this, d);
}