Skip to content

Commit 5b8ded1

Browse files
committed
Workflow outputs (third preview)
Signed-off-by: Ben Sherman <[email protected]>
1 parent 876ec8a commit 5b8ded1

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test {
2727
}
2828

2929
dependencies {
30-
implementation 'io.nextflow:nf-lang:25.02.3-edge'
30+
implementation 'io.nextflow:nf-lang:25.03.0-edge'
3131
implementation 'org.apache.groovy:groovy:4.0.26'
3232
implementation 'org.apache.groovy:groovy-json:4.0.26'
3333
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.0'

src/main/java/nextflow/lsp/services/script/dag/DataflowVisitor.java

+7-8
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,13 @@ else if( emit instanceof AssignmentExpression assign ) {
144144

145145
private void visitWorkflowPublishers(WorkflowNode node, Map<String,Node> result) {
146146
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));
155154
}
156155
}
157156

0 commit comments

Comments
 (0)