| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library fasta.outline_builder; | 5 library fasta.outline_builder; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' show | 7 import 'package:kernel/ast.dart' show |
| 8 AsyncMarker, | 8 AsyncMarker, |
| 9 ProcedureKind; | 9 ProcedureKind; |
| 10 | 10 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 checkEmpty(); | 290 checkEmpty(); |
| 291 } | 291 } |
| 292 | 292 |
| 293 @override | 293 @override |
| 294 void endTypeArguments(int count, Token beginToken, Token endToken) { | 294 void endTypeArguments(int count, Token beginToken, Token endToken) { |
| 295 debugEvent("TypeArguments"); | 295 debugEvent("TypeArguments"); |
| 296 push(popList(count) ?? NullValue.TypeArguments); | 296 push(popList(count) ?? NullValue.TypeArguments); |
| 297 } | 297 } |
| 298 | 298 |
| 299 @override | 299 @override |
| 300 void endType(Token beginToken, Token endToken) { | 300 void handleType(Token beginToken, Token endToken) { |
| 301 debugEvent("Type"); | 301 debugEvent("Type"); |
| 302 List<TypeBuilder> arguments = pop(); | 302 List<TypeBuilder> arguments = pop(); |
| 303 String name = pop(); | 303 String name = pop(); |
| 304 push(library.addInterfaceType(name, arguments)); | 304 push(library.addInterfaceType(name, arguments)); |
| 305 } | 305 } |
| 306 | 306 |
| 307 @override | 307 @override |
| 308 void endTypeList(int count) { | 308 void endTypeList(int count) { |
| 309 debugEvent("TypeList"); | 309 debugEvent("TypeList"); |
| 310 push(popList(count) ?? NullValue.TypeList); | 310 push(popList(count) ?? NullValue.TypeList); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 library.addEnum(metadata, name, constants); | 399 library.addEnum(metadata, name, constants); |
| 400 checkEmpty(); | 400 checkEmpty(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 @override | 403 @override |
| 404 void beginFunctionTypeAlias(Token token) { | 404 void beginFunctionTypeAlias(Token token) { |
| 405 library.beginNestedScope(); | 405 library.beginNestedScope(); |
| 406 } | 406 } |
| 407 | 407 |
| 408 @override | 408 @override |
| 409 void endFunctionTypeAlias(Token typedefKeyword, Token endToken) { | 409 void endFunctionTypeAlias( |
| 410 Token typedefKeyword, Token equals, Token endToken) { |
| 410 debugEvent("endFunctionTypeAlias"); | 411 debugEvent("endFunctionTypeAlias"); |
| 411 List<FormalParameterBuilder> formals = pop(); | 412 List<FormalParameterBuilder> formals = pop(); |
| 412 List<TypeVariableBuilder> typeVariables = pop(); | 413 List<TypeVariableBuilder> typeVariables = pop(); |
| 413 String name = pop(); | 414 String name = pop(); |
| 414 TypeBuilder returnType = pop(); | 415 TypeBuilder returnType = pop(); |
| 415 List<MetadataBuilder> metadata = pop(); | 416 List<MetadataBuilder> metadata = pop(); |
| 416 library.addFunctionTypeAlias( | 417 library.addFunctionTypeAlias( |
| 417 metadata, returnType, name, typeVariables, formals); | 418 metadata, returnType, name, typeVariables, formals); |
| 418 checkEmpty(); | 419 checkEmpty(); |
| 419 } | 420 } |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 Link<Token> handleMemberName(Link<Token> identifiers) { | 552 Link<Token> handleMemberName(Link<Token> identifiers) { |
| 552 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 553 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
| 553 return removeNativeClause(identifiers); | 554 return removeNativeClause(identifiers); |
| 554 } | 555 } |
| 555 | 556 |
| 556 @override | 557 @override |
| 557 void debugEvent(String name) { | 558 void debugEvent(String name) { |
| 558 // printEvent(name); | 559 // printEvent(name); |
| 559 } | 560 } |
| 560 } | 561 } |
| OLD | NEW |