-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement hasLanguage interop message for all enso objects (#11538)
* EnsoObject is an abstract class, not an interface. - Also, EnsoObject exports hasLanguage and getLanguage interop messages. - BranchRecord converted to class * Implement public getters in BranchResult * Fix compilation of EnsoFile * Add test that all enso values must have language * Revert EnsoException - remove * DataflowError and PanicException implement hasLanguage and getLanguage * DataflowError is not EnsoObject - change signatures in some builtins * Add more members to Module.isMemberInvocable. Keep in sync with doInvoke. * Revert "DataflowError and PanicException implement hasLanguage and getLanguage" This reverts commit b30f396. * Update the test - test only non-primitive and non-exception values * Fix indexes in CodeLocationsTest * Add more members to Function.isMemberInvocable Keep in sync with doInvoke. * EnsoObject.toDisplayString delegates to toString method * EnsoObject.toDisplayString is behind TruffleBoundary * Warning exports InteropLibrary which delegates to value. With the exception of toDisplayString message. * WithWarnings needs to explicitly export toDisplayString. It is not automatically delegated because it is implemented in the super type. * EnsoObject.toDisplayString just throws AssertionError * AssertionError is behind TruffleBoundary * Implement toDisplayString on some truffle objects * Warning exports WarningsLibrary * Revert "Warning exports WarningsLibrary" This reverts commit a06c672. * Add some warnings test * Warning.isNull is always false Even if it wraps Nothing * Add some unnecessary methods to fix the compilation * EnsoObject.toDisplayString is abstract * ImportExportScope.toDisplayString is behind TruffleBoundary. This fixes native-image build of engine-runner. * Hide some toDisplayString methods behind TruffleBoundary This fixes native-image build of engine-runner. Bypassing failing test.
- Loading branch information
1 parent
1ddf95a
commit e8dc0c2
Showing
50 changed files
with
552 additions
and
175 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
Oops, something went wrong.