aboutsummaryrefslogtreecommitdiff
path: root/lux-jvm/source/luxc/lang/directive/jvm.lux
diff options
context:
space:
mode:
Diffstat (limited to 'lux-jvm/source/luxc/lang/directive/jvm.lux')
-rw-r--r--lux-jvm/source/luxc/lang/directive/jvm.lux290
1 files changed, 145 insertions, 145 deletions
diff --git a/lux-jvm/source/luxc/lang/directive/jvm.lux b/lux-jvm/source/luxc/lang/directive/jvm.lux
index b41e0b75f..b81a10c69 100644
--- a/lux-jvm/source/luxc/lang/directive/jvm.lux
+++ b/lux-jvm/source/luxc/lang/directive/jvm.lux
@@ -72,19 +72,19 @@
(def: (literal literal)
(-> /.Literal Inst)
(case literal
- (#/.Boolean value) (_.boolean value)
- (#/.Int value) (_.int value)
- (#/.Long value) (_.long value)
- (#/.Double value) (_.double value)
- (#/.Char value) (_.char value)
- (#/.String value) (_.string value)))
+ {#/.Boolean value} (_.boolean value)
+ {#/.Int value} (_.int value)
+ {#/.Long value} (_.long value)
+ {#/.Double value} (_.double value)
+ {#/.Char value} (_.char value)
+ {#/.String value} (_.string value)))
(def: (constant instruction)
(-> /.Constant Inst)
(case instruction
- (#/.BIPUSH constant) (_.BIPUSH constant)
+ {#/.BIPUSH constant} (_.BIPUSH constant)
- (#/.SIPUSH constant) (_.SIPUSH constant)
+ {#/.SIPUSH constant} (_.SIPUSH constant)
#/.ICONST_M1 _.ICONST_M1
#/.ICONST_0 _.ICONST_0
@@ -106,7 +106,7 @@
#/.ACONST_NULL _.NULL
- (#/.LDC literal)
+ {#/.LDC literal}
(..literal literal)
))
@@ -153,16 +153,16 @@
(def: (arithmetic instruction)
(-> /.Arithmetic Inst)
(case instruction
- (#/.Int_Arithmetic int_arithmetic)
+ {#/.Int_Arithmetic int_arithmetic}
(..int_arithmetic int_arithmetic)
- (#/.Long_Arithmetic long_arithmetic)
+ {#/.Long_Arithmetic long_arithmetic}
(..long_arithmetic long_arithmetic)
- (#/.Float_Arithmetic float_arithmetic)
+ {#/.Float_Arithmetic float_arithmetic}
(..float_arithmetic float_arithmetic)
- (#/.Double_Arithmetic double_arithmetic)
+ {#/.Double_Arithmetic double_arithmetic}
(..double_arithmetic double_arithmetic)))
(def: (int_bitwise instruction)
@@ -188,10 +188,10 @@
(def: (bitwise instruction)
(-> /.Bitwise Inst)
(case instruction
- (#/.Int_Bitwise int_bitwise)
+ {#/.Int_Bitwise int_bitwise}
(..int_bitwise int_bitwise)
- (#/.Long_Bitwise long_bitwise)
+ {#/.Long_Bitwise long_bitwise}
(..long_bitwise long_bitwise)))
(def: (conversion instruction)
@@ -221,8 +221,8 @@
(case instruction
#/.ARRAYLENGTH _.ARRAYLENGTH
- (#/.NEWARRAY type) (_.NEWARRAY type)
- (#/.ANEWARRAY type) (_.ANEWARRAY type)
+ {#/.NEWARRAY type} (_.NEWARRAY type)
+ {#/.ANEWARRAY type} (_.ANEWARRAY type)
#/.BALOAD _.BALOAD
#/.BASTORE _.BASTORE
@@ -252,20 +252,20 @@
(-> /.Object Inst)
(case instruction
(^template [<tag> <inst>]
- [(<tag> class field_name field_type)
+ [{<tag> class field_name field_type}
(<inst> class field_name field_type)])
([#/.GETSTATIC _.GETSTATIC]
[#/.PUTSTATIC _.PUTSTATIC]
[#/.GETFIELD _.GETFIELD]
[#/.PUTFIELD _.PUTFIELD])
- (#/.NEW type) (_.NEW type)
+ {#/.NEW type} (_.NEW type)
- (#/.INSTANCEOF type) (_.INSTANCEOF type)
- (#/.CHECKCAST type) (_.CHECKCAST type)
+ {#/.INSTANCEOF type} (_.INSTANCEOF type)
+ {#/.CHECKCAST type} (_.CHECKCAST type)
(^template [<tag> <inst>]
- [(<tag> class method_name method_type)
+ [{<tag> class method_name method_type}
(<inst> class method_name method_type)])
([#/.INVOKEINTERFACE _.INVOKEINTERFACE]
[#/.INVOKESPECIAL _.INVOKESPECIAL]
@@ -276,42 +276,42 @@
(def: (local_int instruction)
(-> /.Local_Int Inst)
(case instruction
- (#/.ILOAD register) (_.ILOAD register)
- (#/.ISTORE register) (_.ISTORE register)))
+ {#/.ILOAD register} (_.ILOAD register)
+ {#/.ISTORE register} (_.ISTORE register)))
(def: (local_long instruction)
(-> /.Local_Long Inst)
(case instruction
- (#/.LLOAD register) (_.LLOAD register)
- (#/.LSTORE register) (_.LSTORE register)))
+ {#/.LLOAD register} (_.LLOAD register)
+ {#/.LSTORE register} (_.LSTORE register)))
(def: (local_float instruction)
(-> /.Local_Float Inst)
(case instruction
- (#/.FLOAD register) (_.FLOAD register)
- (#/.FSTORE register) (_.FSTORE register)))
+ {#/.FLOAD register} (_.FLOAD register)
+ {#/.FSTORE register} (_.FSTORE register)))
(def: (local_double instruction)
(-> /.Local_Double Inst)
(case instruction
- (#/.DLOAD register) (_.DLOAD register)
- (#/.DSTORE register) (_.DSTORE register)))
+ {#/.DLOAD register} (_.DLOAD register)
+ {#/.DSTORE register} (_.DSTORE register)))
(def: (local_object instruction)
(-> /.Local_Object Inst)
(case instruction
- (#/.ALOAD register) (_.ALOAD register)
- (#/.ASTORE register) (_.ASTORE register)))
+ {#/.ALOAD register} (_.ALOAD register)
+ {#/.ASTORE register} (_.ASTORE register)))
(def: (local instruction)
(-> /.Local Inst)
(case instruction
- (#/.Local_Int instruction) (..local_int instruction)
- (#/.IINC register) (_.IINC register)
- (#/.Local_Long instruction) (..local_long instruction)
- (#/.Local_Float instruction) (..local_float instruction)
- (#/.Local_Double instruction) (..local_double instruction)
- (#/.Local_Object instruction) (..local_object instruction)))
+ {#/.Local_Int instruction} (..local_int instruction)
+ {#/.IINC register} (_.IINC register)
+ {#/.Local_Long instruction} (..local_long instruction)
+ {#/.Local_Float instruction} (..local_float instruction)
+ {#/.Local_Double instruction} (..local_double instruction)
+ {#/.Local_Object instruction} (..local_object instruction)))
(def: (stack instruction)
(-> /.Stack Inst)
@@ -340,34 +340,34 @@
(def: (branching instruction)
(-> (/.Branching org/objectweb/asm/Label) Inst)
(case instruction
- (#/.IF_ICMPEQ label) (_.IF_ICMPEQ label)
- (#/.IF_ICMPGE label) (_.IF_ICMPGE label)
- (#/.IF_ICMPGT label) (_.IF_ICMPGT label)
- (#/.IF_ICMPLE label) (_.IF_ICMPLE label)
- (#/.IF_ICMPLT label) (_.IF_ICMPLT label)
- (#/.IF_ICMPNE label) (_.IF_ICMPNE label)
- (#/.IFEQ label) (_.IFEQ label)
- (#/.IFGE label) (_.IFGE label)
- (#/.IFGT label) (_.IFGT label)
- (#/.IFLE label) (_.IFLE label)
- (#/.IFLT label) (_.IFLT label)
- (#/.IFNE label) (_.IFNE label)
-
- (#/.TABLESWITCH min max default labels)
+ {#/.IF_ICMPEQ label} (_.IF_ICMPEQ label)
+ {#/.IF_ICMPGE label} (_.IF_ICMPGE label)
+ {#/.IF_ICMPGT label} (_.IF_ICMPGT label)
+ {#/.IF_ICMPLE label} (_.IF_ICMPLE label)
+ {#/.IF_ICMPLT label} (_.IF_ICMPLT label)
+ {#/.IF_ICMPNE label} (_.IF_ICMPNE label)
+ {#/.IFEQ label} (_.IFEQ label)
+ {#/.IFGE label} (_.IFGE label)
+ {#/.IFGT label} (_.IFGT label)
+ {#/.IFLE label} (_.IFLE label)
+ {#/.IFLT label} (_.IFLT label)
+ {#/.IFNE label} (_.IFNE label)
+
+ {#/.TABLESWITCH min max default labels}
(_.TABLESWITCH min max default labels)
- (#/.LOOKUPSWITCH default keys+labels)
+ {#/.LOOKUPSWITCH default keys+labels}
(_.LOOKUPSWITCH default keys+labels)
- (#/.IF_ACMPEQ label) (_.IF_ACMPEQ label)
- (#/.IF_ACMPNE label) (_.IF_ACMPNE label)
- (#/.IFNONNULL label) (_.IFNONNULL label)
- (#/.IFNULL label) (_.IFNULL label)))
+ {#/.IF_ACMPEQ label} (_.IF_ACMPEQ label)
+ {#/.IF_ACMPNE label} (_.IF_ACMPNE label)
+ {#/.IFNONNULL label} (_.IFNONNULL label)
+ {#/.IFNULL label} (_.IFNULL label)))
(def: (exception instruction)
(-> (/.Exception org/objectweb/asm/Label) Inst)
(case instruction
- (#/.Try start end handler exception) (_.try start end handler exception)
+ {#/.Try start end handler exception} (_.try start end handler exception)
#/.ATHROW _.ATHROW))
(def: (concurrency instruction)
@@ -389,27 +389,27 @@
(def: (control instruction)
(-> (/.Control org/objectweb/asm/Label) Inst)
(case instruction
- (#/.GOTO label) (_.GOTO label)
- (#/.Branching instruction) (..branching instruction)
- (#/.Exception instruction) (..exception instruction)
- (#/.Concurrency instruction) (..concurrency instruction)
- (#/.Return instruction) (..return instruction)))
+ {#/.GOTO label} (_.GOTO label)
+ {#/.Branching instruction} (..branching instruction)
+ {#/.Exception instruction} (..exception instruction)
+ {#/.Concurrency instruction} (..concurrency instruction)
+ {#/.Return instruction} (..return instruction)))
(def: (instruction instruction)
(-> (/.Instruction Inst org/objectweb/asm/Label) Inst)
(case instruction
#/.NOP _.NOP
- (#/.Constant instruction) (..constant instruction)
- (#/.Arithmetic instruction) (..arithmetic instruction)
- (#/.Bitwise instruction) (..bitwise instruction)
- (#/.Conversion instruction) (..conversion instruction)
- (#/.Array instruction) (..array instruction)
- (#/.Object instruction) (..object instruction)
- (#/.Local instruction) (..local instruction)
- (#/.Stack instruction) (..stack instruction)
- (#/.Comparison instruction) (..comparison instruction)
- (#/.Control instruction) (..control instruction)
- (#/.Embedded embedded) embedded))
+ {#/.Constant instruction} (..constant instruction)
+ {#/.Arithmetic instruction} (..arithmetic instruction)
+ {#/.Bitwise instruction} (..bitwise instruction)
+ {#/.Conversion instruction} (..conversion instruction)
+ {#/.Array instruction} (..array instruction)
+ {#/.Object instruction} (..object instruction)
+ {#/.Local instruction} (..local instruction)
+ {#/.Stack instruction} (..stack instruction)
+ {#/.Comparison instruction} (..comparison instruction)
+ {#/.Control instruction} (..control instruction)
+ {#/.Embedded embedded} embedded))
(type: Mapping
(Dictionary /.Label org/objectweb/asm/Label))
@@ -421,7 +421,7 @@
(def: (relabel [mapping label])
(Re_labeler Identity)
(case (dictionary.value label mapping)
- (#.Some label)
+ {#.Some label}
[mapping label]
#.None
@@ -432,39 +432,39 @@
(Re_labeler /.Branching)
(case instruction
(^template [<tag>]
- [(<tag> label)
+ [{<tag> label}
(let [[mapping label] (..relabel [mapping label])]
- [mapping (<tag> label)])])
+ [mapping {<tag> label}])])
([#/.IF_ICMPEQ] [#/.IF_ICMPGE] [#/.IF_ICMPGT] [#/.IF_ICMPLE] [#/.IF_ICMPLT] [#/.IF_ICMPNE]
[#/.IFEQ] [#/.IFNE] [#/.IFGE] [#/.IFGT] [#/.IFLE] [#/.IFLT]
[#/.IF_ACMPEQ] [#/.IF_ACMPNE] [#/.IFNONNULL] [#/.IFNULL])
- (#/.TABLESWITCH min max default labels)
+ {#/.TABLESWITCH min max default labels}
(let [[mapping default] (..relabel [mapping default])
[mapping labels] (list\mix (function (_ input [mapping output])
(let [[mapping input] (..relabel [mapping input])]
[mapping (list& input output)]))
[mapping (list)] labels)]
- [mapping (#/.TABLESWITCH min max default (list.reversed labels))])
+ [mapping {#/.TABLESWITCH min max default (list.reversed labels)}])
- (#/.LOOKUPSWITCH default keys+labels)
+ {#/.LOOKUPSWITCH default keys+labels}
(let [[mapping default] (..relabel [mapping default])
[mapping keys+labels] (list\mix (function (_ [expected input] [mapping output])
(let [[mapping input] (..relabel [mapping input])]
[mapping (list& [expected input] output)]))
[mapping (list)] keys+labels)]
- [mapping (#/.LOOKUPSWITCH default (list.reversed keys+labels))])
+ [mapping {#/.LOOKUPSWITCH default (list.reversed keys+labels)}])
))
(def: (relabel_exception [mapping instruction])
(Re_labeler /.Exception)
(case instruction
- (#/.Try start end handler exception)
+ {#/.Try start end handler exception}
(let [[mapping start] (..relabel [mapping start])
[mapping end] (..relabel [mapping end])
[mapping handler] (..relabel [mapping handler])]
- [mapping (#/.Try start end handler exception)])
+ [mapping {#/.Try start end handler exception}])
#/.ATHROW
[mapping #/.ATHROW]
@@ -474,31 +474,31 @@
(Re_labeler /.Control)
(case instruction
(^template [<tag> <relabel>]
- [(<tag> instruction)
+ [{<tag> instruction}
(let [[mapping instruction] (<relabel> [mapping instruction])]
- [mapping (<tag> instruction)])])
+ [mapping {<tag> instruction}])])
([#/.GOTO ..relabel]
[#/.Branching ..relabel_branching]
[#/.Exception ..relabel_exception])
(^template [<tag>]
- [(<tag> instruction)
- [mapping (<tag> instruction)]])
+ [{<tag> instruction}
+ [mapping {<tag> instruction}]])
([#/.Concurrency] [#/.Return])
))
(def: (relabel_instruction [mapping instruction])
(Re_labeler (/.Instruction Inst))
(case instruction
- (#/.Embedded embedded)
- [mapping (#/.Embedded embedded)]
+ {#/.Embedded embedded}
+ [mapping {#/.Embedded embedded}]
#/.NOP
[mapping #/.NOP]
(^template [<tag>]
- [(<tag> instruction)
- [mapping (<tag> instruction)]])
+ [{<tag> instruction}
+ [mapping {<tag> instruction}]])
([#/.Constant]
[#/.Arithmetic]
[#/.Bitwise]
@@ -509,9 +509,9 @@
[#/.Stack]
[#/.Comparison])
- (#/.Control instruction)
+ {#/.Control instruction}
(let [[mapping instruction] (..relabel_control [mapping instruction])]
- [mapping (#/.Control instruction)])))
+ [mapping {#/.Control instruction}])))
(def: (relabel_bytecode [mapping bytecode])
(Re_labeler (/.Bytecode Inst))
@@ -587,10 +587,10 @@
..Handler))
(function (_ extension_name phase archive input)
(case (<code>.result parser input)
- (#try.Success input')
+ {#try.Success input'}
(handler extension_name phase archive input')
- (#try.Failure error)
+ {#try.Failure error}
(phase.except extension.invalid_syntax [extension_name %.code input]))))
(type: Declaration
@@ -716,11 +716,11 @@
(type: (Method a)
(Variant
- (#Constructor (Constructor a))
- (#Override (Override a))
- (#Virtual (Virtual a))
- (#Static (Static a))
- (#Abstract Abstract)))
+ {#Constructor (Constructor a)}
+ {#Override (Override a)}
+ {#Virtual (Virtual a)}
+ {#Static (Static a)}
+ {#Abstract Abstract}))
(def: constructor
(Parser (Constructor Code))
@@ -843,10 +843,10 @@
(def: (header_value valueT)
(-> (Type Value) Inst)
(case (/type.primitive? valueT)
- (#.Left classT)
+ {#.Left classT}
_.NULL
- (#.Right primitiveT)
+ {#.Right primitiveT}
(cond (or (\ /type.equivalence = /type.boolean primitiveT)
(\ /type.equivalence = /type.byte primitiveT)
(\ /type.equivalence = /type.short primitiveT)
@@ -866,16 +866,16 @@
(def: (header_return returnT)
(-> (Type Return) Inst)
(case (/type.void? returnT)
- (#.Right returnT)
+ {#.Right returnT}
_.RETURN
- (#.Left valueT)
+ {#.Left valueT}
(case (/type.primitive? valueT)
- (#.Left classT)
+ {#.Left classT}
(|>> (header_value classT)
_.ARETURN)
- (#.Right primitiveT)
+ {#.Right primitiveT}
(cond (or (\ /type.equivalence = /type.boolean primitiveT)
(\ /type.equivalence = /type.byte primitiveT)
(\ /type.equivalence = /type.short primitiveT)
@@ -911,9 +911,9 @@
(def: (method_header super_class method)
(-> (Type Class) (Method Code) jvm.Def)
(case method
- (#Constructor [privacy strict_floating_point? annotations variables exceptions
+ {#Constructor [privacy strict_floating_point? annotations variables exceptions
self arguments constructor_arguments
- body])
+ body]}
(let [[super_name super_vars] (parser.read_class super_class)
init_constructor_arguments (|> constructor_arguments
(list\each (|>> product.left ..header_value))
@@ -933,9 +933,9 @@
(_.INVOKESPECIAL super_class ..constructor_name super_constructorT)
_.RETURN)))
- (#Override [[parent_name parent_variables] name strict_floating_point? annotations variables
+ {#Override [[parent_name parent_variables] name strict_floating_point? annotations variables
self arguments return exceptions
- body])
+ body]}
(def.method #jvm.Public
(if strict_floating_point?
jvm.strictM
@@ -944,9 +944,9 @@
(/type.method [variables (list\each product.right arguments) return exceptions])
(..header_return return))
- (#Virtual [name privacy final? strict_floating_point? annotations variables
+ {#Virtual [name privacy final? strict_floating_point? annotations variables
self arguments return exceptions
- body])
+ body]}
(def.method (..visibility privacy)
(|> jvm.noneM
(jvm.++M (if strict_floating_point?
@@ -959,9 +959,9 @@
(/type.method [variables (list\each product.right arguments) return exceptions])
(..header_return return))
- (#Static [name privacy strict_floating_point? annotations variables
+ {#Static [name privacy strict_floating_point? annotations variables
arguments return exceptions
- body])
+ body]}
(def.method (..visibility privacy)
(|> jvm.staticM
(jvm.++M (if strict_floating_point?
@@ -971,7 +971,7 @@
(/type.method [variables (list\each product.right arguments) return exceptions])
(..header_return return))
- (#Abstract method)
+ {#Abstract method}
(..abstract_method_generation method)
))
@@ -1033,7 +1033,7 @@
arguments)
returnT (//A.boxed_reflection_return mapping /type.void)
[_scope bodyA] (|> arguments'
- (#.Item [self selfT])
+ {#.Item [self selfT]}
list.reversed
(list\mix scopeA.with_local (analyse archive bodyC))
(typeA.with_type returnT)
@@ -1063,7 +1063,7 @@
arguments)
returnT (//A.boxed_reflection_return mapping returnJ)
[_scope bodyA] (|> arguments'
- (#.Item [self selfT])
+ {#.Item [self selfT]}
list.reversed
(list\mix scopeA.with_local (analyse archive bodyC))
(typeA.with_type returnT)
@@ -1091,7 +1091,7 @@
arguments)
returnT (//A.boxed_reflection_return mapping returnJ)
[_scope bodyA] (|> arguments'
- (#.Item [self selfT])
+ {#.Item [self selfT]}
list.reversed
(list\mix scopeA.with_local (analyse archive bodyC))
(typeA.with_type returnT)
@@ -1128,24 +1128,24 @@
(def: (method_analysis archive declaration supers method)
(-> Archive Declaration (List (Type Class)) (Method Code) (Operation (Method Analysis)))
(case method
- (#Constructor method)
+ {#Constructor method}
(\ phase.monad each (|>> #Constructor)
(constructor_method_analysis archive declaration method))
- (#Override method)
+ {#Override method}
(\ phase.monad each (|>> #Override)
(override_method_analysis archive declaration supers method))
- (#Virtual method)
+ {#Virtual method}
(\ phase.monad each (|>> #Virtual)
(virtual_method_analysis archive declaration method))
- (#Static method)
+ {#Static method}
(\ phase.monad each (|>> #Static)
(static_method_analysis archive method))
- (#Abstract method)
- (\ phase.monad in (#Abstract method))
+ {#Abstract method}
+ (\ phase.monad in {#Abstract method})
))
(template: (method_body <bodyS>)
@@ -1168,7 +1168,7 @@
(\ ! each (|>> [typeJ])
(synthesise archive termA)))
constructor_argumentsA)
- bodyS (synthesise archive (#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)))]
+ bodyS (synthesise archive {#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)})]
(in [privacy strict_floating_point? annotations method_tvars exceptions
self arguments constructor_argumentsS
(case bodyS
@@ -1187,7 +1187,7 @@
synthesise directive.synthesis]
(directive.lifted_synthesis
(do !
- [bodyS (synthesise archive (#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)))]
+ [bodyS (synthesise archive {#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)})]
(in [[super_name super_tvars] method_name strict_floating_point? annotations
method_tvars self arguments returnJ exceptionsJ
(case bodyS
@@ -1206,7 +1206,7 @@
synthesise directive.synthesis]
(directive.lifted_synthesis
(do !
- [bodyS (synthesise archive (#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)))]
+ [bodyS (synthesise archive {#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)})]
(in [name privacy final? strict_floating_point? annotations method_tvars
self arguments returnJ exceptionsJ
(case bodyS
@@ -1225,7 +1225,7 @@
synthesise directive.synthesis]
(directive.lifted_synthesis
(do !
- [bodyS (synthesise archive (#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)))]
+ [bodyS (synthesise archive {#analysis.Function (list) (//A.hide_method_body (list.size arguments) bodyA)})]
(in [name privacy strict_floating_point? annotations method_tvars
arguments returnJ exceptionsJ
(case bodyS
@@ -1238,24 +1238,24 @@
(def: (method_synthesis archive method)
(-> Archive (Method Analysis) (Operation (Method Synthesis)))
(case method
- (#Constructor method)
+ {#Constructor method}
(\ phase.monad each (|>> #Constructor)
(constructor_method_synthesis archive method))
- (#Override method)
+ {#Override method}
(\ phase.monad each (|>> #Override)
(override_method_synthesis archive method))
- (#Virtual method)
+ {#Virtual method}
(\ phase.monad each (|>> #Virtual)
(virtual_method_synthesis archive method))
- (#Static method)
+ {#Static method}
(\ phase.monad each (|>> #Static)
(static_method_synthesis archive method))
- (#Abstract method)
- (\ phase.monad in (#Abstract method))
+ {#Abstract method}
+ (\ phase.monad in {#Abstract method})
))
(def: (constructor_method_generation archive super_class method)
@@ -1363,19 +1363,19 @@
(def: (method_generation archive super_class method)
(-> Archive (Type Class) (Method Synthesis) (Operation jvm.Def))
(case method
- (#Constructor method)
+ {#Constructor method}
(..constructor_method_generation archive super_class method)
- (#Override method)
+ {#Override method}
(..override_method_generation archive method)
- (#Virtual method)
+ {#Virtual method}
(..virtual_method_generation archive method)
- (#Static method)
+ {#Static method}
(..static_method_generation archive method)
- (#Abstract method)
+ {#Abstract method}
(\ phase.monad in (..abstract_method_generation method))
))
@@ -1384,13 +1384,13 @@
(def: (convert_overriden_method method)
(-> (Method Code) (Maybe (//A.Overriden_Method Code)))
(case method
- (#Override [[parent_name parent_variables] method_name strict_floating_point? annotations variables
+ {#Override [[parent_name parent_variables] method_name strict_floating_point? annotations variables
self arguments return exceptions
- body])
- (#.Some [(/type.class parent_name parent_variables) method_name
+ body]}
+ {#.Some [(/type.class parent_name parent_variables) method_name
strict_floating_point? (list) variables
self arguments return exceptions
- body])
+ body]}
_
#.None))
@@ -1445,7 +1445,7 @@
(do !
[artifact_id (generation.learn_custom class_name)
_ (generation.execute! directive)
- _ (generation.save! artifact_id (#.Some class_name) directive)
+ _ (generation.save! artifact_id {#.Some class_name} directive)
_ (generation.log! (format "JVM Class " (%.text class_name)))]
(in directive.no_requirements)))))]))
@@ -1472,7 +1472,7 @@
(do !
[artifact_id (generation.learn_custom class_name)
_ (generation.execute! directive)
- _ (generation.save! artifact_id (#.Some class_name) directive)
+ _ (generation.save! artifact_id {#.Some class_name} directive)
_ (generation.log! (format "JVM Interface " (%.text class_name)))]
(in directive.no_requirements)))))]))