本文整理匯總了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;
}