예제 #1
0
파일: Program.cs 프로젝트: Wanderer19/Tasks
        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
파일: Program.cs 프로젝트: Wanderer19/Tasks
        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));
        }