| Index: dart/frog/leg/scanner/listener.dart
|
| diff --git a/dart/frog/leg/scanner/listener.dart b/dart/frog/leg/scanner/listener.dart
|
| index d22dd5bac0f8f13b4427e2c44e59b466178560b3..d439e39d9d01ab5ff83d6e0b5a5388b4bb2552be 100644
|
| --- a/dart/frog/leg/scanner/listener.dart
|
| +++ b/dart/frog/leg/scanner/listener.dart
|
| @@ -278,9 +278,6 @@ class Listener {
|
| void handleConstExpression(Token token, bool named) {
|
| }
|
|
|
| - void handleFinalKeyword(Token finalKeyword) {
|
| - }
|
| -
|
| void handleFunctionTypedFormalParameter(Token token) {
|
| }
|
|
|
| @@ -383,9 +380,6 @@ class Listener {
|
| void handleValuedFormalParameter(Token equals, Token token) {
|
| }
|
|
|
| - void handleVarKeyword(Token token) {
|
| - }
|
| -
|
| void handleVoidKeyword(Token token) {
|
| }
|
|
|
| @@ -686,7 +680,8 @@ class NodeListener extends ElementListener {
|
| void endFormalParameter(Token token, Token thisKeyword) {
|
| NodeList name = new NodeList.singleton(popNode());
|
| TypeAnnotation type = popNode();
|
| - pushNode(new VariableDefinitions(type, null, name, token));
|
| + Modifiers modifiers = popNode();
|
| + pushNode(new VariableDefinitions(type, modifiers, name, token));
|
| if (thisKeyword !== null) {
|
| canceler.cancel('field formal parameters not implemented',
|
| token: thisKeyword);
|
| @@ -822,20 +817,13 @@ class NodeListener extends ElementListener {
|
| modifiers, initializers));
|
| }
|
|
|
| - void handleVarKeyword(Token token) {
|
| - pushNode(new TypeAnnotation(new Identifier(token), null));
|
| - }
|
| -
|
| - void handleFinalKeyword(Token token) {
|
| - canceler.cancel('Final not implemented yet', token: token);
|
| - }
|
| -
|
| void endVariablesDeclaration(int count, Token endToken) {
|
| // TODO(ahe): Pick one name for this concept, either
|
| // VariablesDeclaration or VariableDefinitions.
|
| NodeList variables = makeNodeList(count, null, null, ",");
|
| TypeAnnotation type = popNode();
|
| - pushNode(new VariableDefinitions(type, null, variables, endToken));
|
| + Modifiers modifiers = popNode();
|
| + pushNode(new VariableDefinitions(type, modifiers, variables, endToken));
|
| }
|
|
|
| void endInitializer(Token assignmentOperator) {
|
|
|