Beispiel #1
0
        protected static int update(BaseParser parser, ObjectGraph result, int lineNumber, string lineSource)
        {
            var objectGraph = parser.Result;

            objectGraph.LineNumber = lineNumber;
            objectGraph.LineSource = lineSource.Trim();
            objectGraph.TabCount   = BaseParser.TabCount;
            if (result.If(objectGraph.Key, out _))
            {
                objectGraph.Key = Replacer.Key(objectGraph.Name);
            }

            result[objectGraph.Key] = objectGraph;

            return(parser.Position);
        }