deferpanic / goweave

Aspect Oriented Programming for Go
MIT License
225 stars 9 forks source link

after call advice should be using rparen #4

Closed eyberg closed 9 years ago

eyberg commented 9 years ago

right now it's

begin := fset.Position(stmt.Lparen).Line

should have a corollary or use something like

end := fset.Position(stmt.Rparen).Line
eyberg commented 9 years ago

affects both before/after - need to keep track of parent nodes position

    fmt.Println("some stuff" + strconv.Itoa(2)) +
    "and some other stuff" + strconv.Itoa(42))