コード例 #1
0
		public virtual object VisitMemberInitializerExpression(MemberInitializerExpression memberInitializerExpression, object data) {
			Debug.Assert((memberInitializerExpression != null));
			Debug.Assert((memberInitializerExpression.Expression != null));
			return memberInitializerExpression.Expression.AcceptVisitor(this, data);
		}
コード例 #2
0
		public virtual object VisitMemberInitializerExpression(MemberInitializerExpression memberInitializerExpression, object data) {
			throw new global::System.NotImplementedException("MemberInitializerExpression");
		}
コード例 #3
0
		public virtual object VisitMemberInitializerExpression(MemberInitializerExpression memberInitializerExpression, object data) {
			Debug.Assert((memberInitializerExpression != null));
			Debug.Assert((memberInitializerExpression.Expression != null));
			nodeStack.Push(memberInitializerExpression.Expression);
			memberInitializerExpression.Expression.AcceptVisitor(this, data);
			memberInitializerExpression.Expression = ((Expression)(nodeStack.Pop()));
			return null;
		}
コード例 #4
0
ファイル: Parser.cs プロジェクト: ThomasZitzler/ILSpy
	void MemberInitializer(out MemberInitializerExpression memberInitializer) {
		memberInitializer = new MemberInitializerExpression();
		memberInitializer.StartLocation = la.Location;
		Expression initExpr = null;
		bool isKey = false;
		string name = null;

		if (la.kind == 147) {
			Get();
			isKey = true;
		}
		Expect(26);
		IdentifierOrKeyword(out name);
		Expect(20);
		Expr(out initExpr);
		memberInitializer.Name = name;
			memberInitializer.Expression = initExpr;
			memberInitializer.IsKey = isKey;
			memberInitializer.EndLocation = t.EndLocation;

	}
コード例 #5
0
		public sealed override object VisitMemberInitializerExpression(MemberInitializerExpression memberInitializerExpression, object data) {
			this.BeginVisit(memberInitializerExpression);
			object result = this.TrackedVisitMemberInitializerExpression(memberInitializerExpression, data);
			this.EndVisit(memberInitializerExpression);
			return result;
		}
コード例 #6
0
		public virtual object TrackedVisitMemberInitializerExpression(MemberInitializerExpression memberInitializerExpression, object data) {
			return base.VisitMemberInitializerExpression(memberInitializerExpression, data);
		}