mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Replace Token.previous usage in BodyBuilder
Change-Id: If96a87086724e05756ab237a2afdec6782bfca3c Reviewed-on: https://dart-review.googlesource.com/48660 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Dan Rubel <danrubel@google.com>
This commit is contained in:
parent
f66532b31b
commit
f858e5d539
|
@ -3435,7 +3435,8 @@ class BodyBuilder<Arguments> extends ScopeListener<JumpTarget>
|
|||
void beginTypeVariables(Token token) {
|
||||
debugEvent("beginTypeVariables");
|
||||
OutlineBuilder listener = new OutlineBuilder(library);
|
||||
new ClassMemberParser(listener).parseTypeVariablesOpt(token.previous);
|
||||
new ClassMemberParser(listener)
|
||||
.parseTypeVariablesOpt(new Token.eof(-1)..next = token);
|
||||
enterFunctionTypeScope(listener.pop());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue