Skip to content
Snippets Groups Projects
Commit b000185c authored by Jan Gruteser's avatar Jan Gruteser
Browse files

add TlaUtils

parent d3e4fd91
No related branches found
No related tags found
No related merge requests found
Pipeline #144889 passed
package de.tla2b.util;
import tla2sany.semantic.OpDefNode;
import java.util.HashMap;
import java.util.Map;
public class TlaUtils {
public static Map<String, OpDefNode> getOpDefsMap(OpDefNode[] opDefNodes) {
Map<String, OpDefNode> definitions = new HashMap<>();
for (OpDefNode def : opDefNodes) {
// Definition in this module
// if (StandardModules.contains(def.getOriginallyDefinedInModuleNode()
// .getName().toString())
// || StandardModules.contains(def.getSource()
// .getOriginallyDefinedInModuleNode().getName()
// .toString())) {
// continue;
// }
definitions.put(def.getName().toString(), def);
}
return definitions;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment