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)); }
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)); }