当前位置: 首页>>代码示例>>C#>>正文


C# StructuralVisitor.Visit方法代码示例

本文整理汇总了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);
		}
开发者ID:95ulisse,项目名称:ILEdit,代码行数:4,代码来源:parameter.cs

示例2: Accept

		public virtual void Accept (StructuralVisitor visitor)
		{
			visitor.Visit (this);
		}
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:decl.cs

示例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);
				}
			}
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:15,代码来源:enum.cs

示例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;
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:17,代码来源:assign.cs

示例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;
		}
开发者ID:johnv315,项目名称:playscript-mono,代码行数:19,代码来源:ps-lang.cs

示例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);
				}
			}
		}
开发者ID:johnv315,项目名称:playscript-mono,代码行数:15,代码来源:module.cs

示例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);
			}
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:13,代码来源:method.cs

示例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;
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:15,代码来源:intrinsics.cs

示例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);
					}
				}
			}
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:19,代码来源:class.cs

示例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);
						}
					}
				}
			}
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:20,代码来源:field.cs

示例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;
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:11,代码来源:anonymous.cs

示例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);
			}
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:11,代码来源:property.cs

示例13: Accept

		public override void Accept (StructuralVisitor visitor)
		{
			visitor.Visit (this);
		}
开发者ID:fvalette,项目名称:mono,代码行数:4,代码来源:class.cs

示例14: Accept

		public override object Accept (StructuralVisitor visitor)
		{
			return visitor.Visit (this);
		}
开发者ID:rabink,项目名称:mono,代码行数:4,代码来源:anonymous.cs

示例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;
		}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:15,代码来源:const.cs


注:本文中的Mono.CSharp.StructuralVisitor.Visit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。