Skip to content
Snippets Groups Projects
Commit 32601b55 authored by Sebastian Krings's avatar Sebastian Krings
Browse files

renaming some variables

parent 4a86793c
No related branches found
No related tags found
No related merge requests found
...@@ -29,19 +29,20 @@ public class ContextAttributeProcessor extends SCProcessorModule { ...@@ -29,19 +29,20 @@ public class ContextAttributeProcessor extends SCProcessorModule {
assert (target instanceof ISCContextRoot); assert (target instanceof ISCContextRoot);
// get all variables and copy over the attributes // get all variables and copy over the attributes
IRodinFile machineFile = (IRodinFile) element; IRodinFile contextFile = (IRodinFile) element;
IContextRoot constantRoot = (IContextRoot) machineFile.getRoot(); IContextRoot contextRoot = (IContextRoot) contextFile.getRoot();
ISCContextRoot scContextRoot = (ISCContextRoot) target; ISCContextRoot scContextRoot = (ISCContextRoot) target;
IConstant[] constants = constantRoot.getConstants(); IConstant[] constants = contextRoot.getConstants();
ISCConstant[] scconstants = scContextRoot.getSCConstants();
if (constants.length == 0) if (constants.length == 0)
return; return;
for (IConstant constant : constants) { for (IConstant constant : constants) {
ISCConstant scConstant = scContextRoot.getSCConstant(constant String identifier = constant.getElementName();
.getIdentifierString()); ISCConstant scConstant = scContextRoot.getSCConstant(identifier);
// might have been filtered out by previous modules // might have been filtered out by previous modules
if (scConstant.exists()) { if (scConstant.exists()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment