commit | 3e7eef12d4d753dcca1bf10bb630faab78168d15 | [log] [tgz] |
---|---|---|
author | Dan Rubel <danrubel@google.com> | Sun May 20 02:33:00 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Sun May 20 02:33:00 2018 +0000 |
tree | dbba43ff66414fef888e6ba1c87c42ea404826d9 | |
parent | 5b4d67b22e15ea7c9d716612916ca8fd6b77ed30 [diff] |
Remove reference to token.previous Change-Id: Ia1ae04e03b868dfb482d4853fac1c288331a6085 Reviewed-on: https://dart-review.googlesource.com/55942 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Dan Rubel <danrubel@google.com>
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart index e37be19..1291f78 100644 --- a/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart +++ b/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
@@ -22,7 +22,7 @@ if (node is ArgumentList) { if (request.target.entity == node.rightParenthesis) { // Parser ignores trailing commas - if (node.rightParenthesis.previous?.lexeme == ',') { + if (node.findPrevious(node.rightParenthesis)?.lexeme == ',') { return node.arguments.length + 1; } }