File tree Expand file tree Collapse file tree
src/main/java/org/variantsync/diffdetective/mining/formats Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111public interface MiningNodeFormat extends DiffNodeLabelFormat {
1212 Pair <DiffType , CodeType > fromEncodedTypes (final String tag );
1313
14+ @ Override
1415 default DiffNode fromLabelAndId (String lineGraphNodeLabel , int nodeId ) {
1516 /// We cannot reuse the id as it is just a sequential integer. It thus, does not contain any information.
16- final DiffLineNumber lineFrom = DiffLineNumber . Invalid ( );
17- final DiffLineNumber lineTo = DiffLineNumber . Invalid ( );
17+ final DiffLineNumber lineFrom = new DiffLineNumber ( nodeId , nodeId , nodeId );
18+ final DiffLineNumber lineTo = new DiffLineNumber ( nodeId , nodeId , nodeId );
1819 final String resultLabel = "" ;
1920
2021 final Pair <DiffType , CodeType > types = fromEncodedTypes (lineGraphNodeLabel );
22+ lineFrom .as (types .first ());
23+ lineTo .as (types .first ());
2124 if (types .second () == CodeType .CODE ) {
2225 return DiffNode .createCode (types .first (),
2326 lineFrom , lineTo , resultLabel );
You can’t perform that action at this time.
0 commit comments