コード例 #1
0
 public override void VisitConstructorDeclaration(ConstructorDeclaration declaration)
 {
     Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);
     addToMap(declaration.Name, t);
     //_methodRanges.Add(constructorDeclaration.Name, new Tupel(constructorDeclaration.StartLocation.Line,
     //                                                         constructorDeclaration.EndLocation.Line));
 }
コード例 #2
0
        public override void VisitConstructorDeclaration(ConstructorDeclaration declaration)
        {
            Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);

            addToMap(declaration.Name, t);
            //_methodRanges.Add(constructorDeclaration.Name, new Tupel(constructorDeclaration.StartLocation.Line,
            //                                                         constructorDeclaration.EndLocation.Line));
        }
コード例 #3
0
        private void addToMap(string name, Tupel lineRange)
        {
            string methnodName = name;

            if (overload)
            {
                int cnt = 0;
                if (_methodCnt.ContainsKey(name))
                {
                    cnt = _methodCnt[name];
                }
                methnodName += cnt;

                cnt++;
                _methodCnt[name] = cnt;
            }



            _methodRanges.Add(methnodName, lineRange);
        }
コード例 #4
0
 public override void VisitPropertyDeclaration(PropertyDeclaration declaration)
 {
     Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);
     _current.addToMap(declaration.Name, t);
 }
コード例 #5
0
 public override void VisitConstructorDeclaration(ConstructorDeclaration declaration)
 {
     Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);
     _current.addToMap(declaration.Name, t);
 }
コード例 #6
0
        public void addToMap(string name, Tupel lineRange)
        {
            string methodName = name;
            if (overload) {
                int cnt = 0;
                if (_methodCnt.ContainsKey(name))
                    cnt = _methodCnt[name];
                methodName += cnt;

                cnt++;
                _methodCnt[name] = cnt;
            }

            _methodRanges.Add(methodName, lineRange);
        }
コード例 #7
0
 public TypeDeclDict(Tupel tuple)
 {
     this.TypeDeclTupel = tuple;
 }
コード例 #8
0
        public override void VisitMethodDeclaration(MethodDeclaration declaration)
        {
            Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);

            addToMap(declaration.Name, t);
        }
コード例 #9
0
 public override void VisitMethodDeclaration(MethodDeclaration declaration)
 {
     Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);
     addToMap(declaration.Name, t);
 }