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 {
assert (target instanceof ISCContextRoot);
// get all variables and copy over the attributes
IRodinFile machineFile = (IRodinFile) element;
IContextRoot constantRoot = (IContextRoot) machineFile.getRoot();
IRodinFile contextFile = (IRodinFile) element;
IContextRoot contextRoot = (IContextRoot) contextFile.getRoot();
ISCContextRoot scContextRoot = (ISCContextRoot) target;
IConstant[] constants = constantRoot.getConstants();
IConstant[] constants = contextRoot.getConstants();
ISCConstant[] scconstants = scContextRoot.getSCConstants();
if (constants.length == 0)
return;
for (IConstant constant : constants) {
ISCConstant scConstant = scContextRoot.getSCConstant(constant
.getIdentifierString());
String identifier = constant.getElementName();
ISCConstant scConstant = scContextRoot.getSCConstant(identifier);
// might have been filtered out by previous modules
if (scConstant.exists()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment