@@ -40,19 +40,30 @@ class RootSignatureParser {
40
40
private:
41
41
DiagnosticsEngine &Diags () { return PP.getDiagnostics (); }
42
42
43
- // / All private Parse.* methods follow a similar pattern:
44
- // / - Each method will start with an assert to denote what the CurToken is
45
- // / expected to be and will parse from that token forward
46
- // / - Therefore, it is the callers responsibility to ensure that you are
47
- // / at the correct CurToken. This should be done with the pattern of:
48
- // / if (TryConsumeExpectedToken(TokenKind)
49
- // / if (Parse.*())
50
- // / return true;
51
- // / - All methods return true if a parsing error is encountered. It is the
52
- // / callers responsibility to propogate this error up, or deal with it
53
- // / otherwise
54
- // / - An error will be raised if the proceeding tokens are not what is
55
- // / expected, or, there is a lexing error
43
+ // All private Parse.* methods follow a similar pattern:
44
+ // - Each method will start with an assert to denote what the CurToken is
45
+ // expected to be and will parse from that token forward
46
+ //
47
+ // - Therefore, it is the callers responsibility to ensure that you are
48
+ // at the correct CurToken. This should be done with the pattern of:
49
+ //
50
+ // if (TryConsumeExpectedToken(TokenKind))
51
+ // if (Parse.*())
52
+ // return true;
53
+ //
54
+ // or,
55
+ //
56
+ // if (ConsumeExpectedToken(TokenKind, ...))
57
+ // return true;
58
+ // if (Parse.*())
59
+ // return true;
60
+ //
61
+ // - All methods return true if a parsing error is encountered. It is the
62
+ // callers responsibility to propogate this error up, or deal with it
63
+ // otherwise
64
+ //
65
+ // - An error will be raised if the proceeding tokens are not what is
66
+ // expected, or, there is a lexing error
56
67
57
68
// / Root Element parse methods:
58
69
bool ParseDescriptorTable ();
0 commit comments