本文整理汇总了C#中IASTVisitor类的典型用法代码示例。如果您正苦于以下问题:C# IASTVisitor类的具体用法?C# IASTVisitor怎么用?C# IASTVisitor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IASTVisitor类属于命名空间,在下文中一共展示了IASTVisitor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Accept
internal override void Accept(IASTVisitor visitor)
{
visitor.VisitEnter(this);
foreach (var item in _preItems)
item.Accept(visitor);
visitor.VisitRenderBody(this);
foreach (var item in _postItems)
item.Accept(visitor);
visitor.VisitLeave(this);
}
示例2: Accept
internal abstract override void Accept(IASTVisitor visitor, params object[] args);
示例3: AcceptVisitor
public abstract bool AcceptVisitor(IASTVisitor visitor);
示例4: AcceptVisitor
public override bool AcceptVisitor(IASTVisitor visitor)
{
throw new NotImplementedException();
}
示例5: Accept
internal override void Accept(IASTVisitor visitor, params object[] args)
{
visitor.Visit(this, args);
}
示例6: Accept
public virtual bool Accept(IASTVisitor visitor)
{
throw new NotImplementedException( this.GetType().FullName + " must implement Accept" );
}
示例7: StartVisiting
public static void StartVisiting(IASTVisitor visitor, TreeNode<IASTNode> rootNode)
{
rootNode.Data.Accept(visitor);
rootNode.Children.ForEach(child => StartVisiting(visitor, child));
}
示例8: Accept
public override bool Accept(IASTVisitor visitor)
{
visitor.VisitCompilationUnit(this);
return true;
}
示例9: Accept
public override bool Accept(IASTVisitor visitor)
{
visitor.VisitExpressionStatement(this);
return true;
}
示例10: Accept
public override bool Accept(IASTVisitor visitor)
{
visitor.VisitOpaqueIdentifier(this);
return true;
}
示例11: Accept
public override bool Accept(IASTVisitor visitor)
{
visitor.VisitMethodInvocationExpression(this);
return true;
}
示例12: Accept
public override bool Accept(IASTVisitor visitor)
{
visitor.VisitSourceUnit(this);
return true;
}
示例13: Accept
public override bool Accept(IASTVisitor visitor)
{
visitor.VisitBlockExpression(this);
return true;
}
示例14: AcceptChildren
public object AcceptChildren(IASTVisitor visitor, object data)
{
foreach (INode child in children) {
if (child != null) {
child.AcceptVisitor(visitor, data);
}
}
return data;
}
示例15: Accept
public override bool Accept(IASTVisitor visitor)
{
visitor.VisitMemberAccessExpression(this);
return true;
}