本文整理汇总了C#中Mono.CSharp.StructuralVisitor.Visit方法的典型用法代码示例。如果您正苦于以下问题:C# StructuralVisitor.Visit方法的具体用法?C# StructuralVisitor.Visit怎么用?C# StructuralVisitor.Visit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.CSharp.StructuralVisitor
的用法示例。
在下文中一共展示了StructuralVisitor.Visit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Accept
public virtual object Accept (StructuralVisitor visitor)
{
return visitor.Visit (this);
}
示例2: Accept
public virtual void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
}
示例3: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
foreach (var member in Members) {
if (visitor.Continue)
member.Accept (visitor);
}
}
}
示例4: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return ret;
}
if (visitor.Continue)
this.target.Accept (visitor);
if (visitor.Continue)
this.source.Accept (visitor);
}
return ret;
}
示例5: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return ret;
}
if (visitor.Continue && elements != null) {
foreach (var elem in elements) {
if (visitor.Continue)
elem.Accept (visitor);
}
}
}
return ret;
}
示例6: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
foreach (var cont in containers) {
if (visitor.Continue && visitor.Depth >= VisitDepth.Namespaces)
cont.Accept (visitor);
}
}
}
示例7: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
if (visitor.Continue)
this.block.Accept (visitor);
}
}
示例8: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Continue && arguments != null) {
foreach (var arg in arguments) {
if (visitor.Continue)
arg.Expr.Accept (visitor);
}
}
}
return ret;
}
示例9: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
if (visitor.Continue)
AcceptChildContainers (visitor);
if (visitor.Continue && members != null && members.Count > 0 && visitor.Depth >= VisitDepth.Members) {
foreach (var member in members) {
if (visitor.Continue && (visitor.Depth & VisitDepth.Members) != 0)
member.Accept (visitor);
}
}
}
}
示例10: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
if (visitor.Continue && this.Initializer != null && visitor.Depth >= VisitDepth.Initializers)
this.Initializer.Accept (visitor);
if (visitor.Continue && declarators != null && visitor.Depth >= VisitDepth.Initializers) {
foreach (var decl in declarators) {
if (visitor.Continue && decl.Initializer != null && decl.Initializer != null) {
decl.Initializer.Accept (visitor);
}
}
}
}
}
示例11: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Continue)
this.Block.Accept (visitor);
}
return ret;
}
示例12: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit && visitor.Depth >= VisitDepth.MethodBodies) {
if (visitor.Continue && Get != null && visitor.Depth >= VisitDepth.MethodBodies)
Get.Accept (visitor);
if (visitor.Continue && Set != null && visitor.Depth >= VisitDepth.MethodBodies)
Set.Accept (visitor);
}
}
示例13: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
}
示例14: Accept
public override object Accept (StructuralVisitor visitor)
{
return visitor.Visit (this);
}
示例15: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return ret;
}
if (visitor.Continue && this.expr != null)
this.expr.Accept (visitor);
}
return ret;
}