lexer.capnp.h 44.7 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 != 5000
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
namespace capnp {
namespace compiler {

struct Token {
  Token() = delete;

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

struct Statement {
  Statement() = delete;

  class Reader;
  class Builder;
39
  class Pipeline;
40
  enum Which: uint16_t {
41 42
    LINE,
    BLOCK,
43 44 45 46 47 48 49 50
  };
};

struct LexedTokens {
  LexedTokens() = delete;

  class Reader;
  class Builder;
51
  class Pipeline;
52 53 54 55 56 57 58
};

struct LexedStatements {
  LexedStatements() = delete;

  class Reader;
  class Builder;
59
  class Pipeline;
60 61 62 63 64
};

}  // namespace
}  // namespace

65 66
// =======================================================================================

67 68
namespace capnp {
namespace schemas {
69

70 71 72 73
extern const ::capnp::_::RawSchema s_91cc55cd57de5419;
extern const ::capnp::_::RawSchema s_c6725e678d60fa37;
extern const ::capnp::_::RawSchema s_9e69a92512b19d18;
extern const ::capnp::_::RawSchema s_a11f97b9d6c73dd4;
74

75 76
}  // namespace schemas
namespace _ {  // private
77

78 79 80 81 82 83 84 85 86 87 88 89
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);
90

91
}  // namespace _ (private)
92 93 94
}  // namespace capnp

// =======================================================================================
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) {}

106 107
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
108 109
  }

110
  inline Which which() const;
111
  inline bool isIdentifier() const;
112 113 114
  inline bool hasIdentifier() const;
  inline  ::capnp::Text::Reader getIdentifier() const;

115
  inline bool isStringLiteral() const;
116 117 118
  inline bool hasStringLiteral() const;
  inline  ::capnp::Text::Reader getStringLiteral() const;

119
  inline bool isIntegerLiteral() const;
120 121
  inline  ::uint64_t getIntegerLiteral() const;

122
  inline bool isFloatLiteral() const;
123 124
  inline double getFloatLiteral() const;

125
  inline bool isOperator() const;
126 127 128
  inline bool hasOperator() const;
  inline  ::capnp::Text::Reader getOperator() const;

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

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

137 138 139 140
  inline  ::uint32_t getStartByte() 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 ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
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 190 191
  inline  ::uint64_t getIntegerLiteral();
  inline void setIntegerLiteral( ::uint64_t value);

192
  inline bool isFloatLiteral();
193 194 195
  inline double getFloatLiteral();
  inline void setFloatLiteral(double value);

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

204
  inline bool isParenthesizedList();
205 206
  inline bool hasParenthesizedList();
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder getParenthesizedList();
207
  inline void setParenthesizedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value);
208
  inline void setParenthesizedList(::kj::ArrayPtr<const  ::capnp::List< ::capnp::compiler::Token>::Reader> value);
209 210 211 212
  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();

213
  inline bool isBracketedList();
214 215
  inline bool hasBracketedList();
  inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder getBracketedList();
216
  inline void setBracketedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value);
217
  inline void setBracketedList(::kj::ArrayPtr<const  ::capnp::List< ::capnp::compiler::Token>::Reader> value);
218 219 220
  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();
221

222 223 224 225 226 227
  inline  ::uint32_t getStartByte();
  inline void setStartByte( ::uint32_t value);

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

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

236 237
inline ::kj::StringTree KJ_STRINGIFY(Token::Builder builder) {
  return ::capnp::_::structString<Token>(builder._builder.asReader());
238 239
}

240 241 242 243
class Token::Pipeline {
public:
  typedef Token Pipelines;

244
  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
245
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
246 247 248
      : _typeless(kj::mv(typeless)) {}

private:
249
  ::capnp::AnyPointer::Pipeline _typeless;
250 251 252 253
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

254 255 256 257 258 259 260
class Statement::Reader {
public:
  typedef Statement Reads;

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

261 262
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
263 264
  }

265
  inline Which which() const;
266 267 268
  inline bool hasTokens() const;
  inline  ::capnp::List< ::capnp::compiler::Token>::Reader getTokens() const;

269 270 271 272
  inline bool isLine() const;
  inline  ::capnp::Void getLine() const;

  inline bool isBlock() const;
273
  inline bool hasBlock() const;
274
  inline  ::capnp::List< ::capnp::compiler::Statement>::Reader getBlock() const;
275

276 277 278 279 280 281
  inline bool hasDocComment() const;
  inline  ::capnp::Text::Reader getDocComment() const;

  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;
282

283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
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;

304 305 306
  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
307 308 309 310
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

311
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
312

313
  inline Which which();
314 315
  inline bool hasTokens();
  inline  ::capnp::List< ::capnp::compiler::Token>::Builder getTokens();
316
  inline void setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value);
317 318 319 320
  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();

321 322
  inline bool isLine();
  inline  ::capnp::Void getLine();
323
  inline void setLine( ::capnp::Void value = ::capnp::VOID);
324 325

  inline bool isBlock();
326
  inline bool hasBlock();
327 328 329 330 331
  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();
332

333 334
  inline bool hasDocComment();
  inline  ::capnp::Text::Builder getDocComment();
335
  inline void setDocComment( ::capnp::Text::Reader value);
336 337 338 339 340 341 342 343 344
  inline  ::capnp::Text::Builder initDocComment(unsigned int size);
  inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownDocComment();

  inline  ::uint32_t getStartByte();
  inline void setStartByte( ::uint32_t value);

  inline  ::uint32_t getEndByte();
  inline void setEndByte( ::uint32_t value);
345

346 347 348 349 350 351 352 353 354 355 356 357
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());
}

358 359 360 361
class Statement::Pipeline {
public:
  typedef Statement Pipelines;

362
  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
363
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
364 365 366
      : _typeless(kj::mv(typeless)) {}

private:
367
  ::capnp::AnyPointer::Pipeline _typeless;
368 369 370 371
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

372 373 374 375 376 377 378
class LexedTokens::Reader {
public:
  typedef LexedTokens Reads;

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

379 380
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
381 382 383 384
  }

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

386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
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;

407 408 409
  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
410 411 412 413
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

414
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
415 416 417

  inline bool hasTokens();
  inline  ::capnp::List< ::capnp::compiler::Token>::Builder getTokens();
418
  inline void setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value);
419 420 421
  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();
422

423 424 425 426 427 428 429 430 431 432 433 434
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());
}

435 436 437 438
class LexedTokens::Pipeline {
public:
  typedef LexedTokens Pipelines;

439
  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
440
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
441 442 443
      : _typeless(kj::mv(typeless)) {}

private:
444
  ::capnp::AnyPointer::Pipeline _typeless;
445 446 447 448
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

449 450 451 452 453 454 455
class LexedStatements::Reader {
public:
  typedef LexedStatements Reads;

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

456 457
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
458 459 460 461
  }

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

463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
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;

484 485 486
  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
487 488 489 490
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

491
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
492 493 494

  inline bool hasStatements();
  inline  ::capnp::List< ::capnp::compiler::Statement>::Builder getStatements();
495
  inline void setStatements( ::capnp::List< ::capnp::compiler::Statement>::Reader value);
496 497 498
  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();
499

500 501 502 503 504 505 506 507 508 509 510 511
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());
}

512 513 514 515
class LexedStatements::Pipeline {
public:
  typedef LexedStatements Pipelines;

516
  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
517
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
518 519 520
      : _typeless(kj::mv(typeless)) {}

private:
521
  ::capnp::AnyPointer::Pipeline _typeless;
522 523 524 525
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

526
// =======================================================================================
527

528
inline Token::Which Token::Reader::which() const {
529 530
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
531
inline Token::Which Token::Builder::which() {
532 533 534
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

535 536 537 538 539 540
inline bool Token::Reader::isIdentifier() const {
  return which() == Token::IDENTIFIER;
}
inline bool Token::Builder::isIdentifier() {
  return which() == Token::IDENTIFIER;
}
541
inline bool Token::Reader::hasIdentifier() const {
542
  if (which() != Token::IDENTIFIER) return false;
543
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
544
}
545
inline bool Token::Builder::hasIdentifier() {
546
  if (which() != Token::IDENTIFIER) return false;
547
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
548
}
549 550
inline  ::capnp::Text::Reader Token::Reader::getIdentifier() const {
  KJ_IREQUIRE(which() == Token::IDENTIFIER,
551 552
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
553
      _reader.getPointerField(0 * ::capnp::POINTERS));
554
}
555 556
inline  ::capnp::Text::Builder Token::Builder::getIdentifier() {
  KJ_IREQUIRE(which() == Token::IDENTIFIER,
557 558
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
559
      _builder.getPointerField(0 * ::capnp::POINTERS));
560
}
561 562 563
inline void Token::Builder::setIdentifier( ::capnp::Text::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::IDENTIFIER);
564
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
565
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
566
}
567 568 569
inline  ::capnp::Text::Builder Token::Builder::initIdentifier(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::IDENTIFIER);
570
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
571
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
572
}
573
inline void Token::Builder::adoptIdentifier(
574
    ::capnp::Orphan< ::capnp::Text>&& value) {
575 576
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::IDENTIFIER);
577
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
578
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
579
}
580 581
inline ::capnp::Orphan< ::capnp::Text> Token::Builder::disownIdentifier() {
  KJ_IREQUIRE(which() == Token::IDENTIFIER,
582 583
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
584
      _builder.getPointerField(0 * ::capnp::POINTERS));
585 586
}

587 588 589 590 591 592
inline bool Token::Reader::isStringLiteral() const {
  return which() == Token::STRING_LITERAL;
}
inline bool Token::Builder::isStringLiteral() {
  return which() == Token::STRING_LITERAL;
}
593
inline bool Token::Reader::hasStringLiteral() const {
594
  if (which() != Token::STRING_LITERAL) return false;
595
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
596
}
597
inline bool Token::Builder::hasStringLiteral() {
598
  if (which() != Token::STRING_LITERAL) return false;
599
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
600
}
601 602
inline  ::capnp::Text::Reader Token::Reader::getStringLiteral() const {
  KJ_IREQUIRE(which() == Token::STRING_LITERAL,
603 604
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
605
      _reader.getPointerField(0 * ::capnp::POINTERS));
606
}
607 608
inline  ::capnp::Text::Builder Token::Builder::getStringLiteral() {
  KJ_IREQUIRE(which() == Token::STRING_LITERAL,
609 610
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
611
      _builder.getPointerField(0 * ::capnp::POINTERS));
612
}
613 614 615
inline void Token::Builder::setStringLiteral( ::capnp::Text::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::STRING_LITERAL);
616
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
617
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
618
}
619 620 621
inline  ::capnp::Text::Builder Token::Builder::initStringLiteral(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::STRING_LITERAL);
622
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
623
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
624
}
625
inline void Token::Builder::adoptStringLiteral(
626
    ::capnp::Orphan< ::capnp::Text>&& value) {
627 628
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::STRING_LITERAL);
629
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
630
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
631
}
632 633
inline ::capnp::Orphan< ::capnp::Text> Token::Builder::disownStringLiteral() {
  KJ_IREQUIRE(which() == Token::STRING_LITERAL,
634 635
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
636
      _builder.getPointerField(0 * ::capnp::POINTERS));
637 638
}

639 640 641 642 643 644
inline bool Token::Reader::isIntegerLiteral() const {
  return which() == Token::INTEGER_LITERAL;
}
inline bool Token::Builder::isIntegerLiteral() {
  return which() == Token::INTEGER_LITERAL;
}
645 646
inline  ::uint64_t Token::Reader::getIntegerLiteral() const {
  KJ_IREQUIRE(which() == Token::INTEGER_LITERAL,
647 648 649 650 651
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS);
}

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

665 666 667 668 669 670
inline bool Token::Reader::isFloatLiteral() const {
  return which() == Token::FLOAT_LITERAL;
}
inline bool Token::Builder::isFloatLiteral() {
  return which() == Token::FLOAT_LITERAL;
}
671 672
inline double Token::Reader::getFloatLiteral() const {
  KJ_IREQUIRE(which() == Token::FLOAT_LITERAL,
673 674 675 676 677
              "Must check which() before get()ing a union member.");
  return _reader.getDataField<double>(
      1 * ::capnp::ELEMENTS);
}

678 679
inline double Token::Builder::getFloatLiteral() {
  KJ_IREQUIRE(which() == Token::FLOAT_LITERAL,
680 681 682 683
              "Must check which() before get()ing a union member.");
  return _builder.getDataField<double>(
      1 * ::capnp::ELEMENTS);
}
684 685 686
inline void Token::Builder::setFloatLiteral(double value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::FLOAT_LITERAL);
687 688 689 690
  _builder.setDataField<double>(
      1 * ::capnp::ELEMENTS, value);
}

691 692 693 694 695 696
inline bool Token::Reader::isOperator() const {
  return which() == Token::OPERATOR;
}
inline bool Token::Builder::isOperator() {
  return which() == Token::OPERATOR;
}
697
inline bool Token::Reader::hasOperator() const {
698
  if (which() != Token::OPERATOR) return false;
699
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
700
}
701
inline bool Token::Builder::hasOperator() {
702
  if (which() != Token::OPERATOR) return false;
703
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
704
}
705 706
inline  ::capnp::Text::Reader Token::Reader::getOperator() const {
  KJ_IREQUIRE(which() == Token::OPERATOR,
707 708
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
709
      _reader.getPointerField(0 * ::capnp::POINTERS));
710
}
711 712
inline  ::capnp::Text::Builder Token::Builder::getOperator() {
  KJ_IREQUIRE(which() == Token::OPERATOR,
713 714
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
715
      _builder.getPointerField(0 * ::capnp::POINTERS));
716
}
717 718 719
inline void Token::Builder::setOperator( ::capnp::Text::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::OPERATOR);
720
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
721
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
722
}
723 724 725
inline  ::capnp::Text::Builder Token::Builder::initOperator(unsigned int size) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::OPERATOR);
726
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
727
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
728
}
729
inline void Token::Builder::adoptOperator(
730
    ::capnp::Orphan< ::capnp::Text>&& value) {
731 732
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::OPERATOR);
733
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
734
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
735
}
736 737
inline ::capnp::Orphan< ::capnp::Text> Token::Builder::disownOperator() {
  KJ_IREQUIRE(which() == Token::OPERATOR,
738 739
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
740
      _builder.getPointerField(0 * ::capnp::POINTERS));
741 742
}

743 744 745 746 747 748
inline bool Token::Reader::isParenthesizedList() const {
  return which() == Token::PARENTHESIZED_LIST;
}
inline bool Token::Builder::isParenthesizedList() {
  return which() == Token::PARENTHESIZED_LIST;
}
749
inline bool Token::Reader::hasParenthesizedList() const {
750
  if (which() != Token::PARENTHESIZED_LIST) return false;
751
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
752
}
753
inline bool Token::Builder::hasParenthesizedList() {
754
  if (which() != Token::PARENTHESIZED_LIST) return false;
755
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
756
}
757 758
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader Token::Reader::getParenthesizedList() const {
  KJ_IREQUIRE(which() == Token::PARENTHESIZED_LIST,
759 760
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
761
      _reader.getPointerField(0 * ::capnp::POINTERS));
762
}
763 764
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder Token::Builder::getParenthesizedList() {
  KJ_IREQUIRE(which() == Token::PARENTHESIZED_LIST,
765 766
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
767
      _builder.getPointerField(0 * ::capnp::POINTERS));
768
}
769 770 771
inline void Token::Builder::setParenthesizedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::PARENTHESIZED_LIST);
772
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
773
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
774
}
775
inline void Token::Builder::setParenthesizedList(::kj::ArrayPtr<const  ::capnp::List< ::capnp::compiler::Token>::Reader> value) {
776 777
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::PARENTHESIZED_LIST);
778
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
779
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
780
}
781 782 783
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);
784
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::init(
785
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
786
}
787
inline void Token::Builder::adoptParenthesizedList(
788
    ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>&& value) {
789 790
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::PARENTHESIZED_LIST);
791
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::adopt(
792
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
793
}
794 795
inline ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>> Token::Builder::disownParenthesizedList() {
  KJ_IREQUIRE(which() == Token::PARENTHESIZED_LIST,
796 797
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::disown(
798
      _builder.getPointerField(0 * ::capnp::POINTERS));
799 800
}

801 802 803 804 805 806
inline bool Token::Reader::isBracketedList() const {
  return which() == Token::BRACKETED_LIST;
}
inline bool Token::Builder::isBracketedList() {
  return which() == Token::BRACKETED_LIST;
}
807
inline bool Token::Reader::hasBracketedList() const {
808
  if (which() != Token::BRACKETED_LIST) return false;
809
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
810
}
811
inline bool Token::Builder::hasBracketedList() {
812
  if (which() != Token::BRACKETED_LIST) return false;
813
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
814
}
815 816
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader Token::Reader::getBracketedList() const {
  KJ_IREQUIRE(which() == Token::BRACKETED_LIST,
817 818
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
819
      _reader.getPointerField(0 * ::capnp::POINTERS));
820
}
821 822
inline  ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Builder Token::Builder::getBracketedList() {
  KJ_IREQUIRE(which() == Token::BRACKETED_LIST,
823 824
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::get(
825
      _builder.getPointerField(0 * ::capnp::POINTERS));
826
}
827 828 829
inline void Token::Builder::setBracketedList( ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>::Reader value) {
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::BRACKETED_LIST);
830
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
831
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
832
}
833
inline void Token::Builder::setBracketedList(::kj::ArrayPtr<const  ::capnp::List< ::capnp::compiler::Token>::Reader> value) {
834 835
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::BRACKETED_LIST);
836
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::set(
837
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
838
}
839 840 841
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);
842
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::init(
843
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
844
}
845
inline void Token::Builder::adoptBracketedList(
846
    ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>&& value) {
847 848
  _builder.setDataField<Token::Which>(
      0 * ::capnp::ELEMENTS, Token::BRACKETED_LIST);
849
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::adopt(
850
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
851
}
852 853
inline ::capnp::Orphan< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>> Token::Builder::disownBracketedList() {
  KJ_IREQUIRE(which() == Token::BRACKETED_LIST,
854 855
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::List< ::capnp::compiler::Token>>>::disown(
856
      _builder.getPointerField(0 * ::capnp::POINTERS));
857 858
}

859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886
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  ::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);
}

887 888 889 890 891 892 893
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);
}

894
inline bool Statement::Reader::hasTokens() const {
895
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
896 897
}
inline bool Statement::Builder::hasTokens() {
898
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
899 900 901
}
inline  ::capnp::List< ::capnp::compiler::Token>::Reader Statement::Reader::getTokens() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
902
      _reader.getPointerField(0 * ::capnp::POINTERS));
903 904 905
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder Statement::Builder::getTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
906
      _builder.getPointerField(0 * ::capnp::POINTERS));
907 908 909
}
inline void Statement::Builder::setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::set(
910
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
911 912 913
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder Statement::Builder::initTokens(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::init(
914
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
915 916 917 918
}
inline void Statement::Builder::adoptTokens(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::adopt(
919
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
920 921 922
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>> Statement::Builder::disownTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::disown(
923
      _builder.getPointerField(0 * ::capnp::POINTERS));
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 953 954 955 956 957
inline bool Statement::Reader::isLine() const {
  return which() == Statement::LINE;
}
inline bool Statement::Builder::isLine() {
  return which() == Statement::LINE;
}
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;
}
958
inline bool Statement::Reader::hasBlock() const {
959
  if (which() != Statement::BLOCK) return false;
960
  return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull();
961 962
}
inline bool Statement::Builder::hasBlock() {
963
  if (which() != Statement::BLOCK) return false;
964
  return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull();
965 966 967 968 969
}
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(
970
      _reader.getPointerField(1 * ::capnp::POINTERS));
971 972 973 974 975
}
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(
976
      _builder.getPointerField(1 * ::capnp::POINTERS));
977 978 979 980 981
}
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(
982
      _builder.getPointerField(1 * ::capnp::POINTERS), value);
983
}
984 985 986 987
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(
988
      _builder.getPointerField(1 * ::capnp::POINTERS), size);
989
}
990 991 992 993 994
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(
995
      _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value));
996
}
997 998 999 1000
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(
1001
      _builder.getPointerField(1 * ::capnp::POINTERS));
1002
}
1003

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

1036 1037 1038 1039
inline  ::uint32_t Statement::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}
1040

1041 1042 1043 1044 1045 1046 1047 1048
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);
}
1049

1050 1051 1052 1053
inline  ::uint32_t Statement::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS);
}
1054

1055 1056 1057 1058 1059 1060 1061 1062
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);
}
1063 1064

inline bool LexedTokens::Reader::hasTokens() const {
1065
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
1066 1067
}
inline bool LexedTokens::Builder::hasTokens() {
1068
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
1069 1070 1071
}
inline  ::capnp::List< ::capnp::compiler::Token>::Reader LexedTokens::Reader::getTokens() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
1072
      _reader.getPointerField(0 * ::capnp::POINTERS));
1073 1074 1075
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder LexedTokens::Builder::getTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::get(
1076
      _builder.getPointerField(0 * ::capnp::POINTERS));
1077 1078 1079
}
inline void LexedTokens::Builder::setTokens( ::capnp::List< ::capnp::compiler::Token>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::set(
1080
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
1081 1082 1083
}
inline  ::capnp::List< ::capnp::compiler::Token>::Builder LexedTokens::Builder::initTokens(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::init(
1084
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
1085 1086 1087 1088
}
inline void LexedTokens::Builder::adoptTokens(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::adopt(
1089
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
1090 1091 1092
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Token>> LexedTokens::Builder::disownTokens() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Token>>::disown(
1093
      _builder.getPointerField(0 * ::capnp::POINTERS));
1094 1095 1096
}

inline bool LexedStatements::Reader::hasStatements() const {
1097
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
1098 1099
}
inline bool LexedStatements::Builder::hasStatements() {
1100
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
1101 1102 1103
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Reader LexedStatements::Reader::getStatements() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::get(
1104
      _reader.getPointerField(0 * ::capnp::POINTERS));
1105 1106 1107
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Builder LexedStatements::Builder::getStatements() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::get(
1108
      _builder.getPointerField(0 * ::capnp::POINTERS));
1109 1110 1111
}
inline void LexedStatements::Builder::setStatements( ::capnp::List< ::capnp::compiler::Statement>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::set(
1112
      _builder.getPointerField(0 * ::capnp::POINTERS), value);
1113 1114 1115
}
inline  ::capnp::List< ::capnp::compiler::Statement>::Builder LexedStatements::Builder::initStatements(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::init(
1116
      _builder.getPointerField(0 * ::capnp::POINTERS), size);
1117 1118 1119 1120
}
inline void LexedStatements::Builder::adoptStatements(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::adopt(
1121
      _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
1122 1123 1124
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Statement>> LexedStatements::Builder::disownStatements() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Statement>>::disown(
1125
      _builder.getPointerField(0 * ::capnp::POINTERS));
1126 1127 1128 1129
}

}  // namespace
}  // namespace
1130 1131

#endif  // CAPNP_INCLUDED_a73956d2621fc3ee_