2018-02-08 12:24:27 +11:00
|
|
|
[
|
2019-08-31 17:38:43 +02:00
|
|
|
{"type":"CommentPreproc","value":"#include"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"CommentPreprocFile","value":"\"a\""},
|
2023-09-09 13:07:35 +10:00
|
|
|
{"type":"CommentPreproc","value":" "},
|
|
|
|
{"type":"CommentSingle","value":"// comment\n"},
|
|
|
|
{"type":"CommentPreproc","value":"#include"},
|
2019-08-31 17:38:43 +02:00
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"CommentPreprocFile","value":"\u003cb\u003e"},
|
2023-09-09 13:07:35 +10:00
|
|
|
{"type":"CommentPreproc","value":" "},
|
|
|
|
{"type":"CommentSingle","value":"// comment\n"},
|
2019-08-31 17:38:43 +02:00
|
|
|
{"type":"Text","value":"\n"},
|
|
|
|
{"type":"NameAttribute","value":"[[nodiscard]]"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"KeywordType","value":"void"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"foo"},
|
|
|
|
{"type":"Punctuation","value":"()"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Keyword","value":"noexcept"},
|
|
|
|
{"type":"Punctuation","value":";"},
|
|
|
|
{"type":"Text","value":"\n"},
|
|
|
|
{"type":"KeywordType","value":"void"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameFunction","value":"foo"},
|
|
|
|
{"type":"Punctuation","value":"();"},
|
|
|
|
{"type":"Text","value":"\n\n"},
|
|
|
|
{"type":"Keyword","value":"constexpr"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Keyword","value":"class"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"{}"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"a"},
|
|
|
|
{"type":"Punctuation","value":";"},
|
|
|
|
{"type":"Text","value":"\n\n"},
|
|
|
|
{"type":"Keyword","value":"enum"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Keyword","value":"class"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameClass","value":"E"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"{"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"A"},
|
|
|
|
{"type":"Punctuation","value":","},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"B"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"};"},
|
|
|
|
{"type":"Text","value":"\n"},
|
|
|
|
{"type":"Keyword","value":"enum"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Keyword","value":"class"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameAttribute","value":"[[nodiscard]]"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameClass","value":"E"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"{"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"A"},
|
|
|
|
{"type":"Punctuation","value":","},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"B"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"};"},
|
|
|
|
{"type":"Text","value":"\n\n"},
|
|
|
|
{"type":"Keyword","value":"enum"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Keyword","value":"class"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"{"},
|
|
|
|
{"type":"Text","value":"\n "},
|
|
|
|
{"type":"Name","value":"a"},
|
|
|
|
{"type":"Punctuation","value":","},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"b"},
|
|
|
|
{"type":"Punctuation","value":","},
|
|
|
|
{"type":"Text","value":"\n "},
|
|
|
|
{"type":"Name","value":"c"},
|
|
|
|
{"type":"Punctuation","value":","},
|
|
|
|
{"type":"Text","value":"\n"},
|
|
|
|
{"type":"Punctuation","value":"}"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"e"},
|
|
|
|
{"type":"Punctuation","value":";"},
|
|
|
|
{"type":"Text","value":"\n\n"},
|
|
|
|
{"type":"Keyword","value":"enum"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameClass","value":"E"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"{"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"A"},
|
|
|
|
{"type":"Punctuation","value":","},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Name","value":"B"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"};"},
|
|
|
|
{"type":"Text","value":"\n\n"},
|
|
|
|
{"type":"Keyword","value":"class"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameClass","value":"A"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"{"},
|
|
|
|
{"type":"Text","value":"\n "},
|
|
|
|
{"type":"KeywordType","value":"void"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameFunction","value":"foo"},
|
|
|
|
{"type":"Punctuation","value":"();"},
|
|
|
|
{"type":"Text","value":"\n "},
|
|
|
|
{"type":"KeywordType","value":"void"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"NameFunction","value":"bar"},
|
|
|
|
{"type":"Punctuation","value":"();"},
|
|
|
|
{"type":"Text","value":"\n"},
|
|
|
|
{"type":"Punctuation","value":"};"},
|
|
|
|
{"type":"Text","value":"\n\n"},
|
2018-03-03 10:16:21 +11:00
|
|
|
{"type":"KeywordType","value":"int"},
|
2018-02-08 12:24:27 +11:00
|
|
|
{"type":"Text","value":" "},
|
2018-03-03 10:16:21 +11:00
|
|
|
{"type":"NameFunction","value":"main"},
|
|
|
|
{"type":"Punctuation","value":"()"},
|
2018-02-08 12:24:27 +11:00
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Punctuation","value":"{"},
|
2018-03-03 10:16:21 +11:00
|
|
|
{"type":"Text","value":"\n "},
|
|
|
|
{"type":"Keyword","value":"return"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
2019-08-31 17:38:43 +02:00
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Operator","value":"+"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"LiteralNumberInteger","value":"1'3"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"Operator","value":"+"},
|
|
|
|
{"type":"Text","value":" "},
|
|
|
|
{"type":"LiteralNumberFloat","value":"1.4"},
|
2018-03-03 10:16:21 +11:00
|
|
|
{"type":"Punctuation","value":";"},
|
2018-02-08 12:24:27 +11:00
|
|
|
{"type":"Text","value":"\n"},
|
|
|
|
{"type":"Punctuation","value":"}"},
|
2018-03-03 10:16:21 +11:00
|
|
|
{"type":"Text","value":"\n"}
|
2018-02-08 12:24:27 +11:00
|
|
|
]
|