Index: test/codegen/expect/collection/src/priority_queue.js |
diff --git a/test/codegen/expect/collection/priority_queue.js b/test/codegen/expect/collection/src/priority_queue.js |
similarity index 95% |
rename from test/codegen/expect/collection/priority_queue.js |
rename to test/codegen/expect/collection/src/priority_queue.js |
index d9485a50a57be61e12765269a9c94c442fca3b2f..bcf114a733ebbdc076cd8412b0769fc96ba4dbf6 100644 |
--- a/test/codegen/expect/collection/priority_queue.js |
+++ b/test/codegen/expect/collection/src/priority_queue.js |
@@ -1,4 +1,4 @@ |
-dart_library.library('collection/priority_queue', null, /* Imports */[ |
+dart_library.library('collection/src/priority_queue', null, /* Imports */[ |
'dart/_runtime', |
'dart/core', |
'dart/collection' |
@@ -7,7 +7,14 @@ dart_library.library('collection/priority_queue', null, /* Imports */[ |
'use strict'; |
let dartx = dart.dartx; |
const PriorityQueue$ = dart.generic(function(E) { |
- class PriorityQueue extends core.Object {} |
+ class PriorityQueue extends core.Object { |
+ static new(comparison) { |
+ return new (HeapPriorityQueue$(E))(comparison); |
+ } |
+ } |
+ dart.setSignature(PriorityQueue, { |
+ constructors: () => ({new: [PriorityQueue$(E), [], [dart.functionType(core.int, [E, E])]]}) |
+ }); |
return PriorityQueue; |
}); |
let PriorityQueue = PriorityQueue$(); |