Skip to content

Commit e7895bd

Browse files
[interop] Add Support for Declaration Merging and Overloading (#449)
* wip: declaration merging * completed declaration merging * added support for enums * added support for var + interface overloading * refactored composite building * added namespace decl support to merging * removed stray print * Codespace solid system x55r6jqr9w5vf6r9g (#2) * Pending changes exported from your codespace * formatting and analyzing * minor formatting
1 parent ee9733f commit e7895bd

File tree

13 files changed

+1396
-325
lines changed

13 files changed

+1396
-325
lines changed

web_generator/lib/src/ast/base.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ASTOptions {
4646

4747
sealed class Node {
4848
abstract final ID id;
49-
String? get dartName;
49+
abstract String? dartName;
5050

5151
Spec emit([Options? options]);
5252

@@ -65,11 +65,11 @@ abstract class NamedDeclaration extends Declaration {
6565
abstract String name;
6666

6767
ReferredType asReferredType(
68-
[List<Type>? typeArgs, bool isNullable = false, String? url]) =>
68+
[Iterable<Type>? typeArgs, bool isNullable = false, String? url]) =>
6969
ReferredType(
7070
name: name,
7171
declaration: this,
72-
typeParams: typeArgs ?? [],
72+
typeParams: typeArgs?.toList() ?? [],
7373
url: url,
7474
isNullable: isNullable);
7575
}

0 commit comments

Comments
 (0)