Exemplo n.º 1
0
        internal bool ConfirmConsistency(IParseTree tree, bool isCaseSensitive = false)
        {
            var comparisonType = isCaseSensitive
                ? StringComparison.InvariantCultureIgnoreCase
                : StringComparison.InvariantCulture;
            var fragmentA = tree.GetText();
            var fragmentB = GetTextFor(tree);

            Log.DebugFormat("ConfirmConstistency: {0} | {1} | {2} | {3}", fragmentA, fragmentB, tree, tree.ToRangeString());
            return(String.Equals(fragmentA, fragmentB, comparisonType));
        }