File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ class Syntax {
6666 SyntaxKind getKind () const ;
6767
6868 // / Get the shared raw syntax.
69- const RC<RawSyntax> getRaw () const ;
69+ const RC<RawSyntax> & getRaw () const ;
7070
7171 // / Get an ID for this node that is stable across incremental parses
7272 SyntaxNodeId getId () const { return getRaw ()->getId (); }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class RefCountedBox final
6060
6161 RefCountedBox (const T Data) : Data(Data) {}
6262
63- static RC<RefCountedBox<T>> make (const T Data) {
63+ static RC<RefCountedBox<T>> make (const T & Data) {
6464 return RC<RefCountedBox<T>>{new RefCountedBox (Data)};
6565 }
6666};
Original file line number Diff line number Diff line change 1717using namespace swift ;
1818using namespace swift ::syntax;
1919
20- const RC<RawSyntax> Syntax::getRaw () const { return Data.getRaw (); }
20+ const RC<RawSyntax> & Syntax::getRaw () const { return Data.getRaw (); }
2121
2222SyntaxKind Syntax::getKind () const {
2323 return getRaw ()->getKind ();
You can’t perform that action at this time.
0 commit comments