public void install(DataFlowManager manager) { manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_CreateUniqueName", new GenerationContextOp_CreateUniqueName_DataFlow()); manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_GetCopiedOutputByInput", new GenerationContextOp_GetCopiedOutputByInput_DataFlow()); manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_GetOriginalCopiedInputByOutput", new GenerationContextOp_GetOriginalCopiedInputByOutput_DataFlow()); manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_GetOutputByLabelAndInput", new GenerationContextOp_GetOutputByLabelAndInput_DataFlow()); manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_GetOutputByLabelAndInputAndReferenceScope", new GenerationContextOp_GetOutputByLabelAndInputAndReferenceScope_DataFlow()); manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_GetOutputListByLabelAndInput", new GenerationContextOp_GetOutputListByLabelAndInput_DataFlow()); manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_ShowMessageBase", new GenerationContextOp_ShowMessageBase_DataFlow()); manager.register( "jetbrains.mps.lang.generator.generationContext.structure.GenerationContextOp_UserObjectAccessBase", new GenerationContextOp_UserObjectAccessBase_DataFlow()); }
public void doExecute(@NotNull final AnActionEvent event, final Map<String, Object> _params) { try { Program program = DataFlowManager.getInstance() .buildProgramFor(((SNode) MapSequence.fromMap(_params).get("node"))); AnalysisResult<Set<WriteInstruction>> result = program.analyze(new ReachingDefinitionsAnalyzer()); System.out.println(result.toString()); } catch (Throwable t) { LOG.error( "User's action execute method failed. Action:" + "PrintReachingDefinintionsInformation", t); } }
public void install(DataFlowManager manager) { manager.register( "jetbrains.mps.baseLanguage.closures.structure.ClosureControlStatement", new ClosureControlStatement_DataFlow()); manager.register( "jetbrains.mps.baseLanguage.closures.structure.ClosureLiteral", new ClosureLiteral_DataFlow()); manager.register( "jetbrains.mps.baseLanguage.closures.structure.CompactInvokeFunctionExpression", new CompactInvokeFunctionExpression_DataFlow()); manager.register( "jetbrains.mps.baseLanguage.closures.structure.InvokeExpression", new InvokeExpression_DataFlow()); manager.register( "jetbrains.mps.baseLanguage.closures.structure.InvokeFunctionOperation", new InvokeFunctionOperation_DataFlow()); manager.register( "jetbrains.mps.baseLanguage.closures.structure.YieldAllStatement", new YieldAllStatement_DataFlow()); manager.register( "jetbrains.mps.baseLanguage.closures.structure.YieldStatement", new YieldStatement_DataFlow()); }