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 ProcedureKind; | 7 import 'package:kernel/ast.dart' show ProcedureKind; |
8 | 8 |
9 import '../fasta_codes.dart' show FastaMessage, codeExpectedBlockToSkip; | 9 import '../fasta_codes.dart' show FastaMessage, codeExpectedBlockToSkip; |
10 | 10 |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 Token recover = target.skipNativeClause(token); | 781 Token recover = target.skipNativeClause(token); |
782 if (recover != null) { | 782 if (recover != null) { |
783 nativeMethodName = target.extractNativeMethodName(token); | 783 nativeMethodName = target.extractNativeMethodName(token); |
784 return recover; | 784 return recover; |
785 } | 785 } |
786 } | 786 } |
787 return super.handleUnrecoverableError(token, message); | 787 return super.handleUnrecoverableError(token, message); |
788 } | 788 } |
789 | 789 |
790 @override | 790 @override |
| 791 void addCompileTimeErrorFromMessage(FastaMessage message) { |
| 792 library.addCompileTimeError(message.charOffset, message.message, |
| 793 fileUri: message.uri); |
| 794 } |
| 795 |
| 796 @override |
791 Link<Token> handleMemberName(Link<Token> identifiers) { | 797 Link<Token> handleMemberName(Link<Token> identifiers) { |
792 if (!isDartLibrary || identifiers.isEmpty) return identifiers; | 798 if (!isDartLibrary || identifiers.isEmpty) return identifiers; |
793 return removeNativeClause(identifiers); | 799 return removeNativeClause(identifiers); |
794 } | 800 } |
795 | 801 |
796 @override | 802 @override |
797 void debugEvent(String name) { | 803 void debugEvent(String name) { |
798 // printEvent(name); | 804 // printEvent(name); |
799 } | 805 } |
800 } | 806 } |
OLD | NEW |