Пример #1
0
		public virtual object VisitExitStatement(ExitStatement exitStatement, object data) {
			Debug.Assert((exitStatement != null));
			return null;
		}
		public virtual object VisitExitStatement(ExitStatement exitStatement, object data) {
			throw new global::System.NotImplementedException("ExitStatement");
		}
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ExitStatement o = other as ExitStatement;

            return(o != null && this.ExitKind == o.ExitKind);
        }
Пример #4
0
	void ExitStatement(out Statement statement) {
		Expect(120);
		ExitType exitType = ExitType.None;
		switch (la.kind) {
		case 210: {
			Get();
			exitType = ExitType.Sub;
			break;
		}
		case 127: {
			Get();
			exitType = ExitType.Function;
			break;
		}
		case 186: {
			Get();
			exitType = ExitType.Property;
			break;
		}
		case 108: {
			Get();
			exitType = ExitType.Do;
			break;
		}
		case 124: {
			Get();
			exitType = ExitType.For;
			break;
		}
		case 218: {
			Get();
			exitType = ExitType.Try;
			break;
		}
		case 231: {
			Get();
			exitType = ExitType.While;
			break;
		}
		case 197: {
			Get();
			exitType = ExitType.Select;
			break;
		}
		default: SynErr(307); break;
		}
		statement = new ExitStatement(exitType);
	}
Пример #5
0
		public virtual object TrackedVisitExitStatement(ExitStatement exitStatement, object data) {
			return base.VisitExitStatement(exitStatement, data);
		}
Пример #6
0
		public sealed override object VisitExitStatement(ExitStatement exitStatement, object data) {
			this.BeginVisit(exitStatement);
			object result = this.TrackedVisitExitStatement(exitStatement, data);
			this.EndVisit(exitStatement);
			return result;
		}