Set line number to use left parenthesis not right

This commit is contained in:
NotZippy
2017-10-07 21:41:23 -07:00
parent 637ccbd250
commit 2d4ccf289c

View File

@@ -498,7 +498,7 @@ func appendAction(fset *token.FileSet, mm methodMap, decl ast.Decl, pkgImportPat
}
// Add this call's args to the renderArgs.
pos := fset.Position(callExpr.Rparen)
pos := fset.Position(callExpr.Lparen)
methodCall := &methodCall{
Line: pos.Line,
Names: []string{},