From 7ec979a04944f0c915df4966900343bb8abb5614 Mon Sep 17 00:00:00 2001 From: briantrice Date: Thu, 18 Feb 2010 15:52:48 -0800 Subject: [PATCH] Compatibility methods for PrimitiveMethods to act like CompiledMethods to make method queries more straightforward. --- src/core/method.slate | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/method.slate b/src/core/method.slate index 8fb18ea..2aeafff 100644 --- a/src/core/method.slate +++ b/src/core/method.slate @@ -471,6 +471,16 @@ m@(PrimitiveMethod traits) method m ]. +m@(PrimitiveMethod traits) literals [#()]. +m@(PrimitiveMethod traits) selectors [#()]. +m@(PrimitiveMethod traits) code [Nil]. +m@(PrimitiveMethod traits) sourceTree [Nil]. +m@(PrimitiveMethod traits) registerCount [m arity]. +m@(PrimitiveMethod traits) inputVariables [m arity]. +m@(PrimitiveMethod traits) restVariable [Nil]. +m@(PrimitiveMethod traits) sourceTree [Nil]. +m@(PrimitiveMethod traits) heapAllocate [False]. + m@(PrimitiveMethod traits) definitionLocation [ 'primitive:' ; m index printString -- 2.11.4.GIT