BFergerson / JetBrains-Graql-Plugin

8 stars 0 forks source link

Role player is non-existant inspection #31

Open BFergerson opened 6 years ago

BFergerson commented 6 years ago

Doesn't notice $y_def_file2 doesn't exist:

match
    $x isa function has function_name <xName>;
    $y isa function has function_name <yName>;
    $p isa project has project_name <projectName>; (has_defines: $p, is_defines: $x) isa defines;
    $y_def_file isa file; (has_defines: $y_def_file, is_defines: $y) isa defines;
    $y_def_project isa project; (has_defines: $y_def_project, is_defines: $y_def_file2) isa defines;
    $xProjectName != $yProjectName;

insert
(has_ref_call: $x, is_ref_call: $y) isa ref_call
    has create_date <createDate>
    has start_offset @long(<startOffset>)
    has end_offset @long(<endOffset>)
    has is_external true;