Skip to content

Commit 8e7bf68

Browse files
authored
Bump version of hdl submodule (#152)
including the massive performance bug fix, and some interface changes from it
1 parent 6c9f77e commit 8e7bf68

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

PolymorphicBlocks

Submodule PolymorphicBlocks updated 284 files

src/main/scala/edg_ide/psi_edits/InsertRefinementAction.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ class InsertRefinementAction(project: Project, insertIntoClass: PyClass) {
245245
inserted.addBefore(newline, inserted.getFirstChild)
246246
}
247247
listExpr
248+
case ErrorValue(_) => exceptable.fail("can't create error expr")
248249
}
249250
}
250251

src/main/scala/edg_ide/swing/CompilerErrorTreeTableModel.scala

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,26 +91,19 @@ object CompilerErrorNodeBase {
9191
Seq()
9292
)
9393

94-
case CompilerError.OverAssign(target, causes) =>
94+
case CompilerError.ExprError(target, msg) =>
9595
(
96-
"Conflicting assign",
96+
"Expr error",
9797
target.toString,
98-
causes.map {
99-
case CompilerError.OverAssignCause.Assign(target, root, constrName, value) =>
100-
new CompilerErrorDetailNode(s"$target${ExprToString(value)}", s"$root:$constrName")
101-
case CompilerError.OverAssignCause.Equal(target, source) =>
102-
new CompilerErrorDetailNode(s"$target$source", s"(equality)")
103-
}
98+
Seq(new CompilerErrorDetailNode(msg, ""))
10499
)
105100
case CompilerError.AbstractBlock(path, blockType) =>
106101
(s"Abstract block, ${blockType.toSimpleString}", path.toString, Seq())
107102
case CompilerError.FailedAssertion(root, constrName, value, result, compiler) => {
108103
(
109104
s"Failed assertion",
110105
s"$root:$constrName",
111-
Seq(
112-
new CompilerErrorDetailNode(ExprVarToValue(value, compiler, root), result.toStringValue)
113-
)
106+
Seq(new CompilerErrorDetailNode(ExprVarToValue(value, compiler, root), result.toStringValue))
114107
)
115108
}
116109
case CompilerError.MissingAssertion(root, constrName, value, missing) =>

0 commit comments

Comments
 (0)