-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for interfaces extending multiple interfaces
This is a feature in TypeScript, and I didn't see much of a technical reason to disallow it. By changing interface extension such that implementsTypes and interfacePrototypes are used for base interfaces instead of extendsType and basePrototype in InterfacePrototype and Interface respectively, and by modifying the parser, existing code doesn't seem to break, and multiple base interfaces are possible (if not working already). There was also a small change to the instanceof helper generation, where arrays are now used instead of Sets, since I needed to filter for interfaces, and Set_values was used on the constructed Set regardless. However, the change also modified the order of instanceof checks as seen in instanceof.debug.wat. The instanceof.release.wat file underwent more drastic changes, but thanks to the previous commit, it still appears to work anyway.
- Loading branch information
1 parent
382aabe
commit 360fb2d
Showing
6 changed files
with
302 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.