You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I changed sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart to import js.dart as jsAst, and added an this top-level field to js.dart:
Which is better, but still not good enough. I'd also like to know where the import declaration is, that is, where in ssa.dart is the import of js_backend.dart?
The text was updated successfully, but these errors were encountered:
I changed sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart to import js.dart as jsAst, and added an this top-level field to js.dart:
const js = const jsAst.JsBuilder();
This resulted in this error message:
sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart:38:7: Warning: duplicated definition
const js = const jsAst.JsBuilder();
^^
Error: duplicate definition
Turns out that we are saying:
compiler.reportError(import.prefix, 'duplicate definition');
Not:
compiler.withCurrentElement(importingLibrary, () {
compiler.reportError(import.prefix, 'duplicate definition');
});
In importLibrary in library_loader.dart. With that change, I get this error message:
sdk/lib/_internal/compiler/implementation/js_backend/js_backend.dart:38:7: Warning: duplicated definition
const js = const jsAst.JsBuilder();
^^
sdk/lib/_internal/compiler/implementation/ssa/ssa.dart:10:27: Error: duplicate definition
import '../js/js.dart' as js;
^^
Which is better, but still not good enough. I'd also like to know where the import declaration is, that is, where in ssa.dart is the import of js_backend.dart?
The text was updated successfully, but these errors were encountered: