mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[libSyntax] Remove unnecessary getOpaqueNode and takeOpaqueNode from ParsedRawSyntaxNode
They are superseded by getData/takeData
This commit is contained in:
@@ -163,19 +163,6 @@ public:
|
||||
/// Returns the range of this node including leading and trailing trivia.
|
||||
CharSourceRange getRange() const { return Range; }
|
||||
|
||||
// Recorded Data ===========================================================//
|
||||
|
||||
OpaqueSyntaxNode getOpaqueNode() const {
|
||||
assert(isRecorded());
|
||||
return Data.getOpaque();
|
||||
}
|
||||
OpaqueSyntaxNode takeOpaqueNode() {
|
||||
assert(isRecorded());
|
||||
auto opaque = Data.getOpaque();
|
||||
reset();
|
||||
return opaque;
|
||||
}
|
||||
|
||||
// Deferred Layout Data ====================================================//
|
||||
|
||||
/// If this node is a deferred layout node, return the child at index \p
|
||||
|
||||
Reference in New Issue
Block a user