parameterdeclarationexpression.cs

来自「全功能c#编译器」· CS 代码 · 共 60 行

CS
60
字号
using System;
using System.Collections;

namespace ICSharpCode.SharpRefactory.Parser.AST {
	
	public class ParameterDeclarationExpression : Expression
	{
		TypeReference  typeReference;
		string         parameterName;
		ParamModifiers paramModifiers;
		ArrayList      attributes = new ArrayList();
		
		public TypeReference TypeReference {
			get {
				return typeReference;
			}
			set {
				typeReference = value;
			}
		}
		public string ParameterName {
			get {
				return parameterName;
			}
			set {
				parameterName = value;
			}
		}
		
		public ParamModifiers ParamModifiers {
			get {
				return paramModifiers;
			}
			set {
				paramModifiers = value;
			}
		}
		
		public ArrayList Attributes {
			get {
				return attributes;
			}
			set {
				attributes = value;
			}
		}
		
		public ParameterDeclarationExpression(TypeReference typeReference, string parameterName, ParamModifiers paramModifiers)
		{
			this.typeReference  = typeReference;
			this.parameterName  = parameterName;
			this.paramModifiers = paramModifiers;
		}
		public override object AcceptVisitor(IASTVisitor visitor, object data)
		{
			return visitor.Visit(this, data);
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?