Skip to content

Commit

Permalink
Version 3.3.0-171.0.dev
Browse files Browse the repository at this point in the history
Merge 1016d2f into dev
  • Loading branch information
Dart CI committed Nov 28, 2023
2 parents b58735e + 1016d2f commit 85b30ba
Show file tree
Hide file tree
Showing 15 changed files with 209 additions and 217 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:kernel/ast.dart';
import 'package:kernel/clone.dart';
import 'package:kernel/core_types.dart';
import 'package:kernel/kernel.dart';
import 'package:kernel/reference_from_index.dart';
import 'package:kernel/src/constant_replacer.dart';
import 'package:kernel/src/replacement_visitor.dart';

Expand Down Expand Up @@ -141,7 +140,6 @@ class StaticInteropClassEraser extends Transformer {
late final _StaticInteropConstantReplacer _constantReplacer;
late final _TypeSubstitutor _typeSubstitutor;
Component? currentComponent;
ReferenceFromIndex? referenceFromIndex;
// Custom erasure function for `@staticInterop` types. This is useful for when
// they should be erased to another type besides `JavaScriptObject`, like in
// dart2wasm.
Expand All @@ -159,7 +157,7 @@ class StaticInteropClassEraser extends Transformer {
'_wasm',
};

StaticInteropClassEraser(CoreTypes coreTypes, this.referenceFromIndex,
StaticInteropClassEraser(CoreTypes coreTypes,
{InterfaceType Function(InterfaceType staticInteropType)?
eraseStaticInteropType,
Set<String> additionalCoreLibraries = const {}}) {
Expand Down Expand Up @@ -195,12 +193,7 @@ class StaticInteropClassEraser extends Transformer {
Name name = Name(stubName);
var staticMethod = Procedure(
name, ProcedureKind.Method, FunctionNode(null),
isStatic: true,
fileUri: factoryTarget.fileUri,
reference: referenceFromIndex
?.lookupLibrary(factoryClass.enclosingLibrary)
?.lookupIndexedClass(factoryClass.name)
?.lookupGetterReference(name))
isStatic: true, fileUri: factoryTarget.fileUri)
..fileOffset = factoryTarget.fileOffset;
factoryClass.addProcedure(staticMethod);
// Clone function node after processing the stub in case of mutually
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Bar {
await analysisFinished;

var result =
// ignore: deprecated_member_use_from_same_package
// ignore: deprecated_member_use
await sendAnalysisGetReachableSources(pathname);
var sources = result.sources;
var keys = sources.keys.toList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class Foo {
''');
await standardAnalysisSetup();

// ignore: deprecated_member_use_from_same_package
// ignore: deprecated_member_use
await sendAnalysisUpdateOptions(AnalysisOptions()..generateHints = false);
await sendAnalysisReanalyze();
await analysisFinished;
expect(getErrors(pathname), isEmpty);

// ignore: deprecated_member_use_from_same_package
// ignore: deprecated_member_use
await sendAnalysisUpdateOptions(AnalysisOptions()..generateHints = true);
await sendAnalysisReanalyze();
await analysisFinished;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
class SetSubscriptionsTest extends AbstractAnalysisServerIntegrationTest {
Future<void> test_subscribe() async {
await standardAnalysisSetup();
// ignore: deprecated_member_use_from_same_package
// ignore: deprecated_member_use
await sendExecutionSetSubscriptions([ExecutionService.LAUNCH_DATA]);
}
}
Loading

0 comments on commit 85b30ba

Please sign in to comment.