lexer.capnp.h 44.5 KB
Newer Older
1 2
// Generated by Cap'n Proto compiler, DO NOT EDIT
// source: lexer.capnp
3

4 5
#ifndef CAPNP_INCLUDED_a73956d2621fc3ee_
#define CAPNP_INCLUDED_a73956d2621fc3ee_
6 7 8

#include <capnp/generated-header-support.h>

9
#if CAPNP_VERSION != 4000
10 11 12 13
#error "Version mismatch between generated code and library headers.  You must use the same version of the Cap'n Proto compiler and library."
#endif


14 15 16 17 18 19 20 21 22
namespace capnp {
namespace compiler {

struct Token {
  Token() = delete;

  class Reader;
  class Builder;
  enum Which: uint16_t {
23 24 25 26 27 28 29
    IDENTIFIER,
    STRING_LITERAL,
    INTEGER_LITERAL,
    FLOAT_LITERAL,
    OPERATOR,
    PARENTHESIZED_LIST,
    BRACKETED_LIST,
30 31 32 33 34 35 36 37 38
  };
};

struct Statement {
  Statement() = delete;

  class Reader;
  class Builder;
  enum Which: uint16_t {
39 40
    LINE,
    BLOCK,
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
  };
};

struct LexedTokens {
  LexedTokens() = delete;

  class Reader;
  class Builder;
};

struct LexedStatements {
  LexedStatements() = delete;

  class Reader;
  class Builder;
};

}  // namespace
}  // namespace

61 62
// =======================================================================================

63 64
namespace capnp {
namespace schemas {
65

66 67 68 69
extern const ::capnp::_::RawSchema s_91cc55cd57de5419;
extern const ::capnp::_::RawSchema s_c6725e678d60fa37;
extern const ::capnp::_::RawSchema s_9e69a92512b19d18;
extern const ::capnp::_::RawSchema s_a11f97b9d6c73dd4;
70

71 72
}  // namespace schemas
namespace _ {  // private
73

74 75 76 77 78 79 80 81 82 83 84 85
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Token, 91cc55cd57de5419,
    3, 1, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Statement, c6725e678d60fa37,
    2, 3, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::LexedTokens, 9e69a92512b19d18,
    0, 1, POINTER);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::LexedStatements, a11f97b9d6c73dd4,
    0, 1, POINTER);
86

87
}  // namespace _ (private)
88 89 90
}  // namespace capnp

// =======================================================================================
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105

namespace capnp {
namespace compiler {

class Token::Reader {
public:
  typedef Token Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

  inline size_t totalSizeInWords() const {
    return _reader.totalSize() / ::capnp::WORDS;
  }

106
  inline Which which() const;
107
  inline bool isIdentifier() const;
108 109 110
  inline bool hasIdentifier() const;
  inline  ::capnp::Text::Reader getIdentifier() const;

111
  inline bool isStringLiteral() const;
112 113 114
  inline bool hasStringLiteral() const;
  inline  ::capnp::Text::Reader getStringLiteral() const;

115
  inline bool isIntegerLiteral() const;
116
  inline bool hasIntegerLiteral() const;
117 118
  inline  ::uint64_t getIntegerLiteral() const;

119
  inline bool isFloatLiteral() const;
120
  inline bool hasFloatLiteral() const;
121 122
  inline double getFloatLiteral() const;

123
  inline bool isOperator() const;
124 125 126
  inline bool hasOperator() const;
  inline  ::capnp::Text::Reader getOperator() const;

127
  inline bool isParenthesizedList() const;
128 129 130
  inline bool hasParenthesizedList() const;
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader getParenthesizedList() const;

131
  inline bool isBracketedList() const;
132 133
  inline bool hasBracketedList() const;
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader getBracketedList() const;
134

135 136 137 138 139 140
  inline bool hasStartByte() const;
  inline  ::uint32_t getStartByte() const;

  inline bool hasEndByte() const;
  inline  ::uint32_t getEndByte() const;

141 142 143 144 145 146 147 148 149 150
private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
151
  friend ::kj::StringTree KJ_STRINGIFY(Token::Reader reader);
152 153
};

154 155
inline ::kj::StringTree KJ_STRINGIFY(Token::Reader reader) {
  return ::capnp::_::structString<Token>(reader._reader);
156 157
}

158
class Token::Builder {
159
public:
160
  typedef Token Builds;
161

162 163 164
  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
165 166 167 168
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

169
  inline size_t totalSizeInWords() { return asReader().totalSizeInWords(); }
170

171
  inline Which which();
172
  inline bool isIdentifier();
173 174
  inline bool hasIdentifier();
  inline  ::capnp::Text::Builder getIdentifier();
175
  inline void setIdentifier( ::capnp::Text::Reader value);
176 177 178 179
  inline  ::capnp::Text::Builder initIdentifier(unsigned int size);
  inline void adoptIdentifier(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownIdentifier();

180
  inline bool isStringLiteral();
181 182
  inline bool hasStringLiteral();
  inline  ::capnp::Text::Builder getStringLiteral();
183
  inline void setStringLiteral( ::capnp::Text::Reader value);
184 185 186 187
  inline  ::capnp::Text::Builder initStringLiteral(unsigned int size);
  inline void adoptStringLiteral(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownStringLiteral();

188
  inline bool isIntegerLiteral();
189
  inline bool hasIntegerLiteral();
190 191 192
  inline  ::uint64_t getIntegerLiteral();
  inline void setIntegerLiteral( ::uint64_t value);

193
  inline bool isFloatLiteral();
194
  inline bool hasFloatLiteral();
195 196 197
  inline double getFloatLiteral();
  inline void setFloatLiteral(double value);

198
  inline bool isOperator();
199 200
  inline bool hasOperator();
  inline  ::capnp::Text::Builder getOperator();
201
  inline void setOperator( ::capnp::Text::Reader value);
202 203 204 205
  inline  ::capnp::Text::Builder initOperator(unsigned int size);
  inline void adoptOperator(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownOperator();

206
  inline bool isParenthesizedList();
207 208
  inline bool hasParenthesizedList();
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder getParenthesizedList();
209 210
  inline void setParenthesizedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value);
  inline void setParenthesizedList(std::initializer_list< ::capnp::List< ::capnp::compiler::Token>::Reader> value);
211 212 213 214
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder initParenthesizedList(unsigned int size);
  inline void adoptParenthesizedList(::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>> disownParenthesizedList();

215
  inline bool isBracketedList();
216 217
  inline bool hasBracketedList();
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder getBracketedList();
218 219
  inline void setBracketedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value);
  inline void setBracketedList(std::initializer_list< ::capnp::List< ::capnp::compiler::Token>::Reader> value);
220 221 222
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder initBracketedList(unsigned int size);
  inline void adoptBracketedList(::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>> disownBracketedList();
223

224 225 226 227 228 229 230 231
  inline bool hasStartByte();
  inline  ::uint32_t getStartByte();
  inline void setStartByte( ::uint32_t value);

  inline bool hasEndByte();
  inline  ::uint32_t getEndByte();
  inline void setEndByte( ::uint32_t value);

232 233 234 235 236
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
237
  friend ::kj::StringTree KJ_STRINGIFY(Token::Builder builder);
238 239
};

240 241
inline ::kj::StringTree KJ_STRINGIFY(Token::Builder builder) {
  return ::capnp::_::structString<Token>(builder._builder.asReader());
242 243 244 245 246 247 248 249 250 251 252 253 254
}

class Statement::Reader {
public:
  typedef Statement Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

  inline size_t totalSizeInWords() const {
    return _reader.totalSize() / ::capnp::WORDS;
  }

255
  inline Which which() const;
256 257 258
  inline bool hasTokens() const;
  inline  ::capnp::List< ::capnp::compiler::Token>::Reader getTokens() const;

259 260 261 262 263
  inline bool isLine() const;
  inline bool hasLine() const;
  inline  ::capnp::Void getLine() const;

  inline bool isBlock() const;
264
  inline bool hasBlock() const;
265
  inline  ::capnp::List< ::capnp::compiler::Statement>::Reader getBlock() const;
266

267 268 269
  inline bool hasDocComment() const;
  inline  ::capnp::Text::Reader getDocComment() const;

270
  inline bool hasStartByte() const;
271 272
  inline  ::uint32_t getStartByte() const;

273
  inline bool hasEndByte() const;
274
  inline  ::uint32_t getEndByte() const;
275

276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Statement::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(Statement::Reader reader) {
  return ::capnp::_::structString<Statement>(reader._reader);
}

class Statement::Builder {
public:
  typedef Statement Builds;

297 298 299
  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
300 301 302 303 304 305
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

  inline size_t totalSizeInWords() { return asReader().totalSizeInWords(); }

306
  inline Which which();
307 308
  inline bool hasTokens();
  inline  ::capnp::List< ::capnp::compiler::Token>::Builder getTokens();
309
  inline void setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value);
310 311 312 313
  inline  ::capnp::List< ::capnp::compiler::Token>::Builder initTokens(unsigned int size);
  inline void adoptTokens(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>> disownTokens();

314 315 316
  inline bool isLine();
  inline bool hasLine();
  inline  ::capnp::Void getLine();
317
  inline void setLine( ::capnp::Void value = ::capnp::VOID);
318 319

  inline bool isBlock();
320
  inline bool hasBlock();
321 322 323 324 325
  inline  ::capnp::List< ::capnp::compiler::Statement>::Builder getBlock();
  inline void setBlock( ::capnp::List< ::capnp::compiler::Statement>::Reader value);
  inline  ::capnp::List< ::capnp::compiler::Statement>::Builder initBlock(unsigned int size);
  inline void adoptBlock(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>> disownBlock();
326

327 328
  inline bool hasDocComment();
  inline  ::capnp::Text::Builder getDocComment();
329
  inline void setDocComment( ::capnp::Text::Reader value);
330 331 332 333
  inline  ::capnp::Text::Builder initDocComment(unsigned int size);
  inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownDocComment();

334
  inline bool hasStartByte();
335 336 337
  inline  ::uint32_t getStartByte();
  inline void setStartByte( ::uint32_t value);

338
  inline bool hasEndByte();
339 340
  inline  ::uint32_t getEndByte();
  inline void setEndByte( ::uint32_t value);
341

342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Statement::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(Statement::Builder builder) {
  return ::capnp::_::structString<Statement>(builder._builder.asReader());
}

class LexedTokens::Reader {
public:
  typedef LexedTokens Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

  inline size_t totalSizeInWords() const {
    return _reader.totalSize() / ::capnp::WORDS;
  }

  inline bool hasTokens() const;
  inline  ::capnp::List< ::capnp::compiler::Token>::Reader getTokens() const;
367

368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388
private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(LexedTokens::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(LexedTokens::Reader reader) {
  return ::capnp::_::structString<LexedTokens>(reader._reader);
}

class LexedTokens::Builder {
public:
  typedef LexedTokens Builds;

389 390 391
  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
392 393 394 395 396 397 398 399
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

  inline size_t totalSizeInWords() { return asReader().totalSizeInWords(); }

  inline bool hasTokens();
  inline  ::capnp::List< ::capnp::compiler::Token>::Builder getTokens();
400
  inline void setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value);
401 402 403
  inline  ::capnp::List< ::capnp::compiler::Token>::Builder initTokens(unsigned int size);
  inline void adoptTokens(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>> disownTokens();
404

405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(LexedTokens::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(LexedTokens::Builder builder) {
  return ::capnp::_::structString<LexedTokens>(builder._builder.asReader());
}

class LexedStatements::Reader {
public:
  typedef LexedStatements Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

  inline size_t totalSizeInWords() const {
    return _reader.totalSize() / ::capnp::WORDS;
  }

  inline bool hasStatements() const;
  inline  ::capnp::List< ::capnp::compiler::Statement>::Reader getStatements() const;
430

431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(LexedStatements::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(LexedStatements::Reader reader) {
  return ::capnp::_::structString<LexedStatements>(reader._reader);
}

class LexedStatements::Builder {
public:
  typedef LexedStatements Builds;

452 453 454
  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
455 456 457 458 459 460 461 462
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

  inline size_t totalSizeInWords() { return asReader().totalSizeInWords(); }

  inline bool hasStatements();
  inline  ::capnp::List< ::capnp::compiler::Statement>::Builder getStatements();
463
  inline void setStatements( ::capnp::List< ::capnp::compiler::Statement>::Reader value);
464 465 466
  inline  ::capnp::List< ::capnp::compiler::Statement>::Builder initStatements(unsigned int size);
  inline void adoptStatements(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>> disownStatements();
467

468 469 470 471 472 473 474 475 476 477 478 479
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(LexedStatements::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(LexedStatements::Builder builder) {
  return ::capnp::_::structString<LexedStatements>(builder._builder.asReader());
}

480
// =======================================================================================
481

482
inline Token::Which Token::Reader::which() const {
483 484
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
485
inline Token::Which Token::Builder::which() {
486 487 488
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

489 490 491 492 493 494
inline bool Token::Reader::isIdentifier() const {
  return which() == Token::IDENTIFIER;
}
inline bool Token::Builder::isIdentifier() {
  return which() == Token::IDENTIFIER;
}
495
inline bool Token::Reader::hasIdentifier() const {
496
  if (which() != Token::IDENTIFIER) return false;
497 498
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
499
inline bool Token::Builder::hasIdentifier() {
500
  if (which() != Token::IDENTIFIER) return false;
501 502
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
503 504
inline  ::capnp::Text::Reader Token::Reader::getIdentifier() const {
  KJ_IREQUIRE(which() == Token::IDENTIFIER,
505 506 507 508
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _reader, 0 * ::capnp::POINTERS);
}
509 510
inline  ::capnp::Text::Builder Token::Builder::getIdentifier() {
  KJ_IREQUIRE(which() == Token::IDENTIFIER,
511 512 513 514
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _builder, 0 * ::capnp::POINTERS);
}
515 516 517
inline void Token::Builder::setIdentifier( ::capnp::Text::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::IDENTIFIER);
518 519 520
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
521 522 523
inline  ::capnp::Text::Builder Token::Builder::initIdentifier(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::IDENTIFIER);
524 525 526
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
527
inline void Token::Builder::adoptIdentifier(
528
    ::capnp::Orphan< ::capnp::Text>&& value) {
529 530
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::IDENTIFIER);
531 532 533
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
534 535
inline ::capnp::Orphan< ::capnp::Text> Token::Builder::disownIdentifier() {
  KJ_IREQUIRE(which() == Token::IDENTIFIER,
536 537 538 539 540
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

541 542 543 544 545 546
inline bool Token::Reader::isStringLiteral() const {
  return which() == Token::STRING_LITERAL;
}
inline bool Token::Builder::isStringLiteral() {
  return which() == Token::STRING_LITERAL;
}
547
inline bool Token::Reader::hasStringLiteral() const {
548
  if (which() != Token::STRING_LITERAL) return false;
549 550
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
551
inline bool Token::Builder::hasStringLiteral() {
552
  if (which() != Token::STRING_LITERAL) return false;
553 554
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
555 556
inline  ::capnp::Text::Reader Token::Reader::getStringLiteral() const {
  KJ_IREQUIRE(which() == Token::STRING_LITERAL,
557 558 559 560
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _reader, 0 * ::capnp::POINTERS);
}
561 562
inline  ::capnp::Text::Builder Token::Builder::getStringLiteral() {
  KJ_IREQUIRE(which() == Token::STRING_LITERAL,
563 564 565 566
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _builder, 0 * ::capnp::POINTERS);
}
567 568 569
inline void Token::Builder::setStringLiteral( ::capnp::Text::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::STRING_LITERAL);
570 571 572
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
573 574 575
inline  ::capnp::Text::Builder Token::Builder::initStringLiteral(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::STRING_LITERAL);
576 577 578
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
579
inline void Token::Builder::adoptStringLiteral(
580
    ::capnp::Orphan< ::capnp::Text>&& value) {
581 582
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::STRING_LITERAL);
583 584 585
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
586 587
inline ::capnp::Orphan< ::capnp::Text> Token::Builder::disownStringLiteral() {
  KJ_IREQUIRE(which() == Token::STRING_LITERAL,
588 589 590 591 592
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

593 594 595 596 597 598
inline bool Token::Reader::isIntegerLiteral() const {
  return which() == Token::INTEGER_LITERAL;
}
inline bool Token::Builder::isIntegerLiteral() {
  return which() == Token::INTEGER_LITERAL;
}
599
inline bool Token::Reader::hasIntegerLiteral() const {
600
  if (which() != Token::INTEGER_LITERAL) return false;
601 602 603
  return _reader.hasDataField< ::uint64_t>(1 * ::capnp::ELEMENTS);
}

604
inline bool Token::Builder::hasIntegerLiteral() {
605
  if (which() != Token::INTEGER_LITERAL) return false;
606 607
  return _builder.hasDataField< ::uint64_t>(1 * ::capnp::ELEMENTS);
}
608 609
inline  ::uint64_t Token::Reader::getIntegerLiteral() const {
  KJ_IREQUIRE(which() == Token::INTEGER_LITERAL,
610 611 612 613 614
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS);
}

615 616
inline  ::uint64_t Token::Builder::getIntegerLiteral() {
  KJ_IREQUIRE(which() == Token::INTEGER_LITERAL,
617 618 619 620
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS);
}
621 622 623
inline void Token::Builder::setIntegerLiteral( ::uint64_t value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::INTEGER_LITERAL);
624 625 626 627
  _builder.setDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS, value);
}

628 629 630 631 632 633
inline bool Token::Reader::isFloatLiteral() const {
  return which() == Token::FLOAT_LITERAL;
}
inline bool Token::Builder::isFloatLiteral() {
  return which() == Token::FLOAT_LITERAL;
}
634
inline bool Token::Reader::hasFloatLiteral() const {
635
  if (which() != Token::FLOAT_LITERAL) return false;
636 637 638
  return _reader.hasDataField<double>(1 * ::capnp::ELEMENTS);
}

639
inline bool Token::Builder::hasFloatLiteral() {
640
  if (which() != Token::FLOAT_LITERAL) return false;
641 642
  return _builder.hasDataField<double>(1 * ::capnp::ELEMENTS);
}
643 644
inline double Token::Reader::getFloatLiteral() const {
  KJ_IREQUIRE(which() == Token::FLOAT_LITERAL,
645 646 647 648 649
              "Must check which() before get()ing a union member.");
  return _reader.getDataField<double>(
      1 * ::capnp::ELEMENTS);
}

650 651
inline double Token::Builder::getFloatLiteral() {
  KJ_IREQUIRE(which() == Token::FLOAT_LITERAL,
652 653 654 655
              "Must check which() before get()ing a union member.");
  return _builder.getDataField<double>(
      1 * ::capnp::ELEMENTS);
}
656 657 658
inline void Token::Builder::setFloatLiteral(double value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::FLOAT_LITERAL);
659 660 661 662
  _builder.setDataField<double>(
      1 * ::capnp::ELEMENTS, value);
}

663 664 665 666 667 668
inline bool Token::Reader::isOperator() const {
  return which() == Token::OPERATOR;
}
inline bool Token::Builder::isOperator() {
  return which() == Token::OPERATOR;
}
669
inline bool Token::Reader::hasOperator() const {
670
  if (which() != Token::OPERATOR) return false;
671 672
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
673
inline bool Token::Builder::hasOperator() {
674
  if (which() != Token::OPERATOR) return false;
675 676
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
677 678
inline  ::capnp::Text::Reader Token::Reader::getOperator() const {
  KJ_IREQUIRE(which() == Token::OPERATOR,
679 680 681 682
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _reader, 0 * ::capnp::POINTERS);
}
683 684
inline  ::capnp::Text::Builder Token::Builder::getOperator() {
  KJ_IREQUIRE(which() == Token::OPERATOR,
685 686 687 688
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _builder, 0 * ::capnp::POINTERS);
}
689 690 691
inline void Token::Builder::setOperator( ::capnp::Text::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::OPERATOR);
692 693 694
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
695 696 697
inline  ::capnp::Text::Builder Token::Builder::initOperator(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::OPERATOR);
698 699 700
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
701
inline void Token::Builder::adoptOperator(
702
    ::capnp::Orphan< ::capnp::Text>&& value) {
703 704
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::OPERATOR);
705 706 707
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
708 709
inline ::capnp::Orphan< ::capnp::Text> Token::Builder::disownOperator() {
  KJ_IREQUIRE(which() == Token::OPERATOR,
710 711 712 713 714
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

715 716 717 718 719 720
inline bool Token::Reader::isParenthesizedList() const {
  return which() == Token::PARENTHESIZED_LIST;
}
inline bool Token::Builder::isParenthesizedList() {
  return which() == Token::PARENTHESIZED_LIST;
}
721
inline bool Token::Reader::hasParenthesizedList() const {
722
  if (which() != Token::PARENTHESIZED_LIST) return false;
723 724
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
725
inline bool Token::Builder::hasParenthesizedList() {
726
  if (which() != Token::PARENTHESIZED_LIST) return false;
727 728
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
729 730
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader Token::Reader::getParenthesizedList() const {
  KJ_IREQUIRE(which() == Token::PARENTHESIZED_LIST,
731 732 733 734
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
735 736
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder Token::Builder::getParenthesizedList() {
  KJ_IREQUIRE(which() == Token::PARENTHESIZED_LIST,
737 738 739 740
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
741 742 743
inline void Token::Builder::setParenthesizedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::PARENTHESIZED_LIST);
744 745 746
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
747 748 749
inline void Token::Builder::setParenthesizedList(std::initializer_list< ::capnp::List< ::capnp::compiler::Token>::Reader> value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::PARENTHESIZED_LIST);
750 751 752
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
753 754 755
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder Token::Builder::initParenthesizedList(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::PARENTHESIZED_LIST);
756 757 758
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
759
inline void Token::Builder::adoptParenthesizedList(
760
    ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>&& value) {
761 762
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::PARENTHESIZED_LIST);
763 764 765
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
766 767
inline ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>> Token::Builder::disownParenthesizedList() {
  KJ_IREQUIRE(which() == Token::PARENTHESIZED_LIST,
768 769 770 771 772
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

773 774 775 776 777 778
inline bool Token::Reader::isBracketedList() const {
  return which() == Token::BRACKETED_LIST;
}
inline bool Token::Builder::isBracketedList() {
  return which() == Token::BRACKETED_LIST;
}
779
inline bool Token::Reader::hasBracketedList() const {
780
  if (which() != Token::BRACKETED_LIST) return false;
781 782
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
783
inline bool Token::Builder::hasBracketedList() {
784
  if (which() != Token::BRACKETED_LIST) return false;
785 786
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
787 788
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader Token::Reader::getBracketedList() const {
  KJ_IREQUIRE(which() == Token::BRACKETED_LIST,
789 790 791 792
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
793 794
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder Token::Builder::getBracketedList() {
  KJ_IREQUIRE(which() == Token::BRACKETED_LIST,
795 796 797 798
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
799 800 801
inline void Token::Builder::setBracketedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::BRACKETED_LIST);
802 803 804
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
805 806 807
inline void Token::Builder::setBracketedList(std::initializer_list< ::capnp::List< ::capnp::compiler::Token>::Reader> value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::BRACKETED_LIST);
808 809 810
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
811 812 813
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder Token::Builder::initBracketedList(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::BRACKETED_LIST);
814 815 816
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
817
inline void Token::Builder::adoptBracketedList(
818
    ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>&& value) {
819 820
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::BRACKETED_LIST);
821 822 823
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
824 825
inline ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>> Token::Builder::disownBracketedList() {
  KJ_IREQUIRE(which() == Token::BRACKETED_LIST,
826 827 828 829 830
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872
inline bool Token::Reader::hasStartByte() const {
  return _reader.hasDataField< ::uint32_t>(1 * ::capnp::ELEMENTS);
}

inline bool Token::Builder::hasStartByte() {
  return _builder.hasDataField< ::uint32_t>(1 * ::capnp::ELEMENTS);
}
inline  ::uint32_t Token::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}

inline  ::uint32_t Token::Builder::getStartByte() {
  return _builder.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}
inline void Token::Builder::setStartByte( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS, value);
}

inline bool Token::Reader::hasEndByte() const {
  return _reader.hasDataField< ::uint32_t>(4 * ::capnp::ELEMENTS);
}

inline bool Token::Builder::hasEndByte() {
  return _builder.hasDataField< ::uint32_t>(4 * ::capnp::ELEMENTS);
}
inline  ::uint32_t Token::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      4 * ::capnp::ELEMENTS);
}

inline  ::uint32_t Token::Builder::getEndByte() {
  return _builder.getDataField< ::uint32_t>(
      4 * ::capnp::ELEMENTS);
}
inline void Token::Builder::setEndByte( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      4 * ::capnp::ELEMENTS, value);
}

873 874 875 876 877 878 879
inline Statement::Which Statement::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline Statement::Which Statement::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911
inline bool Statement::Reader::hasTokens() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Statement::Builder::hasTokens() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Token>::Reader Statement::Reader::getTokens() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder Statement::Builder::getTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Statement::Builder::setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder Statement::Builder::initTokens(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void Statement::Builder::adoptTokens(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>> Statement::Builder::disownTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952
inline bool Statement::Reader::isLine() const {
  return which() == Statement::LINE;
}
inline bool Statement::Builder::isLine() {
  return which() == Statement::LINE;
}
inline bool Statement::Reader::hasLine() const {
  if (which() != Statement::LINE) return false;
  return _reader.hasDataField< ::capnp::Void>(0 * ::capnp::ELEMENTS);
}

inline bool Statement::Builder::hasLine() {
  if (which() != Statement::LINE) return false;
  return _builder.hasDataField< ::capnp::Void>(0 * ::capnp::ELEMENTS);
}
inline  ::capnp::Void Statement::Reader::getLine() const {
  KJ_IREQUIRE(which() == Statement::LINE,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Statement::Builder::getLine() {
  KJ_IREQUIRE(which() == Statement::LINE,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
inline void Statement::Builder::setLine( ::capnp::Void value) {
  _builder.setDataField<Statement::Which>(
      0 * ::capnp::ELEMENTS, Statement::LINE);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline bool Statement::Reader::isBlock() const {
  return which() == Statement::BLOCK;
}
inline bool Statement::Builder::isBlock() {
  return which() == Statement::BLOCK;
}
953
inline bool Statement::Reader::hasBlock() const {
954 955
  if (which() != Statement::BLOCK) return false;
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
956 957
}
inline bool Statement::Builder::hasBlock() {
958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977
  if (which() != Statement::BLOCK) return false;
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Reader Statement::Reader::getBlock() const {
  KJ_IREQUIRE(which() == Statement::BLOCK,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::get(
      _reader, 1 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Builder Statement::Builder::getBlock() {
  KJ_IREQUIRE(which() == Statement::BLOCK,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::get(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Statement::Builder::setBlock( ::capnp::List< ::capnp::compiler::Statement>::Reader value) {
  _builder.setDataField<Statement::Which>(
      0 * ::capnp::ELEMENTS, Statement::BLOCK);
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::set(
      _builder, 1 * ::capnp::POINTERS, value);
978
}
979 980 981 982 983
inline  ::capnp::List< ::capnp::compiler::Statement>::Builder Statement::Builder::initBlock(unsigned int size) {
  _builder.setDataField<Statement::Which>(
      0 * ::capnp::ELEMENTS, Statement::BLOCK);
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::init(
      _builder, 1 * ::capnp::POINTERS, size);
984
}
985 986 987 988 989 990
inline void Statement::Builder::adoptBlock(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>>&& value) {
  _builder.setDataField<Statement::Which>(
      0 * ::capnp::ELEMENTS, Statement::BLOCK);
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
991
}
992 993 994 995 996
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>> Statement::Builder::disownBlock() {
  KJ_IREQUIRE(which() == Statement::BLOCK,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::disown(
      _builder, 1 * ::capnp::POINTERS);
997
}
998

999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029
inline bool Statement::Reader::hasDocComment() const {
  return !_reader.isPointerFieldNull(2 * ::capnp::POINTERS);
}
inline bool Statement::Builder::hasDocComment() {
  return !_builder.isPointerFieldNull(2 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Reader Statement::Reader::getDocComment() const {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _reader, 2 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Builder Statement::Builder::getDocComment() {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _builder, 2 * ::capnp::POINTERS);
}
inline void Statement::Builder::setDocComment( ::capnp::Text::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
      _builder, 2 * ::capnp::POINTERS, value);
}
inline  ::capnp::Text::Builder Statement::Builder::initDocComment(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
      _builder, 2 * ::capnp::POINTERS, size);
}
inline void Statement::Builder::adoptDocComment(
    ::capnp::Orphan< ::capnp::Text>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
      _builder, 2 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::Text> Statement::Builder::disownDocComment() {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
      _builder, 2 * ::capnp::POINTERS);
}
1030

1031 1032 1033 1034 1035 1036 1037
inline bool Statement::Reader::hasStartByte() const {
  return _reader.hasDataField< ::uint32_t>(1 * ::capnp::ELEMENTS);
}

inline bool Statement::Builder::hasStartByte() {
  return _builder.hasDataField< ::uint32_t>(1 * ::capnp::ELEMENTS);
}
1038 1039 1040 1041
inline  ::uint32_t Statement::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}
1042

1043 1044 1045 1046 1047 1048 1049 1050
inline  ::uint32_t Statement::Builder::getStartByte() {
  return _builder.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}
inline void Statement::Builder::setStartByte( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS, value);
}
1051

1052 1053 1054 1055 1056 1057 1058
inline bool Statement::Reader::hasEndByte() const {
  return _reader.hasDataField< ::uint32_t>(2 * ::capnp::ELEMENTS);
}

inline bool Statement::Builder::hasEndByte() {
  return _builder.hasDataField< ::uint32_t>(2 * ::capnp::ELEMENTS);
}
1059 1060 1061 1062
inline  ::uint32_t Statement::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS);
}
1063

1064 1065 1066 1067 1068 1069 1070 1071
inline  ::uint32_t Statement::Builder::getEndByte() {
  return _builder.getDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS);
}
inline void Statement::Builder::setEndByte( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS, value);
}
1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138

inline bool LexedTokens::Reader::hasTokens() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool LexedTokens::Builder::hasTokens() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Token>::Reader LexedTokens::Reader::getTokens() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder LexedTokens::Builder::getTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void LexedTokens::Builder::setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder LexedTokens::Builder::initTokens(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void LexedTokens::Builder::adoptTokens(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>> LexedTokens::Builder::disownTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool LexedStatements::Reader::hasStatements() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool LexedStatements::Builder::hasStatements() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Reader LexedStatements::Reader::getStatements() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Builder LexedStatements::Builder::getStatements() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void LexedStatements::Builder::setStatements( ::capnp::List< ::capnp::compiler::Statement>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Builder LexedStatements::Builder::initStatements(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void LexedStatements::Builder::adoptStatements(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>> LexedStatements::Builder::disownStatements() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

}  // namespace
}  // namespace
1139 1140

#endif  // CAPNP_INCLUDED_a73956d2621fc3ee_