mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-08 12:25:22 -04:00
minor cleanup
This commit is contained in:
parent
6f5cbdc138
commit
f793054c89
@ -132,14 +132,13 @@ public class ResolveGenerics {
|
||||
|
||||
boolean isCustom = elementTypeDescription instanceof ElementTypeDescriptionCustom;
|
||||
Statement genS = getStatement(gen);
|
||||
Context mod = createContext(c, newComponents);
|
||||
Context mod = createContext(c, newComponents)
|
||||
.declareVar("args", args);
|
||||
if (isCustom) {
|
||||
mod.declareVar("args", args)
|
||||
.declareFunc("setCircuit", new SetCircuitFunc(ve));
|
||||
mod.declareFunc("setCircuit", new SetCircuitFunc(ve));
|
||||
genS.execute(mod);
|
||||
} else {
|
||||
mod.declareVar("args", args)
|
||||
.declareVar("this", new SubstituteLibrary.AllowSetAttributes(elementAttributes));
|
||||
mod.declareVar("this", new SubstituteLibrary.AllowSetAttributes(elementAttributes));
|
||||
genS.execute(mod);
|
||||
}
|
||||
elementAttributes.putToCache(GEN_ARGS_KEY, mod);
|
||||
|
Loading…
x
Reference in New Issue
Block a user