/// <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); }
/// <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)); }