diff --git a/pkg/analyzer/lib/src/codegen/tools.dart b/pkg/analyzer/lib/src/codegen/tools.dart index ff53db63054..a12ac3541dd 100644 --- a/pkg/analyzer/lib/src/codegen/tools.dart +++ b/pkg/analyzer/lib/src/codegen/tools.dart @@ -10,6 +10,7 @@ library analyzer.src.codegen.tools; import 'package:analyzer/src/codegen/html.dart'; import 'package:analyzer/src/codegen/text_formatter.dart'; import 'package:html/dom.dart' as dom; +export 'package:front_end/src/codegen/tools.dart'; final RegExp trailingSpacesInLineRegExp = new RegExp(r' +$', multiLine: true); final RegExp trailingWhitespaceRegExp = new RegExp(r'[\n ]+$'); diff --git a/pkg/analyzer/lib/src/dart/analysis/byte_store.dart b/pkg/analyzer/lib/src/dart/analysis/byte_store.dart new file mode 100644 index 00000000000..4fe31e64d98 --- /dev/null +++ b/pkg/analyzer/lib/src/dart/analysis/byte_store.dart @@ -0,0 +1,9 @@ +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// This library re-exports the parts of front_end's byte_store.dart whose API is +// stable enough to be relied upon by clients. + +export 'package:front_end/src/incremental/byte_store.dart' + show ByteStore, MemoryByteStore, MemoryCachingByteStore; diff --git a/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart b/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart new file mode 100644 index 00000000000..c17428c000f --- /dev/null +++ b/pkg/analyzer/lib/src/dart/analysis/file_byte_store.dart @@ -0,0 +1,9 @@ +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// This library re-exports the parts of front_end's file_byte_store.dart whose +// API is stable enough to be relied upon by clients. + +export 'package:front_end/src/incremental/file_byte_store.dart' + show FileByteStore; diff --git a/pkg/analyzer/lib/src/dart/analysis/performance_logger.dart b/pkg/analyzer/lib/src/dart/analysis/performance_logger.dart new file mode 100644 index 00000000000..2fd3ee1992c --- /dev/null +++ b/pkg/analyzer/lib/src/dart/analysis/performance_logger.dart @@ -0,0 +1,8 @@ +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// This library re-exports the parts of front_end's performance_logger.dart +// whose API is stable enough to be relied upon by clients. + +export 'package:front_end/src/base/performace_logger.dart' show PerformanceLog; diff --git a/pkg/analyzer/lib/src/generated/timestamped_data.dart b/pkg/analyzer/lib/src/generated/timestamped_data.dart new file mode 100644 index 00000000000..917fb1f97c3 --- /dev/null +++ b/pkg/analyzer/lib/src/generated/timestamped_data.dart @@ -0,0 +1,8 @@ +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// This library re-exports front_end's timestamped_data.dart, since its API is +// stable enough to be relied upon by clients. + +export 'package:front_end/src/base/timestamped_data.dart' show TimestampedData; diff --git a/pkg/analyzer/lib/src/summary/api_signature.dart b/pkg/analyzer/lib/src/summary/api_signature.dart new file mode 100644 index 00000000000..5a2c4380c95 --- /dev/null +++ b/pkg/analyzer/lib/src/summary/api_signature.dart @@ -0,0 +1,8 @@ +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// This library re-exports front_end's api_signature.dart, since its API is +// stable enough to be relied upon by clients. + +export 'package:front_end/src/base/api_signature.dart' show ApiSignature; diff --git a/pkg/analyzer/lib/src/summary/flat_buffers.dart b/pkg/analyzer/lib/src/summary/flat_buffers.dart new file mode 100644 index 00000000000..8a33d951707 --- /dev/null +++ b/pkg/analyzer/lib/src/summary/flat_buffers.dart @@ -0,0 +1,8 @@ +// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// This library re-exports front_end's flat_buffers.dart, since its API is +// stable enough to be relied upon by clients. + +export 'package:front_end/src/base/flat_buffers.dart'; diff --git a/pkg/analyzer/tool/summary/generate.dart b/pkg/analyzer/tool/summary/generate.dart index 8eb700d30ad..2e17c273e17 100644 --- a/pkg/analyzer/tool/summary/generate.dart +++ b/pkg/analyzer/tool/summary/generate.dart @@ -435,8 +435,8 @@ class _CodeGenerator { out(); out("import 'dart:convert' as convert;"); out(); - out("import 'package:front_end/src/base/api_signature.dart' as api_sig;"); - out("import 'package:front_end/src/base/flat_buffers.dart' as fb;"); + out("import 'package:analyzer/src/summary/api_signature.dart' as api_sig;"); + out("import 'package:analyzer/src/summary/flat_buffers.dart' as fb;"); out(); out("import 'idl.dart' as idl;"); out(); diff --git a/pkg/analyzer_plugin/lib/plugin/plugin.dart b/pkg/analyzer_plugin/lib/plugin/plugin.dart index ecffd5e76ce..51792b6325c 100644 --- a/pkg/analyzer_plugin/lib/plugin/plugin.dart +++ b/pkg/analyzer_plugin/lib/plugin/plugin.dart @@ -18,9 +18,9 @@ import 'package:analyzer_plugin/protocol/protocol_generated.dart'; import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; import 'package:analyzer_plugin/src/utilities/null_string_sink.dart'; import 'package:analyzer_plugin/utilities/subscriptions/subscription_manager.dart'; -import 'package:front_end/src/base/performace_logger.dart'; -import 'package:front_end/src/incremental/byte_store.dart'; -import 'package:front_end/src/incremental/file_byte_store.dart'; +import 'package:analyzer/src/dart/analysis/performance_logger.dart'; +import 'package:analyzer/src/dart/analysis/byte_store.dart'; +import 'package:analyzer/src/dart/analysis/file_byte_store.dart'; import 'package:path/src/context.dart'; import 'package:pub_semver/pub_semver.dart'; diff --git a/pkg/analyzer_plugin/lib/src/utilities/completion/suggestion_builder.dart b/pkg/analyzer_plugin/lib/src/utilities/completion/suggestion_builder.dart index 24726965fe8..2afc039629c 100644 --- a/pkg/analyzer_plugin/lib/src/utilities/completion/suggestion_builder.dart +++ b/pkg/analyzer_plugin/lib/src/utilities/completion/suggestion_builder.dart @@ -12,8 +12,7 @@ import 'package:analyzer_plugin/src/utilities/documentation.dart'; import 'package:analyzer_plugin/utilities/analyzer_converter.dart'; import 'package:analyzer_plugin/utilities/completion/relevance.dart'; import 'package:analyzer_plugin/utilities/completion/suggestion_builder.dart'; -import 'package:front_end/src/base/source.dart' show Source; -import 'package:front_end/src/base/uri_kind.dart'; +import 'package:analyzer/src/generated/source.dart' show Source, UriKind; /** * An object used to build code completion suggestions for Dart code. diff --git a/pkg/analyzer_plugin/lib/utilities/completion/suggestion_builder.dart b/pkg/analyzer_plugin/lib/utilities/completion/suggestion_builder.dart index 6ec693f7d9d..f5c7f561039 100644 --- a/pkg/analyzer_plugin/lib/utilities/completion/suggestion_builder.dart +++ b/pkg/analyzer_plugin/lib/utilities/completion/suggestion_builder.dart @@ -5,7 +5,7 @@ import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer_plugin/protocol/protocol_common.dart' hide Element; import 'package:analyzer_plugin/utilities/completion/relevance.dart'; -import 'package:front_end/src/base/source.dart' show Source; +import 'package:analyzer/src/generated/source.dart' show Source; /** * An object used to build code completion suggestions for Dart code. diff --git a/pkg/analyzer_plugin/test/plugin/mocks.dart b/pkg/analyzer_plugin/test/plugin/mocks.dart index 7794fb1f586..1a5e2685074 100644 --- a/pkg/analyzer_plugin/test/plugin/mocks.dart +++ b/pkg/analyzer_plugin/test/plugin/mocks.dart @@ -14,7 +14,7 @@ import 'package:analyzer_plugin/plugin/plugin.dart'; import 'package:analyzer_plugin/protocol/protocol.dart'; import 'package:analyzer_plugin/protocol/protocol_generated.dart'; import 'package:analyzer_plugin/src/protocol/protocol_internal.dart'; -import 'package:front_end/src/base/timestamped_data.dart'; +import 'package:analyzer/src/generated/timestamped_data.dart'; import 'package:test/test.dart'; class MockAnalysisDriver extends AnalysisDriver { diff --git a/pkg/analyzer_plugin/test/support/abstract_context.dart b/pkg/analyzer_plugin/test/support/abstract_context.dart index 2f679df8c3c..c461237a698 100644 --- a/pkg/analyzer_plugin/test/support/abstract_context.dart +++ b/pkg/analyzer_plugin/test/support/abstract_context.dart @@ -19,8 +19,8 @@ import 'package:analyzer/src/generated/engine.dart' as engine; import 'package:analyzer/src/generated/sdk.dart'; import 'package:analyzer/src/generated/source_io.dart'; import 'package:analyzer/src/generated/testing/element_search.dart'; -import 'package:front_end/src/base/performace_logger.dart'; -import 'package:front_end/src/incremental/byte_store.dart'; +import 'package:analyzer/src/dart/analysis/performance_logger.dart'; +import 'package:analyzer/src/dart/analysis/byte_store.dart'; import 'mock_sdk.dart'; diff --git a/pkg/analyzer_plugin/tool/spec/check_all_test.dart b/pkg/analyzer_plugin/tool/spec/check_all_test.dart index db9d2e5a3e2..150ed8bf6f7 100644 --- a/pkg/analyzer_plugin/tool/spec/check_all_test.dart +++ b/pkg/analyzer_plugin/tool/spec/check_all_test.dart @@ -4,7 +4,7 @@ import 'dart:io'; -import 'package:front_end/src/codegen/tools.dart'; +import 'package:analyzer/src/codegen/tools.dart'; import 'package:path/path.dart'; import 'generate_all.dart'; diff --git a/pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart b/pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart index 38bbfb6d100..c0992f6a539 100644 --- a/pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart +++ b/pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart @@ -5,7 +5,6 @@ import 'dart:convert'; import 'package:analyzer/src/codegen/tools.dart'; -import 'package:front_end/src/codegen/tools.dart'; import 'package:html/dom.dart' as dom; import 'package:path/path.dart' as path; diff --git a/pkg/analyzer_plugin/tool/spec/codegen_inttest_methods.dart b/pkg/analyzer_plugin/tool/spec/codegen_inttest_methods.dart index ddc730fbb57..fedd7e17b77 100644 --- a/pkg/analyzer_plugin/tool/spec/codegen_inttest_methods.dart +++ b/pkg/analyzer_plugin/tool/spec/codegen_inttest_methods.dart @@ -8,7 +8,6 @@ import 'dart:convert'; import 'package:analyzer/src/codegen/tools.dart'; -import 'package:front_end/src/codegen/tools.dart'; import 'package:path/path.dart' as path; import 'api.dart'; diff --git a/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart b/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart index bc52c0fa7a3..25197107e6a 100644 --- a/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart +++ b/pkg/analyzer_plugin/tool/spec/codegen_matchers.dart @@ -8,7 +8,6 @@ import 'dart:convert'; import 'package:analyzer/src/codegen/tools.dart'; -import 'package:front_end/src/codegen/tools.dart'; import 'api.dart'; import 'from_html.dart'; diff --git a/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart b/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart index 3733f5b4ecb..192d88d8e6e 100644 --- a/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart +++ b/pkg/analyzer_plugin/tool/spec/codegen_protocol_common.dart @@ -3,7 +3,6 @@ // BSD-style license that can be found in the LICENSE file. import 'package:analyzer/src/codegen/tools.dart'; -import 'package:front_end/src/codegen/tools.dart'; import 'package:path/path.dart' as path; import 'api.dart'; diff --git a/pkg/analyzer_plugin/tool/spec/codegen_protocol_constants.dart b/pkg/analyzer_plugin/tool/spec/codegen_protocol_constants.dart index 223d59b54df..2e0d22d5608 100644 --- a/pkg/analyzer_plugin/tool/spec/codegen_protocol_constants.dart +++ b/pkg/analyzer_plugin/tool/spec/codegen_protocol_constants.dart @@ -3,7 +3,6 @@ // BSD-style license that can be found in the LICENSE file. import 'package:analyzer/src/codegen/tools.dart'; -import 'package:front_end/src/codegen/tools.dart'; import 'api.dart'; import 'codegen_dart.dart'; diff --git a/pkg/analyzer_plugin/tool/spec/generate_all.dart b/pkg/analyzer_plugin/tool/spec/generate_all.dart index ff6f7f4a3aa..f25b3f9d9aa 100644 --- a/pkg/analyzer_plugin/tool/spec/generate_all.dart +++ b/pkg/analyzer_plugin/tool/spec/generate_all.dart @@ -4,7 +4,7 @@ import 'dart:io'; -import 'package:front_end/src/codegen/tools.dart'; +import 'package:analyzer/src/codegen/tools.dart'; import 'package:path/path.dart'; import 'codegen_dart_protocol.dart' as codegen_dart_protocol; diff --git a/pkg/analyzer_plugin/tool/spec/to_html.dart b/pkg/analyzer_plugin/tool/spec/to_html.dart index d0d133ee250..8d0601203e7 100644 --- a/pkg/analyzer_plugin/tool/spec/to_html.dart +++ b/pkg/analyzer_plugin/tool/spec/to_html.dart @@ -11,7 +11,6 @@ import 'dart:convert'; import 'package:analyzer/src/codegen/html.dart'; import 'package:analyzer/src/codegen/tools.dart'; -import 'package:front_end/src/codegen/tools.dart'; import 'package:html/dom.dart' as dom; import 'api.dart';