Skip to content

Commit

Permalink
Ensore the library gets adopted
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Apr 3, 2024
1 parent 3a986f0 commit 380f5d2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.dsl.Bind;
import com.oracle.truffle.api.dsl.Cached;
import com.oracle.truffle.api.dsl.Cached.Shared;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.frame.MaterializedFrame;
import com.oracle.truffle.api.frame.VirtualFrame;
Expand Down Expand Up @@ -238,12 +239,12 @@ private static Object invokeConstructor(
}

@ExportMessage
boolean hasType() {
boolean hasType(@Shared("ignore") @Cached("1") int ignore) {
return true;
}

@ExportMessage
Type getType(@Bind("$node") Node node) {
Type getType(@Bind("$node") Node node, @Shared("ignore") @Cached("1") int ignore) {
var ctx = EnsoContext.get(node);
return ctx.getBuiltins().function();
}
Expand Down

0 comments on commit 380f5d2

Please sign in to comment.