@@ -37,10 +37,11 @@ BridgedStringRef BridgedLegacyParser::getSourceBuffer() const {
37
37
38
38
// MARK: Functions called from SwiftParser.
39
39
40
- BridgedExpr BridgedLegacyParser::parseExpr (BridgedSourceLoc loc,
41
- BridgedDeclContext DC,
42
- bool isExprBasic) const {
43
- auto &P = unbridged ();
40
+ BridgedExpr BridgedLegacyParser_parseExpr (BridgedLegacyParser p,
41
+ BridgedSourceLoc loc,
42
+ BridgedDeclContext DC,
43
+ bool isExprBasic) const {
44
+ auto &P = p.unbridged ();
44
45
auto PP =
45
46
P.getParserPosition (loc.unbridged (), /* PreviousLoc=*/ loc.unbridged ());
46
47
P.CurDeclContext = DC.unbridged ();
@@ -50,9 +51,10 @@ BridgedExpr BridgedLegacyParser::parseExpr(BridgedSourceLoc loc,
50
51
return result.getPtrOrNull ();
51
52
}
52
53
53
- BridgedDecl BridgedLegacyParser::parseDecl (BridgedSourceLoc loc,
54
- BridgedDeclContext DC) const {
55
- auto &P = unbridged ();
54
+ BridgedDecl BridgedLegacyParser_parseDecl (BridgedLegacyParser p,
55
+ BridgedSourceLoc loc,
56
+ BridgedDeclContext DC) {
57
+ auto &P = p.unbridged ();
56
58
auto PP =
57
59
P.getParserPosition (loc.unbridged (), /* PreviousLoc=*/ loc.unbridged ());
58
60
P.CurDeclContext = DC.unbridged ();
@@ -68,9 +70,10 @@ BridgedDecl BridgedLegacyParser::parseDecl(BridgedSourceLoc loc,
68
70
return result.getPtrOrNull ();
69
71
}
70
72
71
- BridgedStmt BridgedLegacyParser::parseStmt (BridgedSourceLoc loc,
72
- BridgedDeclContext DC) const {
73
- auto &P = unbridged ();
73
+ BridgedStmt BridgedLegacyParser_parseStmt (BridgedLegacyParser p,
74
+ BridgedSourceLoc loc,
75
+ BridgedDeclContext DC) {
76
+ auto &P = p.unbridged ();
74
77
auto PP =
75
78
P.getParserPosition (loc.unbridged (), /* PreviousLoc=*/ loc.unbridged ());
76
79
P.CurDeclContext = DC.unbridged ();
@@ -80,9 +83,10 @@ BridgedStmt BridgedLegacyParser::parseStmt(BridgedSourceLoc loc,
80
83
return result.getPtrOrNull ();
81
84
}
82
85
83
- BridgedTypeRepr BridgedLegacyParser::parseType (BridgedSourceLoc loc,
84
- BridgedDeclContext DC) const {
85
- auto &P = unbridged ();
86
+ BridgedTypeRepr BridgedLegacyParser_parseType (BridgedLegacyParser p,
87
+ BridgedSourceLoc loc,
88
+ BridgedDeclContext DC) {
89
+ auto &P = p.unbridged ();
86
90
auto PP =
87
91
P.getParserPosition (loc.unbridged (), /* PreviousLoc=*/ loc.unbridged ());
88
92
P.CurDeclContext = DC.unbridged ();
0 commit comments