Пример #1
0
        public void AddNestingLevelMethod(DescriptorMethod descriptorMethod, string fileName)
        {
            if (!methodsListOfNestingLevel.ContainsKey(descriptorMethod.NestingLevel))
                methodsListOfNestingLevel.Add(descriptorMethod.NestingLevel, new List<Tuple<string, int>>());

            methodsListOfNestingLevel[descriptorMethod.NestingLevel].Add(Tuple.Create(fileName, descriptorMethod.LineNumber));
        }
Пример #2
0
        public void AddLengthMethod(DescriptorMethod descriptorMethod, string fileName)
        {
            if (!methodsListOfLength.ContainsKey(descriptorMethod.Length))
                methodsListOfLength.Add(descriptorMethod.Length, new List<Tuple<string, int>>());


            methodsListOfLength[descriptorMethod.Length].Add(Tuple.Create(fileName, descriptorMethod.LineNumber));
        }