File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -163,19 +163,6 @@ class ParsedRawSyntaxNode {
163
163
// / Returns the range of this node including leading and trailing trivia.
164
164
CharSourceRange getRange () const { return Range; }
165
165
166
- // Recorded Data ===========================================================//
167
-
168
- OpaqueSyntaxNode getOpaqueNode () const {
169
- assert (isRecorded ());
170
- return Data.getOpaque ();
171
- }
172
- OpaqueSyntaxNode takeOpaqueNode () {
173
- assert (isRecorded ());
174
- auto opaque = Data.getOpaque ();
175
- reset ();
176
- return opaque;
177
- }
178
-
179
166
// Deferred Layout Data ====================================================//
180
167
181
168
// / If this node is a deferred layout node, return the child at index \p
Original file line number Diff line number Diff line change @@ -329,7 +329,8 @@ OpaqueSyntaxNode SyntaxParsingContext::finalizeRoot() {
329
329
// the root context.
330
330
getStorage ().clear ();
331
331
332
- return root.takeOpaqueNode ();
332
+ assert (root.isRecorded () && " Root of syntax tree should be recorded" );
333
+ return root.takeData ();
333
334
}
334
335
335
336
void SyntaxParsingContext::synthesize (tok Kind, SourceLoc Loc) {
You can’t perform that action at this time.
0 commit comments