/// <summary>
		/// Checks if the Statements tree rooted in the suplied statement contains labels or goto statements.
		/// </summary>
		/// <param name="statement">The root of the statements tree.</param>
		/// <returns>Returns true if label or goto statement was found.</returns>
		private bool ContainsLabel(Statement statement)
		{
			LableAndGotoFinder finder = new LableAndGotoFinder();
			return finder.CheckForLableOrGoto(statement);
		}
Exemplo n.º 2
0
        /// <summary>
        /// Checks if the Statements tree rooted in the suplied statement contains labels or goto statements.
        /// </summary>
        /// <param name="statement">The root of the statements tree.</param>
        /// <returns>Returns true if label or goto statement was found.</returns>
        private bool ContainsLabel(Statement statement)
        {
            LableAndGotoFinder finder = new LableAndGotoFinder();

            return(finder.CheckForLableOrGoto(statement));
        }