Skip to content

Commit 0520c94

Browse files
committed
Remove ineffective call to freeze_attrs converting from SyntaxNode
Funny to realize it wasn't doing anything. If we want freezing, it should go after lowering anyway. Also clarify the `SyntaxTree(graph, syntaxnode)` signature.
1 parent be71982 commit 0520c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/syntax_graph.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ end
434434

435435
const SourceAttrType = Union{SourceRef,LineNumberNode,NodeId,Tuple}
436436

437-
function SyntaxTree(graph::SyntaxGraph, node::SyntaxNode)
437+
function SyntaxTree(graph::SyntaxGraph{<:Dict}, node::SyntaxNode)
438438
ensure_attributes!(graph, kind=Kind, syntax_flags=UInt16, source=SourceAttrType,
439439
value=Any, name_val=String)
440-
id = _convert_nodes(freeze_attrs(graph), node)
440+
id = _convert_nodes(graph, node)
441441
return SyntaxTree(graph, id)
442442
end
443443

0 commit comments

Comments
 (0)