Ejemplo n.º 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));
 }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
 public override void VisitPropertyDeclaration(PropertyDeclaration declaration)
 {
     Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);
     _current.addToMap(declaration.Name, t);
 }
 public override void VisitConstructorDeclaration(ConstructorDeclaration declaration)
 {
     Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);
     _current.addToMap(declaration.Name, t);
 }
        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);
        }
 public TypeDeclDict(Tupel tuple)
 {
     this.TypeDeclTupel = tuple;
 }
Ejemplo n.º 8
0
        public override void VisitMethodDeclaration(MethodDeclaration declaration)
        {
            Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);

            addToMap(declaration.Name, t);
        }
Ejemplo n.º 9
0
 public override void VisitMethodDeclaration(MethodDeclaration declaration)
 {
     Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line);
     addToMap(declaration.Name, t);
 }