Esempio n. 1
0
		public virtual object VisitEndStatement(EndStatement endStatement, object data) {
			Debug.Assert((endStatement != null));
			return null;
		}
		public virtual object VisitEndStatement(EndStatement endStatement, object data) {
			throw new global::System.NotImplementedException("EndStatement");
		}
		public virtual object TrackedVisitEndStatement(EndStatement endStatement, object data) {
			return base.VisitEndStatement(endStatement, data);
		}
Esempio n. 4
0
	void SingleLineStatementList(List<Statement> list) {
		Statement embeddedStatement = null;
		if (la.kind == 113) {
			Get();
			embeddedStatement = new EndStatement() { StartLocation = t.Location, EndLocation = t.EndLocation };
		} else if (StartOf(1)) {
			EmbeddedStatement(out embeddedStatement);
		} else SynErr(315);
		if (embeddedStatement != null) list.Add(embeddedStatement);
		while (la.kind == 21) {
			Get();
			while (la.kind == 21) {
				Get();
			}
			if (la.kind == 113) {
				Get();
				embeddedStatement = new EndStatement() { StartLocation = t.Location, EndLocation = t.EndLocation };
			} else if (StartOf(1)) {
				EmbeddedStatement(out embeddedStatement);
			} else SynErr(316);
			if (embeddedStatement != null) list.Add(embeddedStatement);
		}
	}
		public sealed override object VisitEndStatement(EndStatement endStatement, object data) {
			this.BeginVisit(endStatement);
			object result = this.TrackedVisitEndStatement(endStatement, data);
			this.EndVisit(endStatement);
			return result;
		}