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

4 5
#ifndef CAPNP_INCLUDED_c56be168dcbbc3c6_
#define CAPNP_INCLUDED_c56be168dcbbc3c6_
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46

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

namespace capnp {
namespace compiler {

struct LocatedText {
  LocatedText() = delete;

  class Reader;
  class Builder;
};

struct LocatedInteger {
  LocatedInteger() = delete;

  class Reader;
  class Builder;
};

struct LocatedFloat {
  LocatedFloat() = delete;

  class Reader;
  class Builder;
};

struct DeclName {
  DeclName() = delete;

  class Reader;
  class Builder;
  struct Base;
};

struct DeclName::Base {
  Base() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
47 48 49
    ABSOLUTE_NAME,
    RELATIVE_NAME,
    IMPORT_NAME,
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
  };
};

struct TypeExpression {
  TypeExpression() = delete;

  class Reader;
  class Builder;
};

struct ValueExpression {
  ValueExpression() = delete;

  class Reader;
  class Builder;
  struct Body;
66
  struct FieldAssignment;
67 68 69 70 71 72 73 74
};

struct ValueExpression::Body {
  Body() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
75 76 77 78 79 80 81 82 83
    UNKNOWN,
    POSITIVE_INT,
    NEGATIVE_INT,
    FLOAT,
    STRING,
    NAME,
    LIST,
    STRUCT_VALUE,
    UNION_VALUE,
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
  };
};

struct ValueExpression::FieldAssignment {
  FieldAssignment() = delete;

  class Reader;
  class Builder;
};

struct Declaration {
  Declaration() = delete;

  class Reader;
  class Builder;
99 100
  struct Id;
  struct Body;
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
  struct AnnotationApplication;
  struct File;
  struct Using;
  struct Const;
  struct Enum;
  struct Enumerant;
  struct Struct;
  struct Field;
  struct Union;
  struct Group;
  struct Interface;
  struct Method;
  struct Annotation;
};

struct Declaration::Id {
  Id() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
122 123 124
    UNSPECIFIED,
    UID,
    ORDINAL,
125
  };
126
};
127

128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
struct Declaration::Body {
  Body() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
    USING_DECL,
    CONST_DECL,
    ENUM_DECL,
    ENUMERANT_DECL,
    STRUCT_DECL,
    FIELD_DECL,
    UNION_DECL,
    INTERFACE_DECL,
    METHOD_DECL,
    ANNOTATION_DECL,
    NAKED_ID,
    NAKED_ANNOTATION,
    GROUP_DECL,
    FILE_DECL,
    BUILTIN_VOID,
    BUILTIN_BOOL,
    BUILTIN_INT8,
    BUILTIN_INT16,
    BUILTIN_INT32,
    BUILTIN_INT64,
    BUILTIN_U_INT8,
    BUILTIN_U_INT16,
    BUILTIN_U_INT32,
    BUILTIN_U_INT64,
    BUILTIN_FLOAT32,
    BUILTIN_FLOAT64,
    BUILTIN_TEXT,
    BUILTIN_DATA,
    BUILTIN_LIST,
    BUILTIN_OBJECT,
  };
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
};

struct Declaration::AnnotationApplication {
  AnnotationApplication() = delete;

  class Reader;
  class Builder;
  struct Value;
};

struct Declaration::AnnotationApplication::Value {
  Value() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
181 182
    NONE,
    EXPRESSION,
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
  };
};

struct Declaration::File {
  File() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Using {
  Using() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Const {
  Const() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Enum {
  Enum() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Enumerant {
  Enumerant() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Struct {
  Struct() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Field {
  Field() = delete;

  class Reader;
  class Builder;
  struct DefaultValue;
};

struct Declaration::Field::DefaultValue {
  DefaultValue() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
242 243
    NONE,
    VALUE,
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
  };
};

struct Declaration::Union {
  Union() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Group {
  Group() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Interface {
  Interface() = delete;

  class Reader;
  class Builder;
};

struct Declaration::Method {
  Method() = delete;

  class Reader;
  class Builder;
  struct ReturnType;
274 275
  struct Param;
};
276

277 278 279 280 281 282 283 284 285
struct Declaration::Method::ReturnType {
  ReturnType() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
    NONE,
    EXPRESSION,
  };
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
};

struct Declaration::Method::Param {
  Param() = delete;

  class Reader;
  class Builder;
  struct DefaultValue;
};

struct Declaration::Method::Param::DefaultValue {
  DefaultValue() = delete;
  class Reader;
  class Builder;

  enum Which: uint16_t {
302 303
    NONE,
    VALUE,
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
  };
};

struct Declaration::Annotation {
  Annotation() = delete;

  class Reader;
  class Builder;
};

struct ParsedFile {
  ParsedFile() = delete;

  class Reader;
  class Builder;
};

}  // namespace
}  // namespace

324 325
// =======================================================================================

326 327
namespace capnp {
namespace schemas {
328

329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
extern const ::capnp::_::RawSchema s_e75816b56529d464;
extern const ::capnp::_::RawSchema s_991c7a3693d62cf2;
extern const ::capnp::_::RawSchema s_90f2a60678fd2367;
extern const ::capnp::_::RawSchema s_ce5c2afd239fe34e;
extern const ::capnp::_::RawSchema s_8751968764a2e298;
extern const ::capnp::_::RawSchema s_9ca8b2acb16fc545;
extern const ::capnp::_::RawSchema s_b6b57cf8b27fba0e;
extern const ::capnp::_::RawSchema s_96efe787c17e83bb;
extern const ::capnp::_::RawSchema s_d00489d473826290;
extern const ::capnp::_::RawSchema s_8c0f454d10e0ee3d;
extern const ::capnp::_::RawSchema s_bca73158d62fc3fc;
extern const ::capnp::_::RawSchema s_f5e78dbd46b5e566;
extern const ::capnp::_::RawSchema s_e198451eb078456c;
extern const ::capnp::_::RawSchema s_d7e03a99254174e7;
extern const ::capnp::_::RawSchema s_fa92f59a8e6964e3;
extern const ::capnp::_::RawSchema s_bd636be80952066d;
extern const ::capnp::_::RawSchema s_a237aa9b0c8da6fe;
extern const ::capnp::_::RawSchema s_b0aaba24204ed5f5;
extern const ::capnp::_::RawSchema s_834c86b267d88b47;
extern const ::capnp::_::RawSchema s_85421cec78943d5b;
extern const ::capnp::_::RawSchema s_ad319ea1c001f0b1;
extern const ::capnp::_::RawSchema s_be9476246e7b4d7f;
extern const ::capnp::_::RawSchema s_84e4f3f5a807605c;
352

353 354
}  // namespace schemas
namespace _ {  // private
355

356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 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 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::LocatedText, e75816b56529d464,
    1, 1, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::LocatedInteger, 991c7a3693d62cf2,
    2, 0, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::LocatedFloat, 90f2a60678fd2367,
    2, 0, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::DeclName, ce5c2afd239fe34e,
    2, 2, INLINE_COMPOSITE);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::DeclName::Base,
    ::capnp::compiler::DeclName, 0);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::TypeExpression, 8751968764a2e298,
    1, 2, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::ValueExpression, 9ca8b2acb16fc545,
    3, 1, INLINE_COMPOSITE);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::ValueExpression::Body,
    ::capnp::compiler::ValueExpression, 0);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::ValueExpression::FieldAssignment, b6b57cf8b27fba0e,
    0, 2, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration, 96efe787c17e83bb,
    2, 6, INLINE_COMPOSITE);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::Declaration::Id,
    ::capnp::compiler::Declaration, 1);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::Declaration::Body,
    ::capnp::compiler::Declaration, 3);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::AnnotationApplication, d00489d473826290,
    1, 2, INLINE_COMPOSITE);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::Declaration::AnnotationApplication::Value,
    ::capnp::compiler::Declaration::AnnotationApplication, 1);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::File, 8c0f454d10e0ee3d,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Using, bca73158d62fc3fc,
    0, 1, POINTER);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Const, f5e78dbd46b5e566,
    0, 2, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Enum, e198451eb078456c,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Enumerant, d7e03a99254174e7,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Struct, fa92f59a8e6964e3,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Field, bd636be80952066d,
    1, 2, INLINE_COMPOSITE);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::Declaration::Field::DefaultValue,
    ::capnp::compiler::Declaration::Field, 1);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Union, a237aa9b0c8da6fe,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Group, b0aaba24204ed5f5,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Interface, 834c86b267d88b47,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Method, 85421cec78943d5b,
    1, 2, INLINE_COMPOSITE);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::Declaration::Method::ReturnType,
    ::capnp::compiler::Declaration::Method, 1);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Method::Param, ad319ea1c001f0b1,
    1, 4, INLINE_COMPOSITE);
CAPNP_DECLARE_UNION(
    ::capnp::compiler::Declaration::Method::Param::DefaultValue,
    ::capnp::compiler::Declaration::Method::Param, 3);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::Declaration::Annotation, be9476246e7b4d7f,
    1, 1, INLINE_COMPOSITE);
CAPNP_DECLARE_STRUCT(
    ::capnp::compiler::ParsedFile, 84e4f3f5a807605c,
    0, 1, POINTER);
449

450
}  // namespace _ (private)
451 452 453
}  // namespace capnp

// =======================================================================================
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474

namespace capnp {
namespace compiler {

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

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

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

  inline bool hasValue() const;
  inline  ::capnp::Text::Reader getValue() const;

  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;
475

476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505
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(LocatedText::Reader reader);
};

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

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

  Builder() = default;
  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 hasValue();
  inline  ::capnp::Text::Builder getValue();
506
  inline void setValue( ::capnp::Text::Reader value);
507 508 509 510 511 512 513 514 515
  inline  ::capnp::Text::Builder initValue(unsigned int size);
  inline void adoptValue(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownValue();

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

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

517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(LocatedText::Builder builder);
};

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

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

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

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

  inline  ::uint64_t getValue() const;

  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;
545

546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581
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(LocatedInteger::Reader reader);
};

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

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

  Builder() = default;
  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  ::uint64_t getValue();
  inline void setValue( ::uint64_t value);

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

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

583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(LocatedInteger::Builder builder);
};

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

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

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

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

  inline double getValue() const;

  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;
611

612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647
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(LocatedFloat::Reader reader);
};

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

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

  Builder() = default;
  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 double getValue();
  inline void setValue(double value);

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

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

649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(LocatedFloat::Builder builder);
};

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

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

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

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

672
inline Base::Reader getBase() const;
673 674 675 676 677 678
  inline bool hasMemberPath() const;
  inline  ::capnp::List< ::capnp::compiler::LocatedText>::Reader getMemberPath() const;

  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;
679

680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707
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(DeclName::Reader reader);
};

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

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

  Builder() = default;
  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(); }

708
inline Base::Builder getBase();
709 710
  inline bool hasMemberPath();
  inline  ::capnp::List< ::capnp::compiler::LocatedText>::Builder getMemberPath();
711
  inline void setMemberPath( ::capnp::List< ::capnp::compiler::LocatedText>::Reader value);
712 713 714 715 716 717 718 719 720
  inline  ::capnp::List< ::capnp::compiler::LocatedText>::Builder initMemberPath(unsigned int size);
  inline void adoptMemberPath(::capnp::Orphan< ::capnp::List< ::capnp::compiler::LocatedText>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::LocatedText>> disownMemberPath();

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

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

722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(DeclName::Builder builder);
};

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

class DeclName::Base::Reader {
public:
  typedef Base Reads;

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

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

745
inline Which which() const;
746 747 748 749 750 751 752 753
  inline bool hasAbsoluteName() const;
  inline  ::capnp::compiler::LocatedText::Reader getAbsoluteName() const;

  inline bool hasRelativeName() const;
  inline  ::capnp::compiler::LocatedText::Reader getRelativeName() const;

  inline bool hasImportName() const;
  inline  ::capnp::compiler::LocatedText::Reader getImportName() const;
754

755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780
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(DeclName::Base::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(DeclName::Base::Reader reader) {
  return ::capnp::_::unionString<DeclName::Base>(reader._reader);
}

class DeclName::Base::Builder {
public:
  typedef Base Builds;

  Builder() = default;
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

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

783
inline Which which();
784 785
  inline bool hasAbsoluteName();
  inline  ::capnp::compiler::LocatedText::Builder getAbsoluteName();
786
  inline void setAbsoluteName( ::capnp::compiler::LocatedText::Reader value);
787 788 789 790 791 792
  inline  ::capnp::compiler::LocatedText::Builder initAbsoluteName();
  inline void adoptAbsoluteName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownAbsoluteName();

  inline bool hasRelativeName();
  inline  ::capnp::compiler::LocatedText::Builder getRelativeName();
793
  inline void setRelativeName( ::capnp::compiler::LocatedText::Reader value);
794 795 796 797 798 799
  inline  ::capnp::compiler::LocatedText::Builder initRelativeName();
  inline void adoptRelativeName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownRelativeName();

  inline bool hasImportName();
  inline  ::capnp::compiler::LocatedText::Builder getImportName();
800
  inline void setImportName( ::capnp::compiler::LocatedText::Reader value);
801 802 803
  inline  ::capnp::compiler::LocatedText::Builder initImportName();
  inline void adoptImportName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownImportName();
804

805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(DeclName::Base::Builder builder);
};

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

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

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

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

  inline bool hasName() const;
  inline  ::capnp::compiler::DeclName::Reader getName() const;

  inline bool hasParams() const;
  inline  ::capnp::List< ::capnp::compiler::TypeExpression>::Reader getParams() const;

  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;
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
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(TypeExpression::Reader reader);
};

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

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

  Builder() = default;
  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 hasName();
  inline  ::capnp::compiler::DeclName::Builder getName();
868
  inline void setName( ::capnp::compiler::DeclName::Reader value);
869 870 871 872 873 874
  inline  ::capnp::compiler::DeclName::Builder initName();
  inline void adoptName(::capnp::Orphan< ::capnp::compiler::DeclName>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::DeclName> disownName();

  inline bool hasParams();
  inline  ::capnp::List< ::capnp::compiler::TypeExpression>::Builder getParams();
875
  inline void setParams( ::capnp::List< ::capnp::compiler::TypeExpression>::Reader value);
876 877 878 879 880 881 882 883 884
  inline  ::capnp::List< ::capnp::compiler::TypeExpression>::Builder initParams(unsigned int size);
  inline void adoptParams(::capnp::Orphan< ::capnp::List< ::capnp::compiler::TypeExpression>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::TypeExpression>> disownParams();

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

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

886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(TypeExpression::Builder builder);
};

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

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

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

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

909
inline Body::Reader getBody() const;
910 911 912
  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;
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
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(ValueExpression::Reader reader);
};

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

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

  Builder() = default;
  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(); }

942
inline Body::Builder getBody();
943 944 945 946 947
  inline  ::uint32_t getStartByte();
  inline void setStartByte( ::uint32_t value);

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

949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ValueExpression::Builder builder);
};

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

class ValueExpression::Body::Reader {
public:
  typedef Body Reads;

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

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

972
inline Which which() const;
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994
  inline  ::capnp::Void getUnknown() const;

  inline  ::uint64_t getPositiveInt() const;

  inline  ::uint64_t getNegativeInt() const;

  inline double getFloat() const;

  inline bool hasString() const;
  inline  ::capnp::Text::Reader getString() const;

  inline bool hasName() const;
  inline  ::capnp::compiler::DeclName::Reader getName() const;

  inline bool hasList() const;
  inline  ::capnp::List< ::capnp::compiler::ValueExpression>::Reader getList() const;

  inline bool hasStructValue() const;
  inline  ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Reader getStructValue() const;

  inline bool hasUnionValue() const;
  inline  ::capnp::compiler::ValueExpression::FieldAssignment::Reader getUnionValue() const;
995

996 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
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(ValueExpression::Body::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(ValueExpression::Body::Reader reader) {
  return ::capnp::_::unionString<ValueExpression::Body>(reader._reader);
}

class ValueExpression::Body::Builder {
public:
  typedef Body Builds;

  Builder() = default;
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

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

1024
inline Which which();
1025
  inline  ::capnp::Void getUnknown();
1026
  inline void setUnknown( ::capnp::Void value = ::capnp::Void::VOID);
1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038

  inline  ::uint64_t getPositiveInt();
  inline void setPositiveInt( ::uint64_t value);

  inline  ::uint64_t getNegativeInt();
  inline void setNegativeInt( ::uint64_t value);

  inline double getFloat();
  inline void setFloat(double value);

  inline bool hasString();
  inline  ::capnp::Text::Builder getString();
1039
  inline void setString( ::capnp::Text::Reader value);
1040 1041 1042 1043 1044 1045
  inline  ::capnp::Text::Builder initString(unsigned int size);
  inline void adoptString(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownString();

  inline bool hasName();
  inline  ::capnp::compiler::DeclName::Builder getName();
1046
  inline void setName( ::capnp::compiler::DeclName::Reader value);
1047 1048 1049 1050 1051 1052
  inline  ::capnp::compiler::DeclName::Builder initName();
  inline void adoptName(::capnp::Orphan< ::capnp::compiler::DeclName>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::DeclName> disownName();

  inline bool hasList();
  inline  ::capnp::List< ::capnp::compiler::ValueExpression>::Builder getList();
1053
  inline void setList( ::capnp::List< ::capnp::compiler::ValueExpression>::Reader value);
1054 1055 1056 1057 1058 1059
  inline  ::capnp::List< ::capnp::compiler::ValueExpression>::Builder initList(unsigned int size);
  inline void adoptList(::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression>> disownList();

  inline bool hasStructValue();
  inline  ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Builder getStructValue();
1060
  inline void setStructValue( ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Reader value);
1061 1062 1063 1064 1065 1066
  inline  ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Builder initStructValue(unsigned int size);
  inline void adoptStructValue(::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>> disownStructValue();

  inline bool hasUnionValue();
  inline  ::capnp::compiler::ValueExpression::FieldAssignment::Builder getUnionValue();
1067
  inline void setUnionValue( ::capnp::compiler::ValueExpression::FieldAssignment::Reader value);
1068 1069 1070
  inline  ::capnp::compiler::ValueExpression::FieldAssignment::Builder initUnionValue();
  inline void adoptUnionValue(::capnp::Orphan< ::capnp::compiler::ValueExpression::FieldAssignment>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::ValueExpression::FieldAssignment> disownUnionValue();
1071

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
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ValueExpression::Body::Builder builder);
};

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

class ValueExpression::FieldAssignment::Reader {
public:
  typedef FieldAssignment Reads;

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

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

  inline bool hasFieldName() const;
  inline  ::capnp::compiler::LocatedText::Reader getFieldName() const;

  inline bool hasValue() const;
  inline  ::capnp::compiler::ValueExpression::Reader getValue() const;
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
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(ValueExpression::FieldAssignment::Reader reader);
};

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

class ValueExpression::FieldAssignment::Builder {
public:
  typedef FieldAssignment Builds;

  Builder() = default;
  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 hasFieldName();
  inline  ::capnp::compiler::LocatedText::Builder getFieldName();
1131
  inline void setFieldName( ::capnp::compiler::LocatedText::Reader value);
1132 1133 1134 1135 1136 1137
  inline  ::capnp::compiler::LocatedText::Builder initFieldName();
  inline void adoptFieldName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownFieldName();

  inline bool hasValue();
  inline  ::capnp::compiler::ValueExpression::Builder getValue();
1138
  inline void setValue( ::capnp::compiler::ValueExpression::Reader value);
1139 1140 1141
  inline  ::capnp::compiler::ValueExpression::Builder initValue();
  inline void adoptValue(::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> disownValue();
1142

1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ValueExpression::FieldAssignment::Builder builder);
};

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

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

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

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

  inline bool hasName() const;
  inline  ::capnp::compiler::LocatedText::Reader getName() const;

1169
inline Id::Reader getId() const;
1170 1171 1172
  inline bool hasAnnotations() const;
  inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader getAnnotations() const;

1173 1174 1175 1176
inline Body::Reader getBody() const;
  inline bool hasNestedDecls() const;
  inline  ::capnp::List< ::capnp::compiler::Declaration>::Reader getNestedDecls() const;

1177 1178 1179 1180 1181 1182
  inline  ::uint32_t getStartByte() const;

  inline  ::uint32_t getEndByte() const;

  inline bool hasDocComment() const;
  inline  ::capnp::Text::Reader getDocComment() const;
1183

1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213
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(Declaration::Reader reader);
};

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

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

  Builder() = default;
  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 hasName();
  inline  ::capnp::compiler::LocatedText::Builder getName();
1214
  inline void setName( ::capnp::compiler::LocatedText::Reader value);
1215 1216 1217 1218
  inline  ::capnp::compiler::LocatedText::Builder initName();
  inline void adoptName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownName();

1219
inline Id::Builder getId();
1220 1221
  inline bool hasAnnotations();
  inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder getAnnotations();
1222
  inline void setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader value);
1223 1224 1225 1226
  inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder initAnnotations(unsigned int size);
  inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>> disownAnnotations();

1227 1228 1229 1230 1231 1232 1233 1234
inline Body::Builder getBody();
  inline bool hasNestedDecls();
  inline  ::capnp::List< ::capnp::compiler::Declaration>::Builder getNestedDecls();
  inline void setNestedDecls( ::capnp::List< ::capnp::compiler::Declaration>::Reader value);
  inline  ::capnp::List< ::capnp::compiler::Declaration>::Builder initNestedDecls(unsigned int size);
  inline void adoptNestedDecls(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration>> disownNestedDecls();

1235 1236 1237 1238 1239 1240 1241 1242
  inline  ::uint32_t getStartByte();
  inline void setStartByte( ::uint32_t value);

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

  inline bool hasDocComment();
  inline  ::capnp::Text::Builder getDocComment();
1243
  inline void setDocComment( ::capnp::Text::Reader value);
1244 1245 1246
  inline  ::capnp::Text::Builder initDocComment(unsigned int size);
  inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownDocComment();
1247

1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Builder builder);
};

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

class Declaration::Id::Reader {
public:
  typedef Id Reads;

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

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

1271
inline Which which() const;
1272 1273 1274 1275 1276 1277 1278
  inline  ::capnp::Void getUnspecified() const;

  inline bool hasUid() const;
  inline  ::capnp::compiler::LocatedInteger::Reader getUid() const;

  inline bool hasOrdinal() const;
  inline  ::capnp::compiler::LocatedInteger::Reader getOrdinal() const;
1279

1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305
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(Declaration::Id::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Id::Reader reader) {
  return ::capnp::_::unionString<Declaration::Id>(reader._reader);
}

class Declaration::Id::Builder {
public:
  typedef Id Builds;

  Builder() = default;
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

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

1308
inline Which which();
1309
  inline  ::capnp::Void getUnspecified();
1310
  inline void setUnspecified( ::capnp::Void value = ::capnp::Void::VOID);
1311 1312 1313

  inline bool hasUid();
  inline  ::capnp::compiler::LocatedInteger::Builder getUid();
1314
  inline void setUid( ::capnp::compiler::LocatedInteger::Reader value);
1315 1316 1317 1318 1319 1320
  inline  ::capnp::compiler::LocatedInteger::Builder initUid();
  inline void adoptUid(::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> disownUid();

  inline bool hasOrdinal();
  inline  ::capnp::compiler::LocatedInteger::Builder getOrdinal();
1321
  inline void setOrdinal( ::capnp::compiler::LocatedInteger::Reader value);
1322 1323 1324
  inline  ::capnp::compiler::LocatedInteger::Builder initOrdinal();
  inline void adoptOrdinal(::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> disownOrdinal();
1325

1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Id::Builder builder);
};

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

1338
class Declaration::Body::Reader {
1339
public:
1340
  typedef Body Reads;
1341 1342 1343 1344 1345 1346 1347 1348

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

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

1349 1350 1351
inline Which which() const;
  inline bool hasUsingDecl() const;
  inline  ::capnp::compiler::Declaration::Using::Reader getUsingDecl() const;
1352

1353 1354
  inline bool hasConstDecl() const;
  inline  ::capnp::compiler::Declaration::Const::Reader getConstDecl() const;
1355

1356 1357
  inline bool hasEnumDecl() const;
  inline  ::capnp::compiler::Declaration::Enum::Reader getEnumDecl() const;
1358

1359 1360
  inline bool hasEnumerantDecl() const;
  inline  ::capnp::compiler::Declaration::Enumerant::Reader getEnumerantDecl() const;
1361

1362 1363
  inline bool hasStructDecl() const;
  inline  ::capnp::compiler::Declaration::Struct::Reader getStructDecl() const;
1364

1365 1366
  inline bool hasFieldDecl() const;
  inline  ::capnp::compiler::Declaration::Field::Reader getFieldDecl() const;
1367

1368 1369
  inline bool hasUnionDecl() const;
  inline  ::capnp::compiler::Declaration::Union::Reader getUnionDecl() const;
1370

1371 1372
  inline bool hasInterfaceDecl() const;
  inline  ::capnp::compiler::Declaration::Interface::Reader getInterfaceDecl() const;
1373

1374 1375
  inline bool hasMethodDecl() const;
  inline  ::capnp::compiler::Declaration::Method::Reader getMethodDecl() const;
1376 1377 1378 1379 1380 1381 1382 1383 1384 1385

  inline bool hasAnnotationDecl() const;
  inline  ::capnp::compiler::Declaration::Annotation::Reader getAnnotationDecl() const;

  inline bool hasNakedId() const;
  inline  ::capnp::compiler::LocatedInteger::Reader getNakedId() const;

  inline bool hasNakedAnnotation() const;
  inline  ::capnp::compiler::Declaration::AnnotationApplication::Reader getNakedAnnotation() const;

1386 1387 1388 1389 1390 1391
  inline bool hasGroupDecl() const;
  inline  ::capnp::compiler::Declaration::Group::Reader getGroupDecl() const;

  inline bool hasFileDecl() const;
  inline  ::capnp::compiler::Declaration::File::Reader getFileDecl() const;

1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422
  inline  ::capnp::Void getBuiltinVoid() const;

  inline  ::capnp::Void getBuiltinBool() const;

  inline  ::capnp::Void getBuiltinInt8() const;

  inline  ::capnp::Void getBuiltinInt16() const;

  inline  ::capnp::Void getBuiltinInt32() const;

  inline  ::capnp::Void getBuiltinInt64() const;

  inline  ::capnp::Void getBuiltinUInt8() const;

  inline  ::capnp::Void getBuiltinUInt16() const;

  inline  ::capnp::Void getBuiltinUInt32() const;

  inline  ::capnp::Void getBuiltinUInt64() const;

  inline  ::capnp::Void getBuiltinFloat32() const;

  inline  ::capnp::Void getBuiltinFloat64() const;

  inline  ::capnp::Void getBuiltinText() const;

  inline  ::capnp::Void getBuiltinData() const;

  inline  ::capnp::Void getBuiltinList() const;

  inline  ::capnp::Void getBuiltinObject() const;
1423

1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449
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(Declaration::Body::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Body::Reader reader) {
  return ::capnp::_::unionString<Declaration::Body>(reader._reader);
}

class Declaration::Body::Builder {
public:
  typedef Body Builds;

  Builder() = default;
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

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

1452
inline Which which();
1453 1454
  inline bool hasUsingDecl();
  inline  ::capnp::compiler::Declaration::Using::Builder getUsingDecl();
1455
  inline void setUsingDecl( ::capnp::compiler::Declaration::Using::Reader value);
1456 1457 1458 1459 1460 1461
  inline  ::capnp::compiler::Declaration::Using::Builder initUsingDecl();
  inline void adoptUsingDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Using>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Using> disownUsingDecl();

  inline bool hasConstDecl();
  inline  ::capnp::compiler::Declaration::Const::Builder getConstDecl();
1462
  inline void setConstDecl( ::capnp::compiler::Declaration::Const::Reader value);
1463 1464 1465 1466 1467 1468
  inline  ::capnp::compiler::Declaration::Const::Builder initConstDecl();
  inline void adoptConstDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Const>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Const> disownConstDecl();

  inline bool hasEnumDecl();
  inline  ::capnp::compiler::Declaration::Enum::Builder getEnumDecl();
1469
  inline void setEnumDecl( ::capnp::compiler::Declaration::Enum::Reader value);
1470 1471 1472 1473 1474 1475
  inline  ::capnp::compiler::Declaration::Enum::Builder initEnumDecl();
  inline void adoptEnumDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Enum>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Enum> disownEnumDecl();

  inline bool hasEnumerantDecl();
  inline  ::capnp::compiler::Declaration::Enumerant::Builder getEnumerantDecl();
1476
  inline void setEnumerantDecl( ::capnp::compiler::Declaration::Enumerant::Reader value);
1477 1478 1479 1480 1481 1482
  inline  ::capnp::compiler::Declaration::Enumerant::Builder initEnumerantDecl();
  inline void adoptEnumerantDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Enumerant>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Enumerant> disownEnumerantDecl();

  inline bool hasStructDecl();
  inline  ::capnp::compiler::Declaration::Struct::Builder getStructDecl();
1483
  inline void setStructDecl( ::capnp::compiler::Declaration::Struct::Reader value);
1484 1485 1486 1487 1488 1489
  inline  ::capnp::compiler::Declaration::Struct::Builder initStructDecl();
  inline void adoptStructDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Struct>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Struct> disownStructDecl();

  inline bool hasFieldDecl();
  inline  ::capnp::compiler::Declaration::Field::Builder getFieldDecl();
1490
  inline void setFieldDecl( ::capnp::compiler::Declaration::Field::Reader value);
1491 1492 1493 1494 1495 1496
  inline  ::capnp::compiler::Declaration::Field::Builder initFieldDecl();
  inline void adoptFieldDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Field>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Field> disownFieldDecl();

  inline bool hasUnionDecl();
  inline  ::capnp::compiler::Declaration::Union::Builder getUnionDecl();
1497
  inline void setUnionDecl( ::capnp::compiler::Declaration::Union::Reader value);
1498 1499 1500 1501 1502 1503
  inline  ::capnp::compiler::Declaration::Union::Builder initUnionDecl();
  inline void adoptUnionDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Union>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Union> disownUnionDecl();

  inline bool hasInterfaceDecl();
  inline  ::capnp::compiler::Declaration::Interface::Builder getInterfaceDecl();
1504
  inline void setInterfaceDecl( ::capnp::compiler::Declaration::Interface::Reader value);
1505 1506 1507 1508 1509 1510
  inline  ::capnp::compiler::Declaration::Interface::Builder initInterfaceDecl();
  inline void adoptInterfaceDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Interface>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Interface> disownInterfaceDecl();

  inline bool hasMethodDecl();
  inline  ::capnp::compiler::Declaration::Method::Builder getMethodDecl();
1511
  inline void setMethodDecl( ::capnp::compiler::Declaration::Method::Reader value);
1512 1513 1514 1515 1516 1517
  inline  ::capnp::compiler::Declaration::Method::Builder initMethodDecl();
  inline void adoptMethodDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Method>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Method> disownMethodDecl();

  inline bool hasAnnotationDecl();
  inline  ::capnp::compiler::Declaration::Annotation::Builder getAnnotationDecl();
1518
  inline void setAnnotationDecl( ::capnp::compiler::Declaration::Annotation::Reader value);
1519 1520 1521 1522 1523 1524
  inline  ::capnp::compiler::Declaration::Annotation::Builder initAnnotationDecl();
  inline void adoptAnnotationDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Annotation>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Annotation> disownAnnotationDecl();

  inline bool hasNakedId();
  inline  ::capnp::compiler::LocatedInteger::Builder getNakedId();
1525
  inline void setNakedId( ::capnp::compiler::LocatedInteger::Reader value);
1526 1527 1528 1529 1530 1531
  inline  ::capnp::compiler::LocatedInteger::Builder initNakedId();
  inline void adoptNakedId(::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> disownNakedId();

  inline bool hasNakedAnnotation();
  inline  ::capnp::compiler::Declaration::AnnotationApplication::Builder getNakedAnnotation();
1532
  inline void setNakedAnnotation( ::capnp::compiler::Declaration::AnnotationApplication::Reader value);
1533 1534 1535 1536
  inline  ::capnp::compiler::Declaration::AnnotationApplication::Builder initNakedAnnotation();
  inline void adoptNakedAnnotation(::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication> disownNakedAnnotation();

1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550
  inline bool hasGroupDecl();
  inline  ::capnp::compiler::Declaration::Group::Builder getGroupDecl();
  inline void setGroupDecl( ::capnp::compiler::Declaration::Group::Reader value);
  inline  ::capnp::compiler::Declaration::Group::Builder initGroupDecl();
  inline void adoptGroupDecl(::capnp::Orphan< ::capnp::compiler::Declaration::Group>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::Group> disownGroupDecl();

  inline bool hasFileDecl();
  inline  ::capnp::compiler::Declaration::File::Builder getFileDecl();
  inline void setFileDecl( ::capnp::compiler::Declaration::File::Reader value);
  inline  ::capnp::compiler::Declaration::File::Builder initFileDecl();
  inline void adoptFileDecl(::capnp::Orphan< ::capnp::compiler::Declaration::File>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration::File> disownFileDecl();

1551
  inline  ::capnp::Void getBuiltinVoid();
1552
  inline void setBuiltinVoid( ::capnp::Void value = ::capnp::Void::VOID);
1553 1554

  inline  ::capnp::Void getBuiltinBool();
1555
  inline void setBuiltinBool( ::capnp::Void value = ::capnp::Void::VOID);
1556 1557

  inline  ::capnp::Void getBuiltinInt8();
1558
  inline void setBuiltinInt8( ::capnp::Void value = ::capnp::Void::VOID);
1559 1560

  inline  ::capnp::Void getBuiltinInt16();
1561
  inline void setBuiltinInt16( ::capnp::Void value = ::capnp::Void::VOID);
1562 1563

  inline  ::capnp::Void getBuiltinInt32();
1564
  inline void setBuiltinInt32( ::capnp::Void value = ::capnp::Void::VOID);
1565 1566

  inline  ::capnp::Void getBuiltinInt64();
1567
  inline void setBuiltinInt64( ::capnp::Void value = ::capnp::Void::VOID);
1568 1569

  inline  ::capnp::Void getBuiltinUInt8();
1570
  inline void setBuiltinUInt8( ::capnp::Void value = ::capnp::Void::VOID);
1571 1572

  inline  ::capnp::Void getBuiltinUInt16();
1573
  inline void setBuiltinUInt16( ::capnp::Void value = ::capnp::Void::VOID);
1574 1575

  inline  ::capnp::Void getBuiltinUInt32();
1576
  inline void setBuiltinUInt32( ::capnp::Void value = ::capnp::Void::VOID);
1577 1578

  inline  ::capnp::Void getBuiltinUInt64();
1579
  inline void setBuiltinUInt64( ::capnp::Void value = ::capnp::Void::VOID);
1580 1581

  inline  ::capnp::Void getBuiltinFloat32();
1582
  inline void setBuiltinFloat32( ::capnp::Void value = ::capnp::Void::VOID);
1583 1584

  inline  ::capnp::Void getBuiltinFloat64();
1585
  inline void setBuiltinFloat64( ::capnp::Void value = ::capnp::Void::VOID);
1586 1587

  inline  ::capnp::Void getBuiltinText();
1588
  inline void setBuiltinText( ::capnp::Void value = ::capnp::Void::VOID);
1589 1590

  inline  ::capnp::Void getBuiltinData();
1591
  inline void setBuiltinData( ::capnp::Void value = ::capnp::Void::VOID);
1592 1593

  inline  ::capnp::Void getBuiltinList();
1594
  inline void setBuiltinList( ::capnp::Void value = ::capnp::Void::VOID);
1595 1596

  inline  ::capnp::Void getBuiltinObject();
1597 1598
  inline void setBuiltinObject( ::capnp::Void value = ::capnp::Void::VOID);

1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Body::Builder builder);
};

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

1611
class Declaration::AnnotationApplication::Reader {
1612
public:
1613
  typedef AnnotationApplication Reads;
1614 1615 1616 1617 1618 1619 1620

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

  inline size_t totalSizeInWords() const {
    return _reader.totalSize() / ::capnp::WORDS;
  }
1621 1622 1623 1624 1625

  inline bool hasName() const;
  inline  ::capnp::compiler::DeclName::Reader getName() const;

inline Value::Reader getValue() const;
1626 1627 1628 1629 1630 1631 1632 1633 1634 1635
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;
1636
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Reader reader);
1637 1638
};

1639 1640
inline ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Reader reader) {
  return ::capnp::_::structString<Declaration::AnnotationApplication>(reader._reader);
1641 1642
}

1643
class Declaration::AnnotationApplication::Builder {
1644
public:
1645
  typedef AnnotationApplication Builds;
1646 1647 1648 1649 1650 1651 1652

  Builder() = default;
  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(); }
1653 1654 1655 1656 1657 1658 1659 1660 1661

  inline bool hasName();
  inline  ::capnp::compiler::DeclName::Builder getName();
  inline void setName( ::capnp::compiler::DeclName::Reader value);
  inline  ::capnp::compiler::DeclName::Builder initName();
  inline void adoptName(::capnp::Orphan< ::capnp::compiler::DeclName>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::DeclName> disownName();

inline Value::Builder getValue();
1662 1663 1664 1665 1666
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1667
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Builder builder);
1668 1669
};

1670 1671
inline ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Builder builder) {
  return ::capnp::_::structString<Declaration::AnnotationApplication>(builder._builder.asReader());
1672 1673
}

1674
class Declaration::AnnotationApplication::Value::Reader {
1675
public:
1676
  typedef Value Reads;
1677 1678 1679 1680 1681 1682 1683 1684

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

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

1685 1686 1687 1688 1689 1690
inline Which which() const;
  inline  ::capnp::Void getNone() const;

  inline bool hasExpression() const;
  inline  ::capnp::compiler::ValueExpression::Reader getExpression() const;

1691 1692 1693 1694 1695 1696 1697 1698 1699 1700
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;
1701
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Value::Reader reader);
1702 1703
};

1704 1705
inline ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Value::Reader reader) {
  return ::capnp::_::unionString<Declaration::AnnotationApplication::Value>(reader._reader);
1706 1707
}

1708
class Declaration::AnnotationApplication::Value::Builder {
1709
public:
1710
  typedef Value Builds;
1711 1712 1713 1714 1715 1716 1717 1718

  Builder() = default;
  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(); }

1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729
inline Which which();
  inline  ::capnp::Void getNone();
  inline void setNone( ::capnp::Void value = ::capnp::Void::VOID);

  inline bool hasExpression();
  inline  ::capnp::compiler::ValueExpression::Builder getExpression();
  inline void setExpression( ::capnp::compiler::ValueExpression::Reader value);
  inline  ::capnp::compiler::ValueExpression::Builder initExpression();
  inline void adoptExpression(::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> disownExpression();

1730 1731 1732 1733 1734
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1735
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Value::Builder builder);
1736 1737
};

1738 1739
inline ::kj::StringTree KJ_STRINGIFY(Declaration::AnnotationApplication::Value::Builder builder) {
  return ::capnp::_::unionString<Declaration::AnnotationApplication::Value>(builder._builder.asReader());
1740 1741
}

1742
class Declaration::File::Reader {
1743
public:
1744
  typedef File Reads;
1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762

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

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

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;
1763
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::File::Reader reader);
1764 1765
};

1766 1767
inline ::kj::StringTree KJ_STRINGIFY(Declaration::File::Reader reader) {
  return ::capnp::_::structString<Declaration::File>(reader._reader);
1768 1769
}

1770
class Declaration::File::Builder {
1771
public:
1772
  typedef File Builds;
1773 1774 1775 1776 1777 1778 1779 1780

  Builder() = default;
  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(); }

1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::File::Builder builder);
};

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

class Declaration::Using::Reader {
public:
  typedef Using Reads;

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

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

  inline bool hasTarget() const;
  inline  ::capnp::compiler::DeclName::Reader getTarget() const;

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(Declaration::Using::Reader reader);
};

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

class Declaration::Using::Builder {
public:
  typedef Using Builds;

  Builder() = default;
  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 hasTarget();
  inline  ::capnp::compiler::DeclName::Builder getTarget();
  inline void setTarget( ::capnp::compiler::DeclName::Reader value);
  inline  ::capnp::compiler::DeclName::Builder initTarget();
  inline void adoptTarget(::capnp::Orphan< ::capnp::compiler::DeclName>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::DeclName> disownTarget();

private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Using::Builder builder);
};

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

class Declaration::Const::Reader {
public:
  typedef Const Reads;

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

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

  inline bool hasType() const;
  inline  ::capnp::compiler::TypeExpression::Reader getType() const;

  inline bool hasValue() const;
  inline  ::capnp::compiler::ValueExpression::Reader getValue() const;

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(Declaration::Const::Reader reader);
};

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

class Declaration::Const::Builder {
public:
  typedef Const Builds;

  Builder() = default;
  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 hasType();
  inline  ::capnp::compiler::TypeExpression::Builder getType();
  inline void setType( ::capnp::compiler::TypeExpression::Reader value);
  inline  ::capnp::compiler::TypeExpression::Builder initType();
  inline void adoptType(::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> disownType();

  inline bool hasValue();
  inline  ::capnp::compiler::ValueExpression::Builder getValue();
  inline void setValue( ::capnp::compiler::ValueExpression::Reader value);
  inline  ::capnp::compiler::ValueExpression::Builder initValue();
  inline void adoptValue(::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> disownValue();

1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Const::Builder builder);
};

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

class Declaration::Enum::Reader {
public:
  typedef Enum Reads;

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

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

1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962
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(Declaration::Enum::Reader reader);
};

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

class Declaration::Enum::Builder {
public:
  typedef Enum Builds;

  Builder() = default;
  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(); }
1963

1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Enum::Builder builder);
};

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

class Declaration::Enumerant::Reader {
public:
  typedef Enumerant Reads;

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

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

1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013
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(Declaration::Enumerant::Reader reader);
};

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

class Declaration::Enumerant::Builder {
public:
  typedef Enumerant Builds;

  Builder() = default;
  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(); }
2014

2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Enumerant::Builder builder);
};

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

class Declaration::Struct::Reader {
public:
  typedef Struct Reads;

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

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

2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064
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(Declaration::Struct::Reader reader);
};

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

class Declaration::Struct::Builder {
public:
  typedef Struct Builds;

  Builder() = default;
  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(); }
2065

2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Struct::Builder builder);
};

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

class Declaration::Field::Reader {
public:
  typedef Field Reads;

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

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

  inline bool hasType() const;
  inline  ::capnp::compiler::TypeExpression::Reader getType() const;
2091 2092

inline DefaultValue::Reader getDefaultValue() const;
2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122
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(Declaration::Field::Reader reader);
};

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

class Declaration::Field::Builder {
public:
  typedef Field Builds;

  Builder() = default;
  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 hasType();
  inline  ::capnp::compiler::TypeExpression::Builder getType();
2123
  inline void setType( ::capnp::compiler::TypeExpression::Reader value);
2124 2125 2126
  inline  ::capnp::compiler::TypeExpression::Builder initType();
  inline void adoptType(::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> disownType();
2127 2128

inline DefaultValue::Builder getDefaultValue();
2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Field::Builder builder);
};

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

class Declaration::Field::DefaultValue::Reader {
public:
  typedef DefaultValue Reads;

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

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

2152
inline Which which() const;
2153 2154 2155 2156
  inline  ::capnp::Void getNone() const;

  inline bool hasValue() const;
  inline  ::capnp::compiler::ValueExpression::Reader getValue() const;
2157

2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183
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(Declaration::Field::DefaultValue::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Field::DefaultValue::Reader reader) {
  return ::capnp::_::unionString<Declaration::Field::DefaultValue>(reader._reader);
}

class Declaration::Field::DefaultValue::Builder {
public:
  typedef DefaultValue Builds;

  Builder() = default;
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

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

2186
inline Which which();
2187
  inline  ::capnp::Void getNone();
2188
  inline void setNone( ::capnp::Void value = ::capnp::Void::VOID);
2189 2190 2191

  inline bool hasValue();
  inline  ::capnp::compiler::ValueExpression::Builder getValue();
2192
  inline void setValue( ::capnp::compiler::ValueExpression::Reader value);
2193 2194 2195
  inline  ::capnp::compiler::ValueExpression::Builder initValue();
  inline void adoptValue(::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> disownValue();
2196

2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Field::DefaultValue::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Field::DefaultValue::Builder builder) {
  return ::capnp::_::unionString<Declaration::Field::DefaultValue>(builder._builder.asReader());
}

class Declaration::Union::Reader {
public:
  typedef Union Reads;

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

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

2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246
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(Declaration::Union::Reader reader);
};

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

class Declaration::Union::Builder {
public:
  typedef Union Builds;

  Builder() = default;
  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(); }
2247

2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Union::Builder builder);
};

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

class Declaration::Group::Reader {
public:
  typedef Group Reads;

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

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

2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297
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(Declaration::Group::Reader reader);
};

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

class Declaration::Group::Builder {
public:
  typedef Group Builds;

  Builder() = default;
  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(); }
2298

2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Group::Builder builder);
};

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

class Declaration::Interface::Reader {
public:
  typedef Interface Reads;

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

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

2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348
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(Declaration::Interface::Reader reader);
};

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

class Declaration::Interface::Builder {
public:
  typedef Interface Builds;

  Builder() = default;
  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(); }
2349

2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Interface::Builder builder);
};

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

class Declaration::Method::Reader {
public:
  typedef Method Reads;

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

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

  inline bool hasParams() const;
  inline  ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Reader getParams() const;
2375 2376

inline ReturnType::Reader getReturnType() const;
2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406
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(Declaration::Method::Reader reader);
};

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

class Declaration::Method::Builder {
public:
  typedef Method Builds;

  Builder() = default;
  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 hasParams();
  inline  ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Builder getParams();
2407
  inline void setParams( ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Reader value);
2408 2409 2410
  inline  ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Builder initParams(unsigned int size);
  inline void adoptParams(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>> disownParams();
2411 2412

inline ReturnType::Builder getReturnType();
2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Method::Builder builder);
};

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

2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492
class Declaration::Method::ReturnType::Reader {
public:
  typedef ReturnType Reads;

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

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

inline Which which() const;
  inline  ::capnp::Void getNone() const;

  inline bool hasExpression() const;
  inline  ::capnp::compiler::TypeExpression::Reader getExpression() const;

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(Declaration::Method::ReturnType::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Method::ReturnType::Reader reader) {
  return ::capnp::_::unionString<Declaration::Method::ReturnType>(reader._reader);
}

class Declaration::Method::ReturnType::Builder {
public:
  typedef ReturnType Builds;

  Builder() = default;
  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 Which which();
  inline  ::capnp::Void getNone();
  inline void setNone( ::capnp::Void value = ::capnp::Void::VOID);

  inline bool hasExpression();
  inline  ::capnp::compiler::TypeExpression::Builder getExpression();
  inline void setExpression( ::capnp::compiler::TypeExpression::Reader value);
  inline  ::capnp::compiler::TypeExpression::Builder initExpression();
  inline void adoptExpression(::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> disownExpression();

private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Method::ReturnType::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Method::ReturnType::Builder builder) {
  return ::capnp::_::unionString<Declaration::Method::ReturnType>(builder._builder.asReader());
}

2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511
class Declaration::Method::Param::Reader {
public:
  typedef Param Reads;

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

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

  inline bool hasName() const;
  inline  ::capnp::compiler::LocatedText::Reader getName() const;

  inline bool hasType() const;
  inline  ::capnp::compiler::TypeExpression::Reader getType() const;

  inline bool hasAnnotations() const;
  inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader getAnnotations() const;
2512 2513

inline DefaultValue::Reader getDefaultValue() const;
2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543
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(Declaration::Method::Param::Reader reader);
};

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

class Declaration::Method::Param::Builder {
public:
  typedef Param Builds;

  Builder() = default;
  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 hasName();
  inline  ::capnp::compiler::LocatedText::Builder getName();
2544
  inline void setName( ::capnp::compiler::LocatedText::Reader value);
2545 2546 2547 2548 2549 2550
  inline  ::capnp::compiler::LocatedText::Builder initName();
  inline void adoptName(::capnp::Orphan< ::capnp::compiler::LocatedText>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::LocatedText> disownName();

  inline bool hasType();
  inline  ::capnp::compiler::TypeExpression::Builder getType();
2551
  inline void setType( ::capnp::compiler::TypeExpression::Reader value);
2552 2553 2554 2555 2556 2557
  inline  ::capnp::compiler::TypeExpression::Builder initType();
  inline void adoptType(::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> disownType();

  inline bool hasAnnotations();
  inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder getAnnotations();
2558
  inline void setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader value);
2559 2560 2561
  inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder initAnnotations(unsigned int size);
  inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>> disownAnnotations();
2562 2563

inline DefaultValue::Builder getDefaultValue();
2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Method::Param::Builder builder);
};

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

class Declaration::Method::Param::DefaultValue::Reader {
public:
  typedef DefaultValue Reads;

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

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

2587
inline Which which() const;
2588 2589 2590 2591
  inline  ::capnp::Void getNone() const;

  inline bool hasValue() const;
  inline  ::capnp::compiler::ValueExpression::Reader getValue() const;
2592

2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618
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(Declaration::Method::Param::DefaultValue::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Method::Param::DefaultValue::Reader reader) {
  return ::capnp::_::unionString<Declaration::Method::Param::DefaultValue>(reader._reader);
}

class Declaration::Method::Param::DefaultValue::Builder {
public:
  typedef DefaultValue Builds;

  Builder() = default;
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

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

2621
inline Which which();
2622
  inline  ::capnp::Void getNone();
2623
  inline void setNone( ::capnp::Void value = ::capnp::Void::VOID);
2624 2625 2626

  inline bool hasValue();
  inline  ::capnp::compiler::ValueExpression::Builder getValue();
2627
  inline void setValue( ::capnp::compiler::ValueExpression::Reader value);
2628 2629 2630
  inline  ::capnp::compiler::ValueExpression::Builder initValue();
  inline void adoptValue(::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> disownValue();
2631

2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Method::Param::DefaultValue::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(Declaration::Method::Param::DefaultValue::Builder builder) {
  return ::capnp::_::unionString<Declaration::Method::Param::DefaultValue>(builder._builder.asReader());
}

2644
class Declaration::Annotation::Reader {
2645
public:
2646
  typedef Annotation Reads;
2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678

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

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

  inline bool hasType() const;
  inline  ::capnp::compiler::TypeExpression::Reader getType() const;

  inline bool getTargetsFile() const;

  inline bool getTargetsConst() const;

  inline bool getTargetsEnum() const;

  inline bool getTargetsEnumerant() const;

  inline bool getTargetsStruct() const;

  inline bool getTargetsField() const;

  inline bool getTargetsUnion() const;

  inline bool getTargetsInterface() const;

  inline bool getTargetsMethod() const;

  inline bool getTargetsParam() const;

  inline bool getTargetsAnnotation() const;
2679

2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709
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(Declaration::Annotation::Reader reader);
};

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

class Declaration::Annotation::Builder {
public:
  typedef Annotation Builds;

  Builder() = default;
  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 hasType();
  inline  ::capnp::compiler::TypeExpression::Builder getType();
2710
  inline void setType( ::capnp::compiler::TypeExpression::Reader value);
2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746
  inline  ::capnp::compiler::TypeExpression::Builder initType();
  inline void adoptType(::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> disownType();

  inline bool getTargetsFile();
  inline void setTargetsFile(bool value);

  inline bool getTargetsConst();
  inline void setTargetsConst(bool value);

  inline bool getTargetsEnum();
  inline void setTargetsEnum(bool value);

  inline bool getTargetsEnumerant();
  inline void setTargetsEnumerant(bool value);

  inline bool getTargetsStruct();
  inline void setTargetsStruct(bool value);

  inline bool getTargetsField();
  inline void setTargetsField(bool value);

  inline bool getTargetsUnion();
  inline void setTargetsUnion(bool value);

  inline bool getTargetsInterface();
  inline void setTargetsInterface(bool value);

  inline bool getTargetsMethod();
  inline void setTargetsMethod(bool value);

  inline bool getTargetsParam();
  inline void setTargetsParam(bool value);

  inline bool getTargetsAnnotation();
  inline void setTargetsAnnotation(bool value);
2747

2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(Declaration::Annotation::Builder builder);
};

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

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

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

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

  inline bool hasRoot() const;
  inline  ::capnp::compiler::Declaration::Reader getRoot() const;
2773

2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803
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(ParsedFile::Reader reader);
};

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

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

  Builder() = default;
  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 hasRoot();
  inline  ::capnp::compiler::Declaration::Builder getRoot();
2804
  inline void setRoot( ::capnp::compiler::Declaration::Reader value);
2805 2806 2807
  inline  ::capnp::compiler::Declaration::Builder initRoot();
  inline void adoptRoot(::capnp::Orphan< ::capnp::compiler::Declaration>&& value);
  inline ::capnp::Orphan< ::capnp::compiler::Declaration> disownRoot();
2808

2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ParsedFile::Builder builder);
};

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

2821
// =======================================================================================
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980

inline bool LocatedText::Reader::hasValue() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool LocatedText::Builder::hasValue() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Reader LocatedText::Reader::getValue() const {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Builder LocatedText::Builder::getValue() {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void LocatedText::Builder::setValue( ::capnp::Text::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::Text::Builder LocatedText::Builder::initValue(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void LocatedText::Builder::adoptValue(
    ::capnp::Orphan< ::capnp::Text>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::Text> LocatedText::Builder::disownValue() {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline  ::uint32_t LocatedText::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}

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

inline  ::uint32_t LocatedText::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}

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

inline  ::uint64_t LocatedInteger::Reader::getValue() const {
  return _reader.getDataField< ::uint64_t>(
      0 * ::capnp::ELEMENTS);
}

inline  ::uint64_t LocatedInteger::Builder::getValue() {
  return _builder.getDataField< ::uint64_t>(
      0 * ::capnp::ELEMENTS);
}
inline void LocatedInteger::Builder::setValue( ::uint64_t value) {
  _builder.setDataField< ::uint64_t>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::uint32_t LocatedInteger::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS);
}

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

inline  ::uint32_t LocatedInteger::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      3 * ::capnp::ELEMENTS);
}

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

inline double LocatedFloat::Reader::getValue() const {
  return _reader.getDataField<double>(
      0 * ::capnp::ELEMENTS);
}

inline double LocatedFloat::Builder::getValue() {
  return _builder.getDataField<double>(
      0 * ::capnp::ELEMENTS);
}
inline void LocatedFloat::Builder::setValue(double value) {
  _builder.setDataField<double>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::uint32_t LocatedFloat::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS);
}

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

inline  ::uint32_t LocatedFloat::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      3 * ::capnp::ELEMENTS);
}

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

inline DeclName::Base::Reader DeclName::Reader::getBase() const {
  return DeclName::Base::Reader(_reader);
}
inline DeclName::Base::Builder DeclName::Builder::getBase() {
  return DeclName::Base::Builder(_builder);
}
inline DeclName::Base::Which DeclName::Base::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline DeclName::Base::Which DeclName::Base::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

inline bool DeclName::Base::Reader::hasAbsoluteName() const {
2981 2982
  KJ_IREQUIRE(which() == Base::ABSOLUTE_NAME,
              "Must check which() before get()ing a union member.");
2983 2984 2985
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool DeclName::Base::Builder::hasAbsoluteName() {
2986 2987
  KJ_IREQUIRE(which() == Base::ABSOLUTE_NAME,
              "Must check which() before get()ing a union member.");
2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Reader DeclName::Base::Reader::getAbsoluteName() const {
  KJ_IREQUIRE(which() == Base::ABSOLUTE_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Builder DeclName::Base::Builder::getAbsoluteName() {
  KJ_IREQUIRE(which() == Base::ABSOLUTE_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void DeclName::Base::Builder::setAbsoluteName( ::capnp::compiler::LocatedText::Reader value) {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::ABSOLUTE_NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedText::Builder DeclName::Base::Builder::initAbsoluteName() {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::ABSOLUTE_NAME);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void DeclName::Base::Builder::adoptAbsoluteName(
    ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::ABSOLUTE_NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::LocatedText> DeclName::Base::Builder::disownAbsoluteName() {
  KJ_IREQUIRE(which() == Base::ABSOLUTE_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool DeclName::Base::Reader::hasRelativeName() const {
3029 3030
  KJ_IREQUIRE(which() == Base::RELATIVE_NAME,
              "Must check which() before get()ing a union member.");
3031 3032 3033
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool DeclName::Base::Builder::hasRelativeName() {
3034 3035
  KJ_IREQUIRE(which() == Base::RELATIVE_NAME,
              "Must check which() before get()ing a union member.");
3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Reader DeclName::Base::Reader::getRelativeName() const {
  KJ_IREQUIRE(which() == Base::RELATIVE_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Builder DeclName::Base::Builder::getRelativeName() {
  KJ_IREQUIRE(which() == Base::RELATIVE_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void DeclName::Base::Builder::setRelativeName( ::capnp::compiler::LocatedText::Reader value) {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::RELATIVE_NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedText::Builder DeclName::Base::Builder::initRelativeName() {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::RELATIVE_NAME);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void DeclName::Base::Builder::adoptRelativeName(
    ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::RELATIVE_NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::LocatedText> DeclName::Base::Builder::disownRelativeName() {
  KJ_IREQUIRE(which() == Base::RELATIVE_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool DeclName::Base::Reader::hasImportName() const {
3077 3078
  KJ_IREQUIRE(which() == Base::IMPORT_NAME,
              "Must check which() before get()ing a union member.");
3079 3080 3081
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool DeclName::Base::Builder::hasImportName() {
3082 3083
  KJ_IREQUIRE(which() == Base::IMPORT_NAME,
              "Must check which() before get()ing a union member.");
3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Reader DeclName::Base::Reader::getImportName() const {
  KJ_IREQUIRE(which() == Base::IMPORT_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Builder DeclName::Base::Builder::getImportName() {
  KJ_IREQUIRE(which() == Base::IMPORT_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void DeclName::Base::Builder::setImportName( ::capnp::compiler::LocatedText::Reader value) {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::IMPORT_NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedText::Builder DeclName::Base::Builder::initImportName() {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::IMPORT_NAME);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void DeclName::Base::Builder::adoptImportName(
    ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) {
  _builder.setDataField<Base::Which>(
      0 * ::capnp::ELEMENTS, Base::IMPORT_NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::LocatedText> DeclName::Base::Builder::disownImportName() {
  KJ_IREQUIRE(which() == Base::IMPORT_NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

3124 3125
inline bool DeclName::Reader::hasMemberPath() const {
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
3126
}
3127 3128
inline bool DeclName::Builder::hasMemberPath() {
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
3129
}
3130 3131 3132
inline  ::capnp::List< ::capnp::compiler::LocatedText>::Reader DeclName::Reader::getMemberPath() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::LocatedText>>::get(
      _reader, 1 * ::capnp::POINTERS);
3133
}
3134 3135 3136
inline  ::capnp::List< ::capnp::compiler::LocatedText>::Builder DeclName::Builder::getMemberPath() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::LocatedText>>::get(
      _builder, 1 * ::capnp::POINTERS);
3137
}
3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181
inline void DeclName::Builder::setMemberPath( ::capnp::List< ::capnp::compiler::LocatedText>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::LocatedText>>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::LocatedText>::Builder DeclName::Builder::initMemberPath(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::LocatedText>>::init(
      _builder, 1 * ::capnp::POINTERS, size);
}
inline void DeclName::Builder::adoptMemberPath(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::LocatedText>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::LocatedText>>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::LocatedText>> DeclName::Builder::disownMemberPath() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::LocatedText>>::disown(
      _builder, 1 * ::capnp::POINTERS);
}

inline  ::uint32_t DeclName::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}

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

inline  ::uint32_t DeclName::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS);
}

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

3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201
inline bool TypeExpression::Reader::hasName() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool TypeExpression::Builder::hasName() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Reader TypeExpression::Reader::getName() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Builder TypeExpression::Builder::getName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void TypeExpression::Builder::setName( ::capnp::compiler::DeclName::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301
inline  ::capnp::compiler::DeclName::Builder TypeExpression::Builder::initName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void TypeExpression::Builder::adoptName(
    ::capnp::Orphan< ::capnp::compiler::DeclName>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::DeclName> TypeExpression::Builder::disownName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool TypeExpression::Reader::hasParams() const {
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline bool TypeExpression::Builder::hasParams() {
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::TypeExpression>::Reader TypeExpression::Reader::getParams() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::TypeExpression>>::get(
      _reader, 1 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::TypeExpression>::Builder TypeExpression::Builder::getParams() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::TypeExpression>>::get(
      _builder, 1 * ::capnp::POINTERS);
}
inline void TypeExpression::Builder::setParams( ::capnp::List< ::capnp::compiler::TypeExpression>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::TypeExpression>>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::TypeExpression>::Builder TypeExpression::Builder::initParams(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::TypeExpression>>::init(
      _builder, 1 * ::capnp::POINTERS, size);
}
inline void TypeExpression::Builder::adoptParams(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::TypeExpression>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::TypeExpression>>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::TypeExpression>> TypeExpression::Builder::disownParams() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::TypeExpression>>::disown(
      _builder, 1 * ::capnp::POINTERS);
}

inline  ::uint32_t TypeExpression::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}

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

inline  ::uint32_t TypeExpression::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}

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

inline ValueExpression::Body::Reader ValueExpression::Reader::getBody() const {
  return ValueExpression::Body::Reader(_reader);
}
inline ValueExpression::Body::Builder ValueExpression::Builder::getBody() {
  return ValueExpression::Body::Builder(_builder);
}
inline ValueExpression::Body::Which ValueExpression::Body::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline ValueExpression::Body::Which ValueExpression::Body::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void ValueExpression::Body::Reader::getUnknown() const {
  KJ_IREQUIRE(which() == Body::UNKNOWN,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void ValueExpression::Body::Builder::getUnknown() {
  KJ_IREQUIRE(which() == Body::UNKNOWN,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
3302
inline void ValueExpression::Body::Builder::setUnknown( ::capnp::Void value) {
3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::UNKNOWN);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::uint64_t ValueExpression::Body::Reader::getPositiveInt() const {
  KJ_IREQUIRE(which() == Body::POSITIVE_INT,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS);
}

inline  ::uint64_t ValueExpression::Body::Builder::getPositiveInt() {
  KJ_IREQUIRE(which() == Body::POSITIVE_INT,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS);
}
inline void ValueExpression::Body::Builder::setPositiveInt( ::uint64_t value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::POSITIVE_INT);
  _builder.setDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS, value);
}

inline  ::uint64_t ValueExpression::Body::Reader::getNegativeInt() const {
  KJ_IREQUIRE(which() == Body::NEGATIVE_INT,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS);
}

inline  ::uint64_t ValueExpression::Body::Builder::getNegativeInt() {
  KJ_IREQUIRE(which() == Body::NEGATIVE_INT,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS);
}
inline void ValueExpression::Body::Builder::setNegativeInt( ::uint64_t value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::NEGATIVE_INT);
  _builder.setDataField< ::uint64_t>(
      1 * ::capnp::ELEMENTS, value);
}

inline double ValueExpression::Body::Reader::getFloat() const {
  KJ_IREQUIRE(which() == Body::FLOAT,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField<double>(
      1 * ::capnp::ELEMENTS);
}

inline double ValueExpression::Body::Builder::getFloat() {
  KJ_IREQUIRE(which() == Body::FLOAT,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField<double>(
      1 * ::capnp::ELEMENTS);
}
inline void ValueExpression::Body::Builder::setFloat(double value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::FLOAT);
  _builder.setDataField<double>(
      1 * ::capnp::ELEMENTS, value);
}

inline bool ValueExpression::Body::Reader::hasString() const {
3370 3371
  KJ_IREQUIRE(which() == Body::STRING,
              "Must check which() before get()ing a union member.");
3372 3373 3374
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool ValueExpression::Body::Builder::hasString() {
3375 3376
  KJ_IREQUIRE(which() == Body::STRING,
              "Must check which() before get()ing a union member.");
3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Reader ValueExpression::Body::Reader::getString() const {
  KJ_IREQUIRE(which() == Body::STRING,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Builder ValueExpression::Body::Builder::getString() {
  KJ_IREQUIRE(which() == Body::STRING,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::Body::Builder::setString( ::capnp::Text::Reader value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::STRING);
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::Text::Builder ValueExpression::Body::Builder::initString(unsigned int size) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::STRING);
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void ValueExpression::Body::Builder::adoptString(
    ::capnp::Orphan< ::capnp::Text>&& value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::STRING);
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::Text> ValueExpression::Body::Builder::disownString() {
  KJ_IREQUIRE(which() == Body::STRING,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool ValueExpression::Body::Reader::hasName() const {
3418 3419
  KJ_IREQUIRE(which() == Body::NAME,
              "Must check which() before get()ing a union member.");
3420 3421 3422
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool ValueExpression::Body::Builder::hasName() {
3423 3424
  KJ_IREQUIRE(which() == Body::NAME,
              "Must check which() before get()ing a union member.");
3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Reader ValueExpression::Body::Reader::getName() const {
  KJ_IREQUIRE(which() == Body::NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Builder ValueExpression::Body::Builder::getName() {
  KJ_IREQUIRE(which() == Body::NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::Body::Builder::setName( ::capnp::compiler::DeclName::Reader value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::DeclName::Builder ValueExpression::Body::Builder::initName() {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::NAME);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::Body::Builder::adoptName(
    ::capnp::Orphan< ::capnp::compiler::DeclName>&& value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::NAME);
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::DeclName> ValueExpression::Body::Builder::disownName() {
  KJ_IREQUIRE(which() == Body::NAME,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool ValueExpression::Body::Reader::hasList() const {
3466 3467
  KJ_IREQUIRE(which() == Body::LIST,
              "Must check which() before get()ing a union member.");
3468 3469 3470
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool ValueExpression::Body::Builder::hasList() {
3471 3472
  KJ_IREQUIRE(which() == Body::LIST,
              "Must check which() before get()ing a union member.");
3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::ValueExpression>::Reader ValueExpression::Body::Reader::getList() const {
  KJ_IREQUIRE(which() == Body::LIST,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::ValueExpression>::Builder ValueExpression::Body::Builder::getList() {
  KJ_IREQUIRE(which() == Body::LIST,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::Body::Builder::setList( ::capnp::List< ::capnp::compiler::ValueExpression>::Reader value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::LIST);
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::ValueExpression>::Builder ValueExpression::Body::Builder::initList(unsigned int size) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::LIST);
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void ValueExpression::Body::Builder::adoptList(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression>>&& value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::LIST);
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression>> ValueExpression::Body::Builder::disownList() {
  KJ_IREQUIRE(which() == Body::LIST,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool ValueExpression::Body::Reader::hasStructValue() const {
3514 3515
  KJ_IREQUIRE(which() == Body::STRUCT_VALUE,
              "Must check which() before get()ing a union member.");
3516 3517 3518
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool ValueExpression::Body::Builder::hasStructValue() {
3519 3520
  KJ_IREQUIRE(which() == Body::STRUCT_VALUE,
              "Must check which() before get()ing a union member.");
3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Reader ValueExpression::Body::Reader::getStructValue() const {
  KJ_IREQUIRE(which() == Body::STRUCT_VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Builder ValueExpression::Body::Builder::getStructValue() {
  KJ_IREQUIRE(which() == Body::STRUCT_VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::Body::Builder::setStructValue( ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Reader value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::STRUCT_VALUE);
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>::Builder ValueExpression::Body::Builder::initStructValue(unsigned int size) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::STRUCT_VALUE);
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void ValueExpression::Body::Builder::adoptStructValue(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>&& value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::STRUCT_VALUE);
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>> ValueExpression::Body::Builder::disownStructValue() {
  KJ_IREQUIRE(which() == Body::STRUCT_VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::ValueExpression::FieldAssignment>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool ValueExpression::Body::Reader::hasUnionValue() const {
3562 3563
  KJ_IREQUIRE(which() == Body::UNION_VALUE,
              "Must check which() before get()ing a union member.");
3564 3565 3566
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool ValueExpression::Body::Builder::hasUnionValue() {
3567 3568
  KJ_IREQUIRE(which() == Body::UNION_VALUE,
              "Must check which() before get()ing a union member.");
3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::FieldAssignment::Reader ValueExpression::Body::Reader::getUnionValue() const {
  KJ_IREQUIRE(which() == Body::UNION_VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression::FieldAssignment>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::FieldAssignment::Builder ValueExpression::Body::Builder::getUnionValue() {
  KJ_IREQUIRE(which() == Body::UNION_VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression::FieldAssignment>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::Body::Builder::setUnionValue( ::capnp::compiler::ValueExpression::FieldAssignment::Reader value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::UNION_VALUE);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression::FieldAssignment>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::ValueExpression::FieldAssignment::Builder ValueExpression::Body::Builder::initUnionValue() {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::UNION_VALUE);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression::FieldAssignment>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::Body::Builder::adoptUnionValue(
    ::capnp::Orphan< ::capnp::compiler::ValueExpression::FieldAssignment>&& value) {
  _builder.setDataField<Body::Which>(
      0 * ::capnp::ELEMENTS, Body::UNION_VALUE);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression::FieldAssignment>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::ValueExpression::FieldAssignment> ValueExpression::Body::Builder::disownUnionValue() {
  KJ_IREQUIRE(which() == Body::UNION_VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression::FieldAssignment>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

3609 3610 3611 3612
inline  ::uint32_t ValueExpression::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}
3613

3614 3615 3616 3617 3618 3619 3620 3621
inline  ::uint32_t ValueExpression::Builder::getStartByte() {
  return _builder.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}
inline void ValueExpression::Builder::setStartByte( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS, value);
}
3622

3623 3624 3625 3626
inline  ::uint32_t ValueExpression::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      4 * ::capnp::ELEMENTS);
}
3627

3628 3629 3630 3631 3632 3633 3634 3635
inline  ::uint32_t ValueExpression::Builder::getEndByte() {
  return _builder.getDataField< ::uint32_t>(
      4 * ::capnp::ELEMENTS);
}
inline void ValueExpression::Builder::setEndByte( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      4 * ::capnp::ELEMENTS, value);
}
3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732

inline bool ValueExpression::FieldAssignment::Reader::hasFieldName() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool ValueExpression::FieldAssignment::Builder::hasFieldName() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Reader ValueExpression::FieldAssignment::Reader::getFieldName() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Builder ValueExpression::FieldAssignment::Builder::getFieldName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::FieldAssignment::Builder::setFieldName( ::capnp::compiler::LocatedText::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedText::Builder ValueExpression::FieldAssignment::Builder::initFieldName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ValueExpression::FieldAssignment::Builder::adoptFieldName(
    ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::LocatedText> ValueExpression::FieldAssignment::Builder::disownFieldName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool ValueExpression::FieldAssignment::Reader::hasValue() const {
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline bool ValueExpression::FieldAssignment::Builder::hasValue() {
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Reader ValueExpression::FieldAssignment::Reader::getValue() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _reader, 1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Builder ValueExpression::FieldAssignment::Builder::getValue() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _builder, 1 * ::capnp::POINTERS);
}
inline void ValueExpression::FieldAssignment::Builder::setValue( ::capnp::compiler::ValueExpression::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::ValueExpression::Builder ValueExpression::FieldAssignment::Builder::initValue() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::init(
      _builder, 1 * ::capnp::POINTERS);
}
inline void ValueExpression::FieldAssignment::Builder::adoptValue(
    ::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> ValueExpression::FieldAssignment::Builder::disownValue() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::disown(
      _builder, 1 * ::capnp::POINTERS);
}

inline bool Declaration::Reader::hasName() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::Builder::hasName() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Reader Declaration::Reader::getName() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Builder Declaration::Builder::getName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Builder::setName( ::capnp::compiler::LocatedText::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedText::Builder Declaration::Builder::initName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Builder::adoptName(
    ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Declaration::Builder::disownName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

3733 3734
inline Declaration::Id::Reader Declaration::Reader::getId() const {
  return Declaration::Id::Reader(_reader);
3735
}
3736 3737
inline Declaration::Id::Builder Declaration::Builder::getId() {
  return Declaration::Id::Builder(_builder);
3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758
}
inline Declaration::Id::Which Declaration::Id::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline Declaration::Id::Which Declaration::Id::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Id::Reader::getUnspecified() const {
  KJ_IREQUIRE(which() == Id::UNSPECIFIED,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Id::Builder::getUnspecified() {
  KJ_IREQUIRE(which() == Id::UNSPECIFIED,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
3759
inline void Declaration::Id::Builder::setUnspecified( ::capnp::Void value) {
3760 3761 3762 3763 3764 3765 3766
  _builder.setDataField<Id::Which>(
      0 * ::capnp::ELEMENTS, Id::UNSPECIFIED);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Id::Reader::hasUid() const {
3767 3768
  KJ_IREQUIRE(which() == Id::UID,
              "Must check which() before get()ing a union member.");
3769 3770 3771
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline bool Declaration::Id::Builder::hasUid() {
3772 3773
  KJ_IREQUIRE(which() == Id::UID,
              "Must check which() before get()ing a union member.");
3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedInteger::Reader Declaration::Id::Reader::getUid() const {
  KJ_IREQUIRE(which() == Id::UID,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(
      _reader, 1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::getUid() {
  KJ_IREQUIRE(which() == Id::UID,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Id::Builder::setUid( ::capnp::compiler::LocatedInteger::Reader value) {
  _builder.setDataField<Id::Which>(
      0 * ::capnp::ELEMENTS, Id::UID);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::initUid() {
  _builder.setDataField<Id::Which>(
      0 * ::capnp::ELEMENTS, Id::UID);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::init(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Id::Builder::adoptUid(
    ::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value) {
  _builder.setDataField<Id::Which>(
      0 * ::capnp::ELEMENTS, Id::UID);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
3807 3808
inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> Declaration::Id::Builder::disownUid() {
  KJ_IREQUIRE(which() == Id::UID,
3809
              "Must check which() before get()ing a union member.");
3810 3811
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::disown(
      _builder, 1 * ::capnp::POINTERS);
3812 3813
}

3814 3815
inline bool Declaration::Id::Reader::hasOrdinal() const {
  KJ_IREQUIRE(which() == Id::ORDINAL,
3816 3817 3818
              "Must check which() before get()ing a union member.");
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
3819 3820 3821
inline bool Declaration::Id::Builder::hasOrdinal() {
  KJ_IREQUIRE(which() == Id::ORDINAL,
              "Must check which() before get()ing a union member.");
3822 3823
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
3824 3825
inline  ::capnp::compiler::LocatedInteger::Reader Declaration::Id::Reader::getOrdinal() const {
  KJ_IREQUIRE(which() == Id::ORDINAL,
3826
              "Must check which() before get()ing a union member.");
3827
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(
3828 3829
      _reader, 1 * ::capnp::POINTERS);
}
3830 3831
inline  ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::getOrdinal() {
  KJ_IREQUIRE(which() == Id::ORDINAL,
3832
              "Must check which() before get()ing a union member.");
3833
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(
3834 3835
      _builder, 1 * ::capnp::POINTERS);
}
3836 3837 3838 3839
inline void Declaration::Id::Builder::setOrdinal( ::capnp::compiler::LocatedInteger::Reader value) {
  _builder.setDataField<Id::Which>(
      0 * ::capnp::ELEMENTS, Id::ORDINAL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::set(
3840 3841
      _builder, 1 * ::capnp::POINTERS, value);
}
3842 3843 3844 3845
inline  ::capnp::compiler::LocatedInteger::Builder Declaration::Id::Builder::initOrdinal() {
  _builder.setDataField<Id::Which>(
      0 * ::capnp::ELEMENTS, Id::ORDINAL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::init(
3846 3847
      _builder, 1 * ::capnp::POINTERS);
}
3848 3849 3850 3851 3852
inline void Declaration::Id::Builder::adoptOrdinal(
    ::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value) {
  _builder.setDataField<Id::Which>(
      0 * ::capnp::ELEMENTS, Id::ORDINAL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::adopt(
3853 3854
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
3855 3856
inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> Declaration::Id::Builder::disownOrdinal() {
  KJ_IREQUIRE(which() == Id::ORDINAL,
3857
              "Must check which() before get()ing a union member.");
3858
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::disown(
3859 3860 3861
      _builder, 1 * ::capnp::POINTERS);
}

3862 3863
inline bool Declaration::Reader::hasAnnotations() const {
  return !_reader.isPointerFieldNull(2 * ::capnp::POINTERS);
3864
}
3865 3866
inline bool Declaration::Builder::hasAnnotations() {
  return !_builder.isPointerFieldNull(2 * ::capnp::POINTERS);
3867
}
3868 3869 3870
inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader Declaration::Reader::getAnnotations() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::get(
      _reader, 2 * ::capnp::POINTERS);
3871
}
3872 3873 3874
inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder Declaration::Builder::getAnnotations() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::get(
      _builder, 2 * ::capnp::POINTERS);
3875
}
3876 3877 3878
inline void Declaration::Builder::setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::set(
      _builder, 2 * ::capnp::POINTERS, value);
3879
}
3880 3881 3882
inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder Declaration::Builder::initAnnotations(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::init(
      _builder, 2 * ::capnp::POINTERS, size);
3883
}
3884 3885 3886 3887
inline void Declaration::Builder::adoptAnnotations(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::adopt(
      _builder, 2 * ::capnp::POINTERS, kj::mv(value));
3888
}
3889 3890 3891
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>> Declaration::Builder::disownAnnotations() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::disown(
      _builder, 2 * ::capnp::POINTERS);
3892 3893
}

3894 3895
inline Declaration::Body::Reader Declaration::Reader::getBody() const {
  return Declaration::Body::Reader(_reader);
3896
}
3897 3898 3899 3900 3901 3902 3903 3904
inline Declaration::Body::Builder Declaration::Builder::getBody() {
  return Declaration::Body::Builder(_builder);
}
inline Declaration::Body::Which Declaration::Body::Reader::which() const {
  return _reader.getDataField<Which>(1 * ::capnp::ELEMENTS);
}
inline Declaration::Body::Which Declaration::Body::Builder::which() {
  return _builder.getDataField<Which>(1 * ::capnp::ELEMENTS);
3905 3906 3907
}

inline bool Declaration::Body::Reader::hasUsingDecl() const {
3908 3909
  KJ_IREQUIRE(which() == Body::USING_DECL,
              "Must check which() before get()ing a union member.");
3910 3911 3912
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasUsingDecl() {
3913 3914
  KJ_IREQUIRE(which() == Body::USING_DECL,
              "Must check which() before get()ing a union member.");
3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Using::Reader Declaration::Body::Reader::getUsingDecl() const {
  KJ_IREQUIRE(which() == Body::USING_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Using>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Using::Builder Declaration::Body::Builder::getUsingDecl() {
  KJ_IREQUIRE(which() == Body::USING_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Using>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setUsingDecl( ::capnp::compiler::Declaration::Using::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::USING_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Using>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Using::Builder Declaration::Body::Builder::initUsingDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::USING_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Using>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptUsingDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Using>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::USING_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Using>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Using> Declaration::Body::Builder::disownUsingDecl() {
  KJ_IREQUIRE(which() == Body::USING_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Using>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasConstDecl() const {
3956 3957
  KJ_IREQUIRE(which() == Body::CONST_DECL,
              "Must check which() before get()ing a union member.");
3958 3959 3960
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasConstDecl() {
3961 3962
  KJ_IREQUIRE(which() == Body::CONST_DECL,
              "Must check which() before get()ing a union member.");
3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Const::Reader Declaration::Body::Reader::getConstDecl() const {
  KJ_IREQUIRE(which() == Body::CONST_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Const>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Const::Builder Declaration::Body::Builder::getConstDecl() {
  KJ_IREQUIRE(which() == Body::CONST_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Const>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setConstDecl( ::capnp::compiler::Declaration::Const::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::CONST_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Const>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Const::Builder Declaration::Body::Builder::initConstDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::CONST_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Const>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptConstDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Const>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::CONST_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Const>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Const> Declaration::Body::Builder::disownConstDecl() {
  KJ_IREQUIRE(which() == Body::CONST_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Const>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasEnumDecl() const {
4004 4005
  KJ_IREQUIRE(which() == Body::ENUM_DECL,
              "Must check which() before get()ing a union member.");
4006 4007 4008
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasEnumDecl() {
4009 4010
  KJ_IREQUIRE(which() == Body::ENUM_DECL,
              "Must check which() before get()ing a union member.");
4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Enum::Reader Declaration::Body::Reader::getEnumDecl() const {
  KJ_IREQUIRE(which() == Body::ENUM_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enum>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Enum::Builder Declaration::Body::Builder::getEnumDecl() {
  KJ_IREQUIRE(which() == Body::ENUM_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enum>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setEnumDecl( ::capnp::compiler::Declaration::Enum::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ENUM_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enum>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Enum::Builder Declaration::Body::Builder::initEnumDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ENUM_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enum>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptEnumDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Enum>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ENUM_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enum>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Enum> Declaration::Body::Builder::disownEnumDecl() {
  KJ_IREQUIRE(which() == Body::ENUM_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enum>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasEnumerantDecl() const {
4052 4053
  KJ_IREQUIRE(which() == Body::ENUMERANT_DECL,
              "Must check which() before get()ing a union member.");
4054 4055 4056
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasEnumerantDecl() {
4057 4058
  KJ_IREQUIRE(which() == Body::ENUMERANT_DECL,
              "Must check which() before get()ing a union member.");
4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Enumerant::Reader Declaration::Body::Reader::getEnumerantDecl() const {
  KJ_IREQUIRE(which() == Body::ENUMERANT_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enumerant>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Enumerant::Builder Declaration::Body::Builder::getEnumerantDecl() {
  KJ_IREQUIRE(which() == Body::ENUMERANT_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enumerant>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setEnumerantDecl( ::capnp::compiler::Declaration::Enumerant::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ENUMERANT_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enumerant>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Enumerant::Builder Declaration::Body::Builder::initEnumerantDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ENUMERANT_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enumerant>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptEnumerantDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Enumerant>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ENUMERANT_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enumerant>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Enumerant> Declaration::Body::Builder::disownEnumerantDecl() {
  KJ_IREQUIRE(which() == Body::ENUMERANT_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Enumerant>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasStructDecl() const {
4100 4101
  KJ_IREQUIRE(which() == Body::STRUCT_DECL,
              "Must check which() before get()ing a union member.");
4102 4103 4104
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasStructDecl() {
4105 4106
  KJ_IREQUIRE(which() == Body::STRUCT_DECL,
              "Must check which() before get()ing a union member.");
4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Struct::Reader Declaration::Body::Reader::getStructDecl() const {
  KJ_IREQUIRE(which() == Body::STRUCT_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Struct>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Struct::Builder Declaration::Body::Builder::getStructDecl() {
  KJ_IREQUIRE(which() == Body::STRUCT_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Struct>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setStructDecl( ::capnp::compiler::Declaration::Struct::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::STRUCT_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Struct>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Struct::Builder Declaration::Body::Builder::initStructDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::STRUCT_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Struct>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptStructDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Struct>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::STRUCT_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Struct>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Struct> Declaration::Body::Builder::disownStructDecl() {
  KJ_IREQUIRE(which() == Body::STRUCT_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Struct>::disown(
4144 4145
      _builder, 3 * ::capnp::POINTERS);
}
4146 4147

inline bool Declaration::Body::Reader::hasFieldDecl() const {
4148 4149
  KJ_IREQUIRE(which() == Body::FIELD_DECL,
              "Must check which() before get()ing a union member.");
4150 4151 4152
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasFieldDecl() {
4153 4154
  KJ_IREQUIRE(which() == Body::FIELD_DECL,
              "Must check which() before get()ing a union member.");
4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Field::Reader Declaration::Body::Reader::getFieldDecl() const {
  KJ_IREQUIRE(which() == Body::FIELD_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Field>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Field::Builder Declaration::Body::Builder::getFieldDecl() {
  KJ_IREQUIRE(which() == Body::FIELD_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Field>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setFieldDecl( ::capnp::compiler::Declaration::Field::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::FIELD_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Field>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Field::Builder Declaration::Body::Builder::initFieldDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::FIELD_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Field>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptFieldDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Field>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::FIELD_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Field>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Field> Declaration::Body::Builder::disownFieldDecl() {
  KJ_IREQUIRE(which() == Body::FIELD_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Field>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasUnionDecl() const {
4196 4197
  KJ_IREQUIRE(which() == Body::UNION_DECL,
              "Must check which() before get()ing a union member.");
4198 4199 4200
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasUnionDecl() {
4201 4202
  KJ_IREQUIRE(which() == Body::UNION_DECL,
              "Must check which() before get()ing a union member.");
4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Union::Reader Declaration::Body::Reader::getUnionDecl() const {
  KJ_IREQUIRE(which() == Body::UNION_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Union>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Union::Builder Declaration::Body::Builder::getUnionDecl() {
  KJ_IREQUIRE(which() == Body::UNION_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Union>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setUnionDecl( ::capnp::compiler::Declaration::Union::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::UNION_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Union>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Union::Builder Declaration::Body::Builder::initUnionDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::UNION_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Union>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptUnionDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Union>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::UNION_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Union>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Union> Declaration::Body::Builder::disownUnionDecl() {
  KJ_IREQUIRE(which() == Body::UNION_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Union>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasInterfaceDecl() const {
4244 4245
  KJ_IREQUIRE(which() == Body::INTERFACE_DECL,
              "Must check which() before get()ing a union member.");
4246 4247 4248
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasInterfaceDecl() {
4249 4250
  KJ_IREQUIRE(which() == Body::INTERFACE_DECL,
              "Must check which() before get()ing a union member.");
4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Interface::Reader Declaration::Body::Reader::getInterfaceDecl() const {
  KJ_IREQUIRE(which() == Body::INTERFACE_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Interface>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Interface::Builder Declaration::Body::Builder::getInterfaceDecl() {
  KJ_IREQUIRE(which() == Body::INTERFACE_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Interface>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setInterfaceDecl( ::capnp::compiler::Declaration::Interface::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::INTERFACE_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Interface>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Interface::Builder Declaration::Body::Builder::initInterfaceDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::INTERFACE_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Interface>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptInterfaceDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Interface>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::INTERFACE_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Interface>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Interface> Declaration::Body::Builder::disownInterfaceDecl() {
  KJ_IREQUIRE(which() == Body::INTERFACE_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Interface>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasMethodDecl() const {
4292 4293
  KJ_IREQUIRE(which() == Body::METHOD_DECL,
              "Must check which() before get()ing a union member.");
4294 4295 4296
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasMethodDecl() {
4297 4298
  KJ_IREQUIRE(which() == Body::METHOD_DECL,
              "Must check which() before get()ing a union member.");
4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Method::Reader Declaration::Body::Reader::getMethodDecl() const {
  KJ_IREQUIRE(which() == Body::METHOD_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Method>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Method::Builder Declaration::Body::Builder::getMethodDecl() {
  KJ_IREQUIRE(which() == Body::METHOD_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Method>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setMethodDecl( ::capnp::compiler::Declaration::Method::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::METHOD_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Method>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Method::Builder Declaration::Body::Builder::initMethodDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::METHOD_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Method>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptMethodDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Method>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::METHOD_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Method>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Method> Declaration::Body::Builder::disownMethodDecl() {
  KJ_IREQUIRE(which() == Body::METHOD_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Method>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasAnnotationDecl() const {
4340 4341
  KJ_IREQUIRE(which() == Body::ANNOTATION_DECL,
              "Must check which() before get()ing a union member.");
4342 4343 4344
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasAnnotationDecl() {
4345 4346
  KJ_IREQUIRE(which() == Body::ANNOTATION_DECL,
              "Must check which() before get()ing a union member.");
4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Annotation::Reader Declaration::Body::Reader::getAnnotationDecl() const {
  KJ_IREQUIRE(which() == Body::ANNOTATION_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Annotation>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Annotation::Builder Declaration::Body::Builder::getAnnotationDecl() {
  KJ_IREQUIRE(which() == Body::ANNOTATION_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Annotation>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setAnnotationDecl( ::capnp::compiler::Declaration::Annotation::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ANNOTATION_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Annotation>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Annotation::Builder Declaration::Body::Builder::initAnnotationDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ANNOTATION_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Annotation>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptAnnotationDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Annotation>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::ANNOTATION_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Annotation>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Annotation> Declaration::Body::Builder::disownAnnotationDecl() {
  KJ_IREQUIRE(which() == Body::ANNOTATION_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Annotation>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasNakedId() const {
4388 4389
  KJ_IREQUIRE(which() == Body::NAKED_ID,
              "Must check which() before get()ing a union member.");
4390 4391 4392
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasNakedId() {
4393 4394
  KJ_IREQUIRE(which() == Body::NAKED_ID,
              "Must check which() before get()ing a union member.");
4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedInteger::Reader Declaration::Body::Reader::getNakedId() const {
  KJ_IREQUIRE(which() == Body::NAKED_ID,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedInteger::Builder Declaration::Body::Builder::getNakedId() {
  KJ_IREQUIRE(which() == Body::NAKED_ID,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setNakedId( ::capnp::compiler::LocatedInteger::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::NAKED_ID);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedInteger::Builder Declaration::Body::Builder::initNakedId() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::NAKED_ID);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptNakedId(
    ::capnp::Orphan< ::capnp::compiler::LocatedInteger>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::NAKED_ID);
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::LocatedInteger> Declaration::Body::Builder::disownNakedId() {
  KJ_IREQUIRE(which() == Body::NAKED_ID,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedInteger>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasNakedAnnotation() const {
4436 4437
  KJ_IREQUIRE(which() == Body::NAKED_ANNOTATION,
              "Must check which() before get()ing a union member.");
4438 4439 4440
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasNakedAnnotation() {
4441 4442
  KJ_IREQUIRE(which() == Body::NAKED_ANNOTATION,
              "Must check which() before get()ing a union member.");
4443 4444 4445 4446 4447
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::AnnotationApplication::Reader Declaration::Body::Reader::getNakedAnnotation() const {
  KJ_IREQUIRE(which() == Body::NAKED_ANNOTATION,
              "Must check which() before get()ing a union member.");
4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::AnnotationApplication::Builder Declaration::Body::Builder::getNakedAnnotation() {
  KJ_IREQUIRE(which() == Body::NAKED_ANNOTATION,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setNakedAnnotation( ::capnp::compiler::Declaration::AnnotationApplication::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::NAKED_ANNOTATION);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::AnnotationApplication::Builder Declaration::Body::Builder::initNakedAnnotation() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::NAKED_ANNOTATION);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptNakedAnnotation(
    ::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::NAKED_ANNOTATION);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::AnnotationApplication> Declaration::Body::Builder::disownNakedAnnotation() {
  KJ_IREQUIRE(which() == Body::NAKED_ANNOTATION,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::AnnotationApplication>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasGroupDecl() const {
  KJ_IREQUIRE(which() == Body::GROUP_DECL,
              "Must check which() before get()ing a union member.");
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasGroupDecl() {
  KJ_IREQUIRE(which() == Body::GROUP_DECL,
              "Must check which() before get()ing a union member.");
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Group::Reader Declaration::Body::Reader::getGroupDecl() const {
  KJ_IREQUIRE(which() == Body::GROUP_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Group>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Group::Builder Declaration::Body::Builder::getGroupDecl() {
  KJ_IREQUIRE(which() == Body::GROUP_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Group>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::setGroupDecl( ::capnp::compiler::Declaration::Group::Reader value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::GROUP_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Group>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Group::Builder Declaration::Body::Builder::initGroupDecl() {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::GROUP_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Group>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Body::Builder::adoptGroupDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::Group>&& value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::GROUP_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Group>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration::Group> Declaration::Body::Builder::disownGroupDecl() {
  KJ_IREQUIRE(which() == Body::GROUP_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::Group>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Body::Reader::hasFileDecl() const {
  KJ_IREQUIRE(which() == Body::FILE_DECL,
              "Must check which() before get()ing a union member.");
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Body::Builder::hasFileDecl() {
  KJ_IREQUIRE(which() == Body::FILE_DECL,
              "Must check which() before get()ing a union member.");
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::File::Reader Declaration::Body::Reader::getFileDecl() const {
  KJ_IREQUIRE(which() == Body::FILE_DECL,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::File>::get(
4545 4546
      _reader, 3 * ::capnp::POINTERS);
}
4547 4548
inline  ::capnp::compiler::Declaration::File::Builder Declaration::Body::Builder::getFileDecl() {
  KJ_IREQUIRE(which() == Body::FILE_DECL,
4549
              "Must check which() before get()ing a union member.");
4550
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::File>::get(
4551 4552
      _builder, 3 * ::capnp::POINTERS);
}
4553
inline void Declaration::Body::Builder::setFileDecl( ::capnp::compiler::Declaration::File::Reader value) {
4554
  _builder.setDataField<Body::Which>(
4555 4556
      1 * ::capnp::ELEMENTS, Body::FILE_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::File>::set(
4557 4558
      _builder, 3 * ::capnp::POINTERS, value);
}
4559
inline  ::capnp::compiler::Declaration::File::Builder Declaration::Body::Builder::initFileDecl() {
4560
  _builder.setDataField<Body::Which>(
4561 4562
      1 * ::capnp::ELEMENTS, Body::FILE_DECL);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::File>::init(
4563 4564
      _builder, 3 * ::capnp::POINTERS);
}
4565 4566
inline void Declaration::Body::Builder::adoptFileDecl(
    ::capnp::Orphan< ::capnp::compiler::Declaration::File>&& value) {
4567
  _builder.setDataField<Body::Which>(
4568 4569
      1 * ::capnp::ELEMENTS, Body::FILE_DECL);
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::File>::adopt(
4570 4571
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
4572 4573
inline ::capnp::Orphan< ::capnp::compiler::Declaration::File> Declaration::Body::Builder::disownFileDecl() {
  KJ_IREQUIRE(which() == Body::FILE_DECL,
4574
              "Must check which() before get()ing a union member.");
4575
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration::File>::disown(
4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591
      _builder, 3 * ::capnp::POINTERS);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinVoid() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_VOID,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinVoid() {
  KJ_IREQUIRE(which() == Body::BUILTIN_VOID,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4592
inline void Declaration::Body::Builder::setBuiltinVoid( ::capnp::Void value) {
4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_VOID);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinBool() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_BOOL,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinBool() {
  KJ_IREQUIRE(which() == Body::BUILTIN_BOOL,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4612
inline void Declaration::Body::Builder::setBuiltinBool( ::capnp::Void value) {
4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_BOOL);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinInt8() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT8,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinInt8() {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT8,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4632
inline void Declaration::Body::Builder::setBuiltinInt8( ::capnp::Void value) {
4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_INT8);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinInt16() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT16,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinInt16() {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT16,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4652
inline void Declaration::Body::Builder::setBuiltinInt16( ::capnp::Void value) {
4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_INT16);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinInt32() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT32,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinInt32() {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT32,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4672
inline void Declaration::Body::Builder::setBuiltinInt32( ::capnp::Void value) {
4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_INT32);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinInt64() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT64,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinInt64() {
  KJ_IREQUIRE(which() == Body::BUILTIN_INT64,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4692
inline void Declaration::Body::Builder::setBuiltinInt64( ::capnp::Void value) {
4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_INT64);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinUInt8() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT8,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinUInt8() {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT8,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4712
inline void Declaration::Body::Builder::setBuiltinUInt8( ::capnp::Void value) {
4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_U_INT8);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinUInt16() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT16,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinUInt16() {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT16,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4732
inline void Declaration::Body::Builder::setBuiltinUInt16( ::capnp::Void value) {
4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_U_INT16);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinUInt32() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT32,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinUInt32() {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT32,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4752
inline void Declaration::Body::Builder::setBuiltinUInt32( ::capnp::Void value) {
4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_U_INT32);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinUInt64() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT64,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinUInt64() {
  KJ_IREQUIRE(which() == Body::BUILTIN_U_INT64,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4772
inline void Declaration::Body::Builder::setBuiltinUInt64( ::capnp::Void value) {
4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_U_INT64);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinFloat32() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_FLOAT32,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinFloat32() {
  KJ_IREQUIRE(which() == Body::BUILTIN_FLOAT32,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4792
inline void Declaration::Body::Builder::setBuiltinFloat32( ::capnp::Void value) {
4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_FLOAT32);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinFloat64() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_FLOAT64,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinFloat64() {
  KJ_IREQUIRE(which() == Body::BUILTIN_FLOAT64,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4812
inline void Declaration::Body::Builder::setBuiltinFloat64( ::capnp::Void value) {
4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_FLOAT64);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinText() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_TEXT,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinText() {
  KJ_IREQUIRE(which() == Body::BUILTIN_TEXT,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
4832
inline void Declaration::Body::Builder::setBuiltinText( ::capnp::Void value) {
4833 4834 4835 4836 4837 4838
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_TEXT);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037
inline  ::capnp::Void Declaration::Body::Reader::getBuiltinData() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_DATA,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinData() {
  KJ_IREQUIRE(which() == Body::BUILTIN_DATA,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
inline void Declaration::Body::Builder::setBuiltinData( ::capnp::Void value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_DATA);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinList() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_LIST,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinList() {
  KJ_IREQUIRE(which() == Body::BUILTIN_LIST,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
inline void Declaration::Body::Builder::setBuiltinList( ::capnp::Void value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_LIST);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::capnp::Void Declaration::Body::Reader::getBuiltinObject() const {
  KJ_IREQUIRE(which() == Body::BUILTIN_OBJECT,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Body::Builder::getBuiltinObject() {
  KJ_IREQUIRE(which() == Body::BUILTIN_OBJECT,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
inline void Declaration::Body::Builder::setBuiltinObject( ::capnp::Void value) {
  _builder.setDataField<Body::Which>(
      1 * ::capnp::ELEMENTS, Body::BUILTIN_OBJECT);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Reader::hasNestedDecls() const {
  return !_reader.isPointerFieldNull(4 * ::capnp::POINTERS);
}
inline bool Declaration::Builder::hasNestedDecls() {
  return !_builder.isPointerFieldNull(4 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Declaration>::Reader Declaration::Reader::getNestedDecls() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration>>::get(
      _reader, 4 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Declaration>::Builder Declaration::Builder::getNestedDecls() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration>>::get(
      _builder, 4 * ::capnp::POINTERS);
}
inline void Declaration::Builder::setNestedDecls( ::capnp::List< ::capnp::compiler::Declaration>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration>>::set(
      _builder, 4 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::Declaration>::Builder Declaration::Builder::initNestedDecls(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration>>::init(
      _builder, 4 * ::capnp::POINTERS, size);
}
inline void Declaration::Builder::adoptNestedDecls(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration>>::adopt(
      _builder, 4 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration>> Declaration::Builder::disownNestedDecls() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration>>::disown(
      _builder, 4 * ::capnp::POINTERS);
}

inline  ::uint32_t Declaration::Reader::getStartByte() const {
  return _reader.getDataField< ::uint32_t>(
      1 * ::capnp::ELEMENTS);
}

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

inline  ::uint32_t Declaration::Reader::getEndByte() const {
  return _reader.getDataField< ::uint32_t>(
      2 * ::capnp::ELEMENTS);
}

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

inline bool Declaration::Reader::hasDocComment() const {
  return !_reader.isPointerFieldNull(5 * ::capnp::POINTERS);
}
inline bool Declaration::Builder::hasDocComment() {
  return !_builder.isPointerFieldNull(5 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Reader Declaration::Reader::getDocComment() const {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _reader, 5 * ::capnp::POINTERS);
}
inline  ::capnp::Text::Builder Declaration::Builder::getDocComment() {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(
      _builder, 5 * ::capnp::POINTERS);
}
inline void Declaration::Builder::setDocComment( ::capnp::Text::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(
      _builder, 5 * ::capnp::POINTERS, value);
}
inline  ::capnp::Text::Builder Declaration::Builder::initDocComment(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(
      _builder, 5 * ::capnp::POINTERS, size);
}
inline void Declaration::Builder::adoptDocComment(
    ::capnp::Orphan< ::capnp::Text>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(
      _builder, 5 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::Text> Declaration::Builder::disownDocComment() {
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(
      _builder, 5 * ::capnp::POINTERS);
}

inline bool Declaration::AnnotationApplication::Reader::hasName() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::AnnotationApplication::Builder::hasName() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Reader Declaration::AnnotationApplication::Reader::getName() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Builder Declaration::AnnotationApplication::Builder::getName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::AnnotationApplication::Builder::setName( ::capnp::compiler::DeclName::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::DeclName::Builder Declaration::AnnotationApplication::Builder::initName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::AnnotationApplication::Builder::adoptName(
    ::capnp::Orphan< ::capnp::compiler::DeclName>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::DeclName> Declaration::AnnotationApplication::Builder::disownName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline Declaration::AnnotationApplication::Value::Reader Declaration::AnnotationApplication::Reader::getValue() const {
  return Declaration::AnnotationApplication::Value::Reader(_reader);
}
inline Declaration::AnnotationApplication::Value::Builder Declaration::AnnotationApplication::Builder::getValue() {
  return Declaration::AnnotationApplication::Value::Builder(_builder);
}
inline Declaration::AnnotationApplication::Value::Which Declaration::AnnotationApplication::Value::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline Declaration::AnnotationApplication::Value::Which Declaration::AnnotationApplication::Value::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::AnnotationApplication::Value::Reader::getNone() const {
  KJ_IREQUIRE(which() == Value::NONE,
5038 5039 5040 5041 5042
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

5043 5044
inline  ::capnp::Void Declaration::AnnotationApplication::Value::Builder::getNone() {
  KJ_IREQUIRE(which() == Value::NONE,
5045 5046 5047 5048
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
5049 5050 5051
inline void Declaration::AnnotationApplication::Value::Builder::setNone( ::capnp::Void value) {
  _builder.setDataField<Value::Which>(
      0 * ::capnp::ELEMENTS, Value::NONE);
5052 5053 5054 5055
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

5056 5057
inline bool Declaration::AnnotationApplication::Value::Reader::hasExpression() const {
  KJ_IREQUIRE(which() == Value::EXPRESSION,
5058
              "Must check which() before get()ing a union member.");
5059
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
5060
}
5061 5062
inline bool Declaration::AnnotationApplication::Value::Builder::hasExpression() {
  KJ_IREQUIRE(which() == Value::EXPRESSION,
5063
              "Must check which() before get()ing a union member.");
5064
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
5065
}
5066 5067
inline  ::capnp::compiler::ValueExpression::Reader Declaration::AnnotationApplication::Value::Reader::getExpression() const {
  KJ_IREQUIRE(which() == Value::EXPRESSION,
5068
              "Must check which() before get()ing a union member.");
5069 5070
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _reader, 1 * ::capnp::POINTERS);
5071
}
5072 5073
inline  ::capnp::compiler::ValueExpression::Builder Declaration::AnnotationApplication::Value::Builder::getExpression() {
  KJ_IREQUIRE(which() == Value::EXPRESSION,
5074
              "Must check which() before get()ing a union member.");
5075 5076
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _builder, 1 * ::capnp::POINTERS);
5077
}
5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101
inline void Declaration::AnnotationApplication::Value::Builder::setExpression( ::capnp::compiler::ValueExpression::Reader value) {
  _builder.setDataField<Value::Which>(
      0 * ::capnp::ELEMENTS, Value::EXPRESSION);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::ValueExpression::Builder Declaration::AnnotationApplication::Value::Builder::initExpression() {
  _builder.setDataField<Value::Which>(
      0 * ::capnp::ELEMENTS, Value::EXPRESSION);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::init(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::AnnotationApplication::Value::Builder::adoptExpression(
    ::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value) {
  _builder.setDataField<Value::Which>(
      0 * ::capnp::ELEMENTS, Value::EXPRESSION);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> Declaration::AnnotationApplication::Value::Builder::disownExpression() {
  KJ_IREQUIRE(which() == Value::EXPRESSION,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::disown(
      _builder, 1 * ::capnp::POINTERS);
5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231
}

inline bool Declaration::Using::Reader::hasTarget() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::Using::Builder::hasTarget() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Reader Declaration::Using::Reader::getTarget() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::DeclName::Builder Declaration::Using::Builder::getTarget() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Using::Builder::setTarget( ::capnp::compiler::DeclName::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::DeclName::Builder Declaration::Using::Builder::initTarget() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Using::Builder::adoptTarget(
    ::capnp::Orphan< ::capnp::compiler::DeclName>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::DeclName> Declaration::Using::Builder::disownTarget() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::DeclName>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool Declaration::Const::Reader::hasType() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::Const::Builder::hasType() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Reader Declaration::Const::Reader::getType() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Const::Builder::getType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Const::Builder::setType( ::capnp::compiler::TypeExpression::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Const::Builder::initType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Const::Builder::adoptType(
    ::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> Declaration::Const::Builder::disownType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool Declaration::Const::Reader::hasValue() const {
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline bool Declaration::Const::Builder::hasValue() {
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Reader Declaration::Const::Reader::getValue() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _reader, 1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Builder Declaration::Const::Builder::getValue() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Const::Builder::setValue( ::capnp::compiler::ValueExpression::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::ValueExpression::Builder Declaration::Const::Builder::initValue() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::init(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Const::Builder::adoptValue(
    ::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> Declaration::Const::Builder::disownValue() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::disown(
      _builder, 1 * ::capnp::POINTERS);
}

inline bool Declaration::Field::Reader::hasType() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::Field::Builder::hasType() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Reader Declaration::Field::Reader::getType() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Field::Builder::getType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Field::Builder::setType( ::capnp::compiler::TypeExpression::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Field::Builder::initType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Field::Builder::adoptType(
    ::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> Declaration::Field::Builder::disownType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

5232 5233 5234 5235 5236 5237
inline Declaration::Field::DefaultValue::Reader Declaration::Field::Reader::getDefaultValue() const {
  return Declaration::Field::DefaultValue::Reader(_reader);
}
inline Declaration::Field::DefaultValue::Builder Declaration::Field::Builder::getDefaultValue() {
  return Declaration::Field::DefaultValue::Builder(_builder);
}
5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257
inline Declaration::Field::DefaultValue::Which Declaration::Field::DefaultValue::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline Declaration::Field::DefaultValue::Which Declaration::Field::DefaultValue::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Field::DefaultValue::Reader::getNone() const {
  KJ_IREQUIRE(which() == DefaultValue::NONE,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Field::DefaultValue::Builder::getNone() {
  KJ_IREQUIRE(which() == DefaultValue::NONE,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
5258
inline void Declaration::Field::DefaultValue::Builder::setNone( ::capnp::Void value) {
5259 5260 5261 5262 5263 5264 5265
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::NONE);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Field::DefaultValue::Reader::hasValue() const {
5266 5267
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
5268 5269 5270
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline bool Declaration::Field::DefaultValue::Builder::hasValue() {
5271 5272
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Reader Declaration::Field::DefaultValue::Reader::getValue() const {
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _reader, 1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Builder Declaration::Field::DefaultValue::Builder::getValue() {
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Field::DefaultValue::Builder::setValue( ::capnp::compiler::ValueExpression::Reader value) {
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::VALUE);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::ValueExpression::Builder Declaration::Field::DefaultValue::Builder::initValue() {
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::VALUE);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::init(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Field::DefaultValue::Builder::adoptValue(
    ::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value) {
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::VALUE);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> Declaration::Field::DefaultValue::Builder::disownValue() {
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::disown(
      _builder, 1 * ::capnp::POINTERS);
}

inline bool Declaration::Method::Reader::hasParams() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::Method::Builder::hasParams() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Reader Declaration::Method::Reader::getParams() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Builder Declaration::Method::Builder::getParams() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>::get(
      _builder, 0 * ::capnp::POINTERS);
}
5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392
inline void Declaration::Method::Builder::setParams( ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::Declaration::Method::Param>::Builder Declaration::Method::Builder::initParams(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>::init(
      _builder, 0 * ::capnp::POINTERS, size);
}
inline void Declaration::Method::Builder::adoptParams(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>> Declaration::Method::Builder::disownParams() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::Method::Param>>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline Declaration::Method::ReturnType::Reader Declaration::Method::Reader::getReturnType() const {
  return Declaration::Method::ReturnType::Reader(_reader);
}
inline Declaration::Method::ReturnType::Builder Declaration::Method::Builder::getReturnType() {
  return Declaration::Method::ReturnType::Builder(_builder);
}
inline Declaration::Method::ReturnType::Which Declaration::Method::ReturnType::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline Declaration::Method::ReturnType::Which Declaration::Method::ReturnType::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Method::ReturnType::Reader::getNone() const {
  KJ_IREQUIRE(which() == ReturnType::NONE,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Method::ReturnType::Builder::getNone() {
  KJ_IREQUIRE(which() == ReturnType::NONE,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
inline void Declaration::Method::ReturnType::Builder::setNone( ::capnp::Void value) {
  _builder.setDataField<ReturnType::Which>(
      0 * ::capnp::ELEMENTS, ReturnType::NONE);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Method::ReturnType::Reader::hasExpression() const {
  KJ_IREQUIRE(which() == ReturnType::EXPRESSION,
              "Must check which() before get()ing a union member.");
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline bool Declaration::Method::ReturnType::Builder::hasExpression() {
  KJ_IREQUIRE(which() == ReturnType::EXPRESSION,
              "Must check which() before get()ing a union member.");
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Reader Declaration::Method::ReturnType::Reader::getExpression() const {
  KJ_IREQUIRE(which() == ReturnType::EXPRESSION,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _reader, 1 * ::capnp::POINTERS);
5393
}
5394 5395 5396 5397 5398
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Method::ReturnType::Builder::getExpression() {
  KJ_IREQUIRE(which() == ReturnType::EXPRESSION,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _builder, 1 * ::capnp::POINTERS);
5399
}
5400 5401 5402 5403 5404
inline void Declaration::Method::ReturnType::Builder::setExpression( ::capnp::compiler::TypeExpression::Reader value) {
  _builder.setDataField<ReturnType::Which>(
      0 * ::capnp::ELEMENTS, ReturnType::EXPRESSION);
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::set(
      _builder, 1 * ::capnp::POINTERS, value);
5405
}
5406 5407 5408 5409 5410
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Method::ReturnType::Builder::initExpression() {
  _builder.setDataField<ReturnType::Which>(
      0 * ::capnp::ELEMENTS, ReturnType::EXPRESSION);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::init(
      _builder, 1 * ::capnp::POINTERS);
5411
}
5412 5413 5414 5415 5416 5417
inline void Declaration::Method::ReturnType::Builder::adoptExpression(
    ::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value) {
  _builder.setDataField<ReturnType::Which>(
      0 * ::capnp::ELEMENTS, ReturnType::EXPRESSION);
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
5418
}
5419 5420 5421 5422 5423
inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> Declaration::Method::ReturnType::Builder::disownExpression() {
  KJ_IREQUIRE(which() == ReturnType::EXPRESSION,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::disown(
      _builder, 1 * ::capnp::POINTERS);
5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521
}

inline bool Declaration::Method::Param::Reader::hasName() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::Method::Param::Builder::hasName() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Reader Declaration::Method::Param::Reader::getName() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::LocatedText::Builder Declaration::Method::Param::Builder::getName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Method::Param::Builder::setName( ::capnp::compiler::LocatedText::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::LocatedText::Builder Declaration::Method::Param::Builder::initName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Method::Param::Builder::adoptName(
    ::capnp::Orphan< ::capnp::compiler::LocatedText>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::LocatedText> Declaration::Method::Param::Builder::disownName() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::LocatedText>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool Declaration::Method::Param::Reader::hasType() const {
  return !_reader.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline bool Declaration::Method::Param::Builder::hasType() {
  return !_builder.isPointerFieldNull(1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Reader Declaration::Method::Param::Reader::getType() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _reader, 1 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Method::Param::Builder::getType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Method::Param::Builder::setType( ::capnp::compiler::TypeExpression::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::set(
      _builder, 1 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Method::Param::Builder::initType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::init(
      _builder, 1 * ::capnp::POINTERS);
}
inline void Declaration::Method::Param::Builder::adoptType(
    ::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::adopt(
      _builder, 1 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> Declaration::Method::Param::Builder::disownType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::disown(
      _builder, 1 * ::capnp::POINTERS);
}

inline bool Declaration::Method::Param::Reader::hasAnnotations() const {
  return !_reader.isPointerFieldNull(2 * ::capnp::POINTERS);
}
inline bool Declaration::Method::Param::Builder::hasAnnotations() {
  return !_builder.isPointerFieldNull(2 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader Declaration::Method::Param::Reader::getAnnotations() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::get(
      _reader, 2 * ::capnp::POINTERS);
}
inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder Declaration::Method::Param::Builder::getAnnotations() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::get(
      _builder, 2 * ::capnp::POINTERS);
}
inline void Declaration::Method::Param::Builder::setAnnotations( ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::set(
      _builder, 2 * ::capnp::POINTERS, value);
}
inline  ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>::Builder Declaration::Method::Param::Builder::initAnnotations(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::init(
      _builder, 2 * ::capnp::POINTERS, size);
}
inline void Declaration::Method::Param::Builder::adoptAnnotations(
    ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::adopt(
      _builder, 2 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>> Declaration::Method::Param::Builder::disownAnnotations() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::compiler::Declaration::AnnotationApplication>>::disown(
      _builder, 2 * ::capnp::POINTERS);
}

5522 5523 5524 5525 5526 5527
inline Declaration::Method::Param::DefaultValue::Reader Declaration::Method::Param::Reader::getDefaultValue() const {
  return Declaration::Method::Param::DefaultValue::Reader(_reader);
}
inline Declaration::Method::Param::DefaultValue::Builder Declaration::Method::Param::Builder::getDefaultValue() {
  return Declaration::Method::Param::DefaultValue::Builder(_builder);
}
5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547
inline Declaration::Method::Param::DefaultValue::Which Declaration::Method::Param::DefaultValue::Reader::which() const {
  return _reader.getDataField<Which>(0 * ::capnp::ELEMENTS);
}
inline Declaration::Method::Param::DefaultValue::Which Declaration::Method::Param::DefaultValue::Builder::which() {
  return _builder.getDataField<Which>(0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Method::Param::DefaultValue::Reader::getNone() const {
  KJ_IREQUIRE(which() == DefaultValue::NONE,
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::Void Declaration::Method::Param::DefaultValue::Builder::getNone() {
  KJ_IREQUIRE(which() == DefaultValue::NONE,
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS);
}
5548
inline void Declaration::Method::Param::DefaultValue::Builder::setNone( ::capnp::Void value) {
5549 5550 5551 5552 5553 5554 5555
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::NONE);
  _builder.setDataField< ::capnp::Void>(
      0 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Method::Param::DefaultValue::Reader::hasValue() const {
5556 5557
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
5558 5559 5560
  return !_reader.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline bool Declaration::Method::Param::DefaultValue::Builder::hasValue() {
5561 5562
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822
  return !_builder.isPointerFieldNull(3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Reader Declaration::Method::Param::DefaultValue::Reader::getValue() const {
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _reader, 3 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::ValueExpression::Builder Declaration::Method::Param::DefaultValue::Builder::getValue() {
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::get(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Method::Param::DefaultValue::Builder::setValue( ::capnp::compiler::ValueExpression::Reader value) {
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::VALUE);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::set(
      _builder, 3 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::ValueExpression::Builder Declaration::Method::Param::DefaultValue::Builder::initValue() {
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::VALUE);
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::init(
      _builder, 3 * ::capnp::POINTERS);
}
inline void Declaration::Method::Param::DefaultValue::Builder::adoptValue(
    ::capnp::Orphan< ::capnp::compiler::ValueExpression>&& value) {
  _builder.setDataField<DefaultValue::Which>(
      0 * ::capnp::ELEMENTS, DefaultValue::VALUE);
  ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::adopt(
      _builder, 3 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::ValueExpression> Declaration::Method::Param::DefaultValue::Builder::disownValue() {
  KJ_IREQUIRE(which() == DefaultValue::VALUE,
              "Must check which() before get()ing a union member.");
  return ::capnp::_::PointerHelpers< ::capnp::compiler::ValueExpression>::disown(
      _builder, 3 * ::capnp::POINTERS);
}

inline bool Declaration::Annotation::Reader::hasType() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool Declaration::Annotation::Builder::hasType() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Reader Declaration::Annotation::Reader::getType() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Annotation::Builder::getType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Annotation::Builder::setType( ::capnp::compiler::TypeExpression::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::TypeExpression::Builder Declaration::Annotation::Builder::initType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void Declaration::Annotation::Builder::adoptType(
    ::capnp::Orphan< ::capnp::compiler::TypeExpression>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::TypeExpression> Declaration::Annotation::Builder::disownType() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::TypeExpression>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

inline bool Declaration::Annotation::Reader::getTargetsFile() const {
  return _reader.getDataField<bool>(
      0 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsFile() {
  return _builder.getDataField<bool>(
      0 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsFile(bool value) {
  _builder.setDataField<bool>(
      0 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsConst() const {
  return _reader.getDataField<bool>(
      1 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsConst() {
  return _builder.getDataField<bool>(
      1 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsConst(bool value) {
  _builder.setDataField<bool>(
      1 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsEnum() const {
  return _reader.getDataField<bool>(
      2 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsEnum() {
  return _builder.getDataField<bool>(
      2 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsEnum(bool value) {
  _builder.setDataField<bool>(
      2 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsEnumerant() const {
  return _reader.getDataField<bool>(
      3 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsEnumerant() {
  return _builder.getDataField<bool>(
      3 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsEnumerant(bool value) {
  _builder.setDataField<bool>(
      3 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsStruct() const {
  return _reader.getDataField<bool>(
      4 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsStruct() {
  return _builder.getDataField<bool>(
      4 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsStruct(bool value) {
  _builder.setDataField<bool>(
      4 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsField() const {
  return _reader.getDataField<bool>(
      5 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsField() {
  return _builder.getDataField<bool>(
      5 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsField(bool value) {
  _builder.setDataField<bool>(
      5 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsUnion() const {
  return _reader.getDataField<bool>(
      6 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsUnion() {
  return _builder.getDataField<bool>(
      6 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsUnion(bool value) {
  _builder.setDataField<bool>(
      6 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsInterface() const {
  return _reader.getDataField<bool>(
      7 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsInterface() {
  return _builder.getDataField<bool>(
      7 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsInterface(bool value) {
  _builder.setDataField<bool>(
      7 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsMethod() const {
  return _reader.getDataField<bool>(
      8 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsMethod() {
  return _builder.getDataField<bool>(
      8 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsMethod(bool value) {
  _builder.setDataField<bool>(
      8 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsParam() const {
  return _reader.getDataField<bool>(
      9 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsParam() {
  return _builder.getDataField<bool>(
      9 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsParam(bool value) {
  _builder.setDataField<bool>(
      9 * ::capnp::ELEMENTS, value);
}

inline bool Declaration::Annotation::Reader::getTargetsAnnotation() const {
  return _reader.getDataField<bool>(
      10 * ::capnp::ELEMENTS);
}

inline bool Declaration::Annotation::Builder::getTargetsAnnotation() {
  return _builder.getDataField<bool>(
      10 * ::capnp::ELEMENTS);
}
inline void Declaration::Annotation::Builder::setTargetsAnnotation(bool value) {
  _builder.setDataField<bool>(
      10 * ::capnp::ELEMENTS, value);
}

inline bool ParsedFile::Reader::hasRoot() const {
  return !_reader.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline bool ParsedFile::Builder::hasRoot() {
  return !_builder.isPointerFieldNull(0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Reader ParsedFile::Reader::getRoot() const {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::get(
      _reader, 0 * ::capnp::POINTERS);
}
inline  ::capnp::compiler::Declaration::Builder ParsedFile::Builder::getRoot() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::get(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ParsedFile::Builder::setRoot( ::capnp::compiler::Declaration::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::set(
      _builder, 0 * ::capnp::POINTERS, value);
}
inline  ::capnp::compiler::Declaration::Builder ParsedFile::Builder::initRoot() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::init(
      _builder, 0 * ::capnp::POINTERS);
}
inline void ParsedFile::Builder::adoptRoot(
    ::capnp::Orphan< ::capnp::compiler::Declaration>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::adopt(
      _builder, 0 * ::capnp::POINTERS, kj::mv(value));
}
inline ::capnp::Orphan< ::capnp::compiler::Declaration> ParsedFile::Builder::disownRoot() {
  return ::capnp::_::PointerHelpers< ::capnp::compiler::Declaration>::disown(
      _builder, 0 * ::capnp::POINTERS);
}

}  // namespace
}  // namespace
5823 5824

#endif  // CAPNP_INCLUDED_c56be168dcbbc3c6_