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)); }
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; }
public override void VisitMethodDeclaration(MethodDeclaration declaration) { Tupel t = new Tupel(declaration.StartLocation.Line, declaration.EndLocation.Line); addToMap(declaration.Name, t); }