Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2322,11 +2322,6 @@ private module Input3 implements InputSig3 {

class AssignExpr extends AssignmentImpl, Rust::AssignmentExpr { }

// Required by the shared type-inference signature; parenthesized expressions are transparent.
abstract class ParenExpr extends Expr {
Expr getExpr() { none() }
}

final class Declaration = DeclarationImpl;

abstract private class DeclarationImpl extends AstNode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2220,11 +2220,6 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
/** A simple assignment expression, for example `x = y`. */
class AssignExpr extends Assignment;

/** A parenthesized expression. */
class ParenExpr extends Expr {
Expr getExpr();
}

/**
* A variable, or an entity that behaves like a variable with respect to
* type inference, for example a local variable, `const` item, or `static`
Expand Down Expand Up @@ -2774,8 +2769,6 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
n1 = decl.getInitializer() and
n2 = decl.getPattern()
)
or
n1 = n2.(ParenExpr).getExpr()
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,6 @@ module Input3 implements InputSig3 {

class AssignExpr extends Assignment, Unified::AssignExpr { }

class ParenExpr extends Expr {
ParenExpr() { none() }

Expr getExpr() { none() }
}

private newtype TDeclaration =
TAstVariableDeclaration(Unified::VariableDeclaration decl) or
TCallableDeclaration(Unified::Callable c) or
Expand Down
Loading