當前位置: 首頁>>代碼示例>>C#>>正文


C# CSharp.StructuralVisitor類代碼示例

本文整理匯總了C#中Mono.CSharp.StructuralVisitor的典型用法代碼示例。如果您正苦於以下問題:C# StructuralVisitor類的具體用法?C# StructuralVisitor怎麽用?C# StructuralVisitor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


StructuralVisitor類屬於Mono.CSharp命名空間,在下文中一共展示了StructuralVisitor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: 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

示例2: Accept

		public virtual object Accept (StructuralVisitor visitor)
		{
			return visitor.Visit (this);
		}
開發者ID:95ulisse,項目名稱:ILEdit,代碼行數:4,代碼來源:parameter.cs

示例3: 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

示例4: 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

示例5: Accept

		public override void Accept (StructuralVisitor visitor)
		{
			visitor.Visit (this);
		}
開發者ID:fvalette,項目名稱:mono,代碼行數:4,代碼來源:class.cs

示例6: 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

示例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.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

示例8: Accept

		public abstract void Accept (StructuralVisitor visitor);
開發者ID:ngraziano,項目名稱:mono,代碼行數:1,代碼來源:class.cs

示例9: Accept

		public override void Accept (StructuralVisitor visitor)
		{
			visitor.Visit (this);

			AcceptChildContainers (visitor);
		}
開發者ID:rlfqudxo,項目名稱:playscript-mono,代碼行數:6,代碼來源:class.cs

示例10: AcceptChildContainers

		protected void AcceptChildContainers (StructuralVisitor visitor)
		{
			if (visitor.AutoVisit) {
				if (visitor.Skip) {
					visitor.Skip = false;
					return;
				}
				if (visitor.Continue && containers != null && containers.Count > 0) {
					foreach (var container in containers) {
						if (visitor.Continue) {
							if (container is TypeDefinition && visitor.Depth >= VisitDepth.Types)
								container.Accept (visitor);
							else if (container is NamespaceContainer && visitor.Depth >= VisitDepth.Namespaces)
								container.Accept (visitor);
						}
					}
				}
			}
		}
開發者ID:rlfqudxo,項目名稱:playscript-mono,代碼行數:19,代碼來源:class.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)
		{
			throw new InternalErrorException ("should not be called");
		}
開發者ID:famousthom,項目名稱:monodevelop,代碼行數:4,代碼來源:roottypes.cs

示例14: 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

示例15: Accept

		public virtual void Accept (StructuralVisitor visitor)
		{
			visitor.Visit (this);
		}
開發者ID:constructor-igor,項目名稱:cudafy,代碼行數:4,代碼來源:decl.cs


注:本文中的Mono.CSharp.StructuralVisitor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。