本文整理汇总了C#中INodeVisitor类的典型用法代码示例。如果您正苦于以下问题:C# INodeVisitor类的具体用法?C# INodeVisitor怎么用?C# INodeVisitor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
INodeVisitor类属于命名空间,在下文中一共展示了INodeVisitor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Accept
public override void Accept(INodeVisitor visitor)
{
visitor.Visit(this);
foreach (var andNode in Children)
foreach (var child in andNode.Children)
child.Accept(visitor);
}
示例2: Accept
public override void Accept(INodeVisitor visitor)
{
LeftNode.Accept(visitor);
RightNode.Accept(visitor);
visitor.Visit(this);
}
示例3: ExpressionNodeExecuterBase
/// <summary>
/// Initializes a new instance of <see cref="ExpressionNodeExecuterBase"/> class.
/// </summary>
/// <param name="nodeCompiler">The node compiler.</param>
/// <exception cref="System.ArgumentException">Parameter 'nodeCompiler' should contain a value.;nodeCompiler</exception>
protected ExpressionNodeExecuterBase(INodeVisitor nodeCompiler)
{
if (nodeCompiler == null)
throw new ArgumentException("Parameter 'nodeCompiler' should contain a value.", "nodeCompiler");
NodeCompiler = nodeCompiler;
}
示例4: Accept
public override void Accept(INodeVisitor visitor)
{
LeftOperand.Accept(visitor);
visitor.VisitAfterLHS(this);
RightOperand.Accept(visitor);
visitor.Visit(this);
}
示例5: Accept
public override void Accept(INodeVisitor visitor)
{
if (ArraySize != null)
{
ArraySize.Accept(visitor);
}
visitor.Visit(this);
}
示例6: Accept
public override void Accept(INodeVisitor visitor)
{
if (visitor.Visit(this))
{
foreach (Node childNode in childNodes)
childNode.Accept(visitor);
}
}
示例7: Accept
public override void Accept(INodeVisitor visitor)
{
visitor.Visit(this);
LoopBody.Accept(visitor);
visitor.VisitAfterBody(this);
LoopCondition.Accept(visitor);
visitor.Exit(this);
}
示例8: Accept
public override void Accept(INodeVisitor visitor)
{
visitor.Visit(this);
foreach (var statement in Statements)
{
statement.Accept(visitor);
}
visitor.Exit(this);
}
示例9: Accept
public override void Accept(INodeVisitor visitor)
{
MethodOwner.Accept(visitor);
foreach (var expr in CallParameters)
{
expr.Accept(visitor);
}
visitor.Visit(this);
}
示例10: VisitNode
public void VisitNode(INodeVisitor visitor, IList<Node> body, IList<Chunk> chunks)
{
visitor.Accept(body);
var sectionVisitor = new ViewComponentSectionChunkBuilderVisitor();
sectionVisitor.Accept(body);
sections = sectionVisitor.Sections;
attributes = sectionVisitor.Attributes;
}
示例11: Accept
public override void Accept(INodeVisitor visitor)
{
visitor.Visit(this);
foreach (Declaration decl in Declarations)
{
decl.Accept(visitor);
}
visitor.Exit(this);
}
示例12: Accept
public override void Accept(INodeVisitor visitor)
{
if (!visitor.BeforeVisit(this))
return;
this.Value.Accept(visitor);
visitor.AfterVisit(this);
}
示例13: Accept
public void Accept(INodeVisitor visitor)
{
MainClass.Accept(visitor);
foreach (var aClass in Classes)
{
aClass.Accept(visitor);
}
visitor.Visit(this);
}
示例14: Accept
public override void Accept(INodeVisitor visitor)
{
if (!visitor.BeforeVisit(this))
return;
foreach (var child in ChildNodes)
child.Accept(visitor);
visitor.AfterVisit(this);
}
示例15: Accept
public override void Accept(INodeVisitor visitor)
{
if (!visitor.BeforeVisit(this))
return;
foreach (var part in ContentParts)
part.Accept(visitor);
visitor.AfterVisit(this);
}