aboutsummaryrefslogtreecommitdiff
path: root/lux-ruby
diff options
context:
space:
mode:
authorEduardo Julian2021-09-08 18:57:27 -0400
committerEduardo Julian2021-09-08 18:57:27 -0400
commit880cb37c261df20b7b8d968a909557bbc63d6b7f (patch)
treeeb94b5572f3b03b855927c67e171b73ceb4db6c4 /lux-ruby
parent9ae7272d50b64dc9c8651e7a684abc007d4f2caf (diff)
Normalized syntax of "exception:", "actor:" and "message:".
Diffstat (limited to 'lux-ruby')
-rw-r--r--lux-ruby/source/program.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/lux-ruby/source/program.lux b/lux-ruby/source/program.lux
index 8c2cb3480..4c1f8a32c 100644
--- a/lux-ruby/source/program.lux
+++ b/lux-ruby/source/program.lux
@@ -251,7 +251,7 @@
(recur (++ idx) (array.write! idx lux_value output))))
(#try.Success output)))))
-(exception: (unknown_kind_of_object {object java/lang/Object})
+(exception: (unknown_kind_of_object [object java/lang/Object])
(exception.report
["Class" (java/lang/Object::toString (java/lang/Object::getClass object))]
["Object" (java/lang/Object::toString object)]))
@@ -342,15 +342,15 @@
#.None)
(:as org/jruby/runtime/builtin/IRubyObject value)))
-(exception: (invalid_variant_access {field Text})
+(exception: (invalid_variant_access [field Text])
(exception.report
["Field" (%.text field)]))
-(exception: (invalid_tuple_access {index Nat})
+(exception: (invalid_tuple_access [index Nat])
(exception.report
["Index" (%.nat index)]))
-(exception: (invalid_index {index java/lang/Object})
+(exception: (invalid_index [index java/lang/Object])
(exception.report
["Class" (|> index
java/lang/Object::getClass
@@ -492,7 +492,7 @@
debug.inspection
(org/jruby/RubyString::newInternalFromJavaExternal ..initial_ruby_runtime)))))
-(exception: (invalid_operation {method Text})
+(exception: (invalid_operation [method Text])
(exception.report
["Method" (%.text method)]))
@@ -531,7 +531,7 @@
#.None
(panic! (exception.error ..invalid_operation ["respond_to?"]))))))
-(exception: (unknown_method {method Text})
+(exception: (unknown_method [method Text])
(exception.report
["Method" (%.text method)]))
@@ -565,7 +565,7 @@
(panic! (exception.error ..unknown_method [(:as Text method)])))))]
(org/jruby/java/proxies/JavaProxy::new ..initial_ruby_runtime meta_class (:as java/lang/Object value))))
-(exception: (cannot_apply_a_non_function {object java/lang/Object})
+(exception: (cannot_apply_a_non_function [object java/lang/Object])
(exception.report
["Non-function" (java/lang/Object::toString object)]))
@@ -645,8 +645,8 @@
(run! (_.global (reference.artifact context))))))))))
(for {@.old
- (as_is (exception: .public (invaid_phase_application {partial_application (List Any)}
- {arity Nat})
+ (as_is (exception: .public (invaid_phase_application [partial_application (List Any)
+ arity Nat])
(exception.report
["Partial Application" (%.nat (list.size partial_application))]
["Arity" (%.nat arity)]))