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 {
66
66
SyntaxKind getKind () const ;
67
67
68
68
// / Get the shared raw syntax.
69
- const RC<RawSyntax> getRaw () const ;
69
+ const RC<RawSyntax> & getRaw () const ;
70
70
71
71
// / Get an ID for this node that is stable across incremental parses
72
72
SyntaxNodeId getId () const { return getRaw ()->getId (); }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class RefCountedBox final
60
60
61
61
RefCountedBox (const T Data) : Data(Data) {}
62
62
63
- static RC<RefCountedBox<T>> make (const T Data) {
63
+ static RC<RefCountedBox<T>> make (const T & Data) {
64
64
return RC<RefCountedBox<T>>{new RefCountedBox (Data)};
65
65
}
66
66
};
Original file line number Diff line number Diff line change 17
17
using namespace swift ;
18
18
using namespace swift ::syntax;
19
19
20
- const RC<RawSyntax> Syntax::getRaw () const { return Data.getRaw (); }
20
+ const RC<RawSyntax> & Syntax::getRaw () const { return Data.getRaw (); }
21
21
22
22
SyntaxKind Syntax::getKind () const {
23
23
return getRaw ()->getKind ();
You can’t perform that action at this time.
0 commit comments