File tree 2 files changed +8
-9
lines changed
src/main/java/nextflow/lsp/services/script/dag
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 27
27
}
28
28
29
29
dependencies {
30
- implementation ' io.nextflow:nf-lang:25.02.3 -edge'
30
+ implementation ' io.nextflow:nf-lang:25.03.0 -edge'
31
31
implementation ' org.apache.groovy:groovy:4.0.26'
32
32
implementation ' org.apache.groovy:groovy-json:4.0.26'
33
33
implementation ' org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.0'
Original file line number Diff line number Diff line change @@ -144,14 +144,13 @@ else if( emit instanceof AssignmentExpression assign ) {
144
144
145
145
private void visitWorkflowPublishers (WorkflowNode node , Map <String ,Node > result ) {
146
146
for ( var stmt : asBlockStatements (node .publishers ) ) {
147
- var publisher = (BinaryExpression ) ((ExpressionStatement ) stmt ).getExpression ();
148
- var target = publisher .getRightExpression ();
149
- if ( target instanceof ConstantExpression ce ) {
150
- var name = ce .getText ();
151
- var source = publisher .getLeftExpression ();
152
- visit (new AssignmentExpression (varX (name ), source ));
153
- result .put (name , current .getSymbol (name ));
154
- }
147
+ var es = (ExpressionStatement ) stmt ;
148
+ var publisher = (BinaryExpression ) es .getExpression ();
149
+ var target = asVarX (publisher .getLeftExpression ());
150
+ var source = publisher .getRightExpression ();
151
+ visit (new AssignmentExpression (target , source ));
152
+ var name = target .getName ();
153
+ result .put (name , current .getSymbol (name ));
155
154
}
156
155
}
157
156
You can’t perform that action at this time.
0 commit comments