Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
KavinduZoysa committed Sep 10, 2020
1 parent 7081ab8 commit 4488f00
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@
import org.wso2.ballerinalang.compiler.tree.BLangAnnotationAttachment;
import org.wso2.ballerinalang.compiler.tree.BLangBlockFunctionBody;
import org.wso2.ballerinalang.compiler.tree.BLangCompilationUnit;
import org.wso2.ballerinalang.compiler.tree.BLangEndpoint;
import org.wso2.ballerinalang.compiler.tree.BLangErrorVariable;
import org.wso2.ballerinalang.compiler.tree.BLangExprFunctionBody;
import org.wso2.ballerinalang.compiler.tree.BLangExternalFunctionBody;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2880,8 +2880,8 @@ public void visit(BLangMatchStatement matchStatement) {
BLangExpression matchExpr = matchStatement.expr;
BLangSimpleVariable matchExprVar = ASTBuilderUtil.createVariable(matchExpr.pos,
matchExprVarName, matchExpr.type, matchExpr, new BVarSymbol(0,
names.fromString(matchExprVarName),
this.env.scope.owner.pkgID, matchExpr.type, this.env.scope.owner));
names.fromString(matchExprVarName), this.env.scope.owner.pkgID, matchExpr.type,
this.env.scope.owner, matchExpr.pos, VIRTUAL));

BLangSimpleVariableDef matchExprVarDef = ASTBuilderUtil.createVariableDef(matchBlockStmt.pos, matchExprVar);
matchBlockStmt.stmts.add(matchExprVarDef);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.wso2.ballerinalang.compiler.tree.BLangAnnotationAttachment;
import org.wso2.ballerinalang.compiler.tree.BLangBlockFunctionBody;
import org.wso2.ballerinalang.compiler.tree.BLangCompilationUnit;
import org.wso2.ballerinalang.compiler.tree.BLangEndpoint;
import org.wso2.ballerinalang.compiler.tree.BLangErrorVariable;
import org.wso2.ballerinalang.compiler.tree.BLangErrorVariable.BLangErrorDetailEntry;
import org.wso2.ballerinalang.compiler.tree.BLangExprFunctionBody;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import org.wso2.ballerinalang.compiler.tree.BLangAnnotationAttachment;
import org.wso2.ballerinalang.compiler.tree.BLangBlockFunctionBody;
import org.wso2.ballerinalang.compiler.tree.BLangCompilationUnit;
import org.wso2.ballerinalang.compiler.tree.BLangEndpoint;
import org.wso2.ballerinalang.compiler.tree.BLangErrorVariable;
import org.wso2.ballerinalang.compiler.tree.BLangExprFunctionBody;
import org.wso2.ballerinalang.compiler.tree.BLangExternalFunctionBody;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
import org.wso2.ballerinalang.compiler.tree.BLangAnnotation;
import org.wso2.ballerinalang.compiler.tree.BLangAnnotationAttachment;
import org.wso2.ballerinalang.compiler.tree.BLangBlockFunctionBody;
import org.wso2.ballerinalang.compiler.tree.BLangEndpoint;
import org.wso2.ballerinalang.compiler.tree.BLangErrorVariable;
import org.wso2.ballerinalang.compiler.tree.BLangExprFunctionBody;
import org.wso2.ballerinalang.compiler.tree.BLangExternalFunctionBody;
Expand Down Expand Up @@ -2310,7 +2309,7 @@ public void visit(BLangMatchStaticBindingPatternClause patternClause) {
@Override
public void visit(BLangCaptureBindingPattern captureBindingPattern) {
captureBindingPattern.symbol = new BVarSymbol(0, new Name(captureBindingPattern.getIdentifier().getValue()),
env.enclPkg.packageID, symTable.anyType, env.scope.owner);
env.enclPkg.packageID, symTable.anyType, env.scope.owner, captureBindingPattern.pos, SOURCE);
symbolEnter.defineSymbol(captureBindingPattern.pos, captureBindingPattern.symbol, env);
}

Expand Down

0 comments on commit 4488f00

Please sign in to comment.