Exemplo 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");
		}
Exemplo n.º 3
0
		public virtual object TrackedVisitEndStatement(EndStatement endStatement, object data) {
			return base.VisitEndStatement(endStatement, data);
		}
Exemplo 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);
		}
	}
Exemplo n.º 5
0
		public sealed override object VisitEndStatement(EndStatement endStatement, object data) {
			this.BeginVisit(endStatement);
			object result = this.TrackedVisitEndStatement(endStatement, data);
			this.EndVisit(endStatement);
			return result;
		}