Skip to content
Snippets Groups Projects
Commit 35bb8034 authored by Florian's avatar Florian
Browse files

filter pattern

parent f035c20f
No related branches found
No related tags found
No related merge requests found
...@@ -16,10 +16,9 @@ ...@@ -16,10 +16,9 @@
WHERE functionClass.fqn = function.vartype WHERE functionClass.fqn = function.vartype
AND computeMethod.name="compute" AND computeMethod.name="compute"
MATCH (functionClass)-[*2]->(concreteComputeMethod:Method)-[:CONTROL_FLOW*]->(concreteExecuteReturn:ReturnStmt) MATCH (functionClass)-[*2]->(concreteComputeMethod:Method)
WHERE functionClass.fqn = function.vartype WHERE functionClass.fqn = function.vartype
AND concreteComputeMethod.name="compute" AND concreteComputeMethod.name="compute"
MATCH (beforeExecuteReturn)-[cfExecReturn:CONTROL_FLOW]->(concreteExecuteReturn)
MATCH (computeMethod)-[:CONTROL_FLOW*]->(computeMethodCall:MethodCall) MATCH (computeMethod)-[:CONTROL_FLOW*]->(computeMethodCall:MethodCall)
WHERE computeMethodCall.name = "compute" WHERE computeMethodCall.name = "compute"
MATCH (computeMethodCall)-[:CONTROL_FLOW*]->(abstractExecuteReturn:ReturnStmt) MATCH (computeMethodCall)-[:CONTROL_FLOW*]->(abstractExecuteReturn:ReturnStmt)
...@@ -29,7 +28,8 @@ ...@@ -29,7 +28,8 @@
MATCH (endPipe)-[:CONTROL_FLOW]->(successor) MATCH (endPipe)-[:CONTROL_FLOW]->(successor)
// constructor extension // constructor extension
MATCH (functionClass)-[:CONTAINS_CONSTRUCTOR]->()-[:CONTROL_FLOW*]->(ctorReturn:ReturnStmt) MATCH (functionClass)-[:CONTAINS_CONSTRUCTOR]->(ctor:Constructor)-[:CONTROL_FLOW*]->(ctorReturn:ReturnStmt)
WHERE ctor.parameterscount > 0
MATCH (nodeBeforCtorReturn)-[cfReturn:CONTROL_FLOW]->(ctorReturn) MATCH (nodeBeforCtorReturn)-[cfReturn:CONTROL_FLOW]->(ctorReturn)
//tinkerpop interface and extends //tinkerpop interface and extends
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment