Exemple #1
0
        void EnsurePartAddedForSettingsDelimiter()
        {
            if (parts.Count != 1)
            {
                return;
            }

            PaketDependencyRulePart keywordPart = parts[0];
            int delimiter = keywordPart.Text.IndexOf(':');

            if (delimiter > 0)
            {
                parts.Clear();
                parts.AddRange(keywordPart.SplitByDelimiter(delimiter));
            }
        }
Exemple #2
0
        public PaketDependencyFileLineParseResult(IEnumerable <PaketDependencyRulePart> parts, int triggerOffset)
        {
            this.parts  = parts.ToList();
            CurrentItem = this.parts.Count;

            PaketDependencyRulePart lastPart = parts.LastOrDefault();

            if (lastPart != null)
            {
                if (triggerOffset > lastPart.EndOffset)
                {
                    CurrentItem++;
                }
            }

            IsCurrentItemFirstKeywordValue = CheckCurrentItemIsFirstKeywordValue();
        }