YamlUtility.Grammar.YamlParser.ParseLocalTagPrefix C# (CSharp) Method

ParseLocalTagPrefix() private method

private ParseLocalTagPrefix ( bool &success ) : LocalTagPrefix
success bool
return LocalTagPrefix
        private LocalTagPrefix ParseLocalTagPrefix(out bool success)
        {
            int errorCount = Errors.Count;
            LocalTagPrefix localTagPrefix = new LocalTagPrefix();
            int start_position = position;

            MatchTerminal('!', out success);
            if (!success)
            {
                Error("Failed to parse '!' of LocalTagPrefix.");
                position = start_position;
                return localTagPrefix;
            }

            while (true)
            {
                char ch = ParseUriChar(out success);
                if (success) { localTagPrefix.Prefix.Add(ch); }
                else { break; }
            }
            success = true;

            return localTagPrefix;
        }
YamlParser