From 6f55815f7f237df406e72c7a723055bb6238fce5 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 24 Jan 2022 04:44:32 -0400 Subject: Fixed compilation of methods for anonymous classes. --- .../source/luxc/lang/translation/jvm/function.lux | 93 +++++++++++----------- 1 file changed, 47 insertions(+), 46 deletions(-) (limited to 'lux-jvm/source/luxc/lang/translation/jvm/function.lux') diff --git a/lux-jvm/source/luxc/lang/translation/jvm/function.lux b/lux-jvm/source/luxc/lang/translation/jvm/function.lux index 7932360a3..2eb1894da 100644 --- a/lux-jvm/source/luxc/lang/translation/jvm/function.lux +++ b/lux-jvm/source/luxc/lang/translation/jvm/function.lux @@ -1,49 +1,50 @@ (.using - [library - [lux {"-" Type Label Primitive function} - [abstract - ["[0]" monad {"+" do}] - ["[0]" enum]] - [control - [pipe {"+" when> new>}] - ["[0]" function]] - [data - ["[0]" product] - [text - ["%" format {"+" format}]] - [collection - ["[0]" list ("[1]@[0]" functor monoid)]]] - [math - [number - ["n" nat] - ["i" int]]] - [target - [jvm - ["[0]" type {"+" Type} - ["[0]" category {"+" Void Value Return Primitive Object Class Array Var Parameter Method}]]]] - [tool - [compiler - [arity {"+" Arity}] - ["[0]" phase] - [reference - [variable {"+" Register}]] - [language - [lux - [analysis {"+" Environment}] - [synthesis {"+" Synthesis Abstraction Apply}] - ["[0]" generation {"+" Context}]]] - [meta - [archive {"+" Archive} - ["[0]" dependency]]]]]]] - [luxc - [lang - [host - ["$" jvm {"+" Label Inst Def Operation Phase Generator} - ["[0]" def] - ["_" inst]]]]] - ["[0]" // - ["[1][0]" runtime] - ["[0]" reference]]) + [library + [lux {"-" Type Label Primitive function} + [abstract + ["[0]" monad {"+" do}] + ["[0]" enum]] + [control + [pipe {"+" when> new>}] + ["[0]" function]] + [data + ["[0]" product] + [text + ["%" format {"+" format}]] + [collection + ["[0]" list ("[1]@[0]" functor monoid)]]] + [math + [number + ["n" nat] + ["i" int]]] + [target + [jvm + ["[0]" type {"+" Type} + ["[0]" category {"+" Void Value Return Primitive Object Class Array Var Parameter Method}]]]] + [tool + [compiler + [arity {"+" Arity}] + ["[0]" phase] + [reference + [variable {"+" Register}]] + [language + [lux + [analysis {"+" Environment}] + [synthesis {"+" Synthesis Abstraction Apply}] + ["[0]" generation {"+" Context}]]] + [meta + [archive {"+" Archive}] + ["[0]" cache "_" + ["[1]" artifact]]]]]]] + [luxc + [lang + [host + ["$" jvm {"+" Label Inst Def Operation Phase Generator} + ["[0]" def] + ["_" inst]]]]] + ["[0]" // + ["[1][0]" runtime] + ["[0]" reference]]) (def: arity_field Text "arity") @@ -308,7 +309,7 @@ (-> (Maybe Context) (Generator Abstraction)) (do [! phase.monad] [@begin _.make_label - dependencies (dependency.dependencies archive bodyS) + dependencies (cache.dependencies archive bodyS) [function_context bodyI] (case forced_context {.#Some function_context} (do ! -- cgit v1.2.3