Skip to content

Commit 6536c9d

Browse files
stereotype441Commit Queue
authored andcommitted
[messages] Move ScannerErrorCode into analyzer.
Moves the class `ScannerErrorCode`, from `package:_fe_analyzer_shared` to `package:analyzer`. The only use of this code in `package:front_end` is in tests, and it's ok for `package:front_end` tests to refer to `package:analyzer`, so it didn't need to be shared. Moving it into `package:analyzer` allows for a cleaner separation between analyzer-specific code and code that is truly shared between the analyzer and the CFE. Change-Id: I6a6a69643800d664651cffda3a78059a9bb7756d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/455263 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Paul Berry <[email protected]>
1 parent 44036a0 commit 6536c9d

File tree

10 files changed

+209
-242
lines changed

10 files changed

+209
-242
lines changed

pkg/_fe_analyzer_shared/lib/src/messages/codes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
/// @docImport 'package:_fe_analyzer_shared/src/scanner/errors.dart';
5+
/// @docImport 'package:analyzer/src/dart/error/syntactic_errors.dart';
66
/// @docImport 'package:analyzer/src/fasta/ast_builder.dart';
77
/// @docImport 'package:analyzer/src/fasta/error_converter.dart';
88
/// @docImport 'package:analyzer/src/diagnostic/diagnostic_code_values.dart';

pkg/_fe_analyzer_shared/lib/src/scanner/errors.dart

Lines changed: 0 additions & 7 deletions
This file was deleted.

pkg/_fe_analyzer_shared/lib/src/scanner/errors.g.dart

Lines changed: 0 additions & 219 deletions
This file was deleted.

pkg/analyzer/lib/src/dart/error/syntactic_errors.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@
44

55
import 'package:_fe_analyzer_shared/src/base/errors.dart';
66

7-
export 'package:_fe_analyzer_shared/src/scanner/errors.dart'
8-
show ScannerErrorCode;
9-
107
part 'package:analyzer/src/dart/error/syntactic_errors.g.dart';

0 commit comments

Comments
 (0)