Commit fe18f08f authored by Kenton Varda's avatar Kenton Varda

Remove remaining schema transitional hacks.

parent d5eba005
......@@ -904,36 +904,18 @@ Compiler::Impl::Impl(AnnotationFlag annotationFlag)
// Reflectively interpret the members of Declaration.body. Any member prefixed by "builtin"
// defines a builtin declaration visible in the global scope.
#warning "temporary hack for schema transition"
builtinDecls["Void"] = nodeArena.allocateOwn<Node>("Void", Declaration::BUILTIN_VOID);
builtinDecls["Bool"] = nodeArena.allocateOwn<Node>("Bool", Declaration::BUILTIN_BOOL);
builtinDecls["Int8"] = nodeArena.allocateOwn<Node>("Int8", Declaration::BUILTIN_INT8);
builtinDecls["Int16"] = nodeArena.allocateOwn<Node>("Int16", Declaration::BUILTIN_INT16);
builtinDecls["Int32"] = nodeArena.allocateOwn<Node>("Int32", Declaration::BUILTIN_INT32);
builtinDecls["Int64"] = nodeArena.allocateOwn<Node>("Int64", Declaration::BUILTIN_INT64);
builtinDecls["UInt8"] = nodeArena.allocateOwn<Node>("UInt8", Declaration::BUILTIN_U_INT8);
builtinDecls["UInt16"] = nodeArena.allocateOwn<Node>("UInt16", Declaration::BUILTIN_U_INT16);
builtinDecls["UInt32"] = nodeArena.allocateOwn<Node>("UInt32", Declaration::BUILTIN_U_INT32);
builtinDecls["UInt64"] = nodeArena.allocateOwn<Node>("UInt64", Declaration::BUILTIN_U_INT64);
builtinDecls["Float32"] = nodeArena.allocateOwn<Node>("Float32", Declaration::BUILTIN_FLOAT32);
builtinDecls["Float64"] = nodeArena.allocateOwn<Node>("Float64", Declaration::BUILTIN_FLOAT64);
builtinDecls["Text"] = nodeArena.allocateOwn<Node>("Text", Declaration::BUILTIN_TEXT);
builtinDecls["Data"] = nodeArena.allocateOwn<Node>("Data", Declaration::BUILTIN_DATA);
builtinDecls["List"] = nodeArena.allocateOwn<Node>("List", Declaration::BUILTIN_LIST);
builtinDecls["Object"] = nodeArena.allocateOwn<Node>("Object", Declaration::BUILTIN_OBJECT);
#if 0
StructSchema::Union declBodySchema =
Schema::from<Declaration>().getMemberByName("body").asUnion();
for (auto member: declBodySchema.getMembers()) {
auto name = member.getProto().getName();
if (name.startsWith("builtin")) {
kj::StringPtr symbolName = name.slice(strlen("builtin"));
builtinDecls[symbolName] = nodeArena.allocateOwn<Node>(
symbolName, static_cast<Declaration::Which>(member.getIndex()));
StructSchema declSchema = Schema::from<Declaration>();
for (auto field: declSchema.getFields()) {
auto fieldProto = field.getProto();
if (fieldProto.hasDiscriminantValue()) {
auto name = fieldProto.getName();
if (name.startsWith("builtin")) {
kj::StringPtr symbolName = name.slice(strlen("builtin"));
builtinDecls[symbolName] = nodeArena.allocateOwn<Node>(
symbolName, static_cast<Declaration::Which>(fieldProto.getDiscriminantValue()));
}
}
}
#endif
}
Compiler::Impl::~Impl() noexcept(false) {}
......
......@@ -704,21 +704,16 @@ void NodeTranslator::compileAnnotation(Declaration::Annotation::Reader decl,
schema2::Node::Annotation::Builder builder) {
compileType(decl.getType(), builder.initType());
#warning "temporary hack for schema transition"
builder.setTargetsFile(true);
#if 0
// Dynamically copy over the values of all of the "targets" members.
DynamicStruct::Reader src = decl;
DynamicStruct::Builder dst = builder;
for (auto srcMember: src.getSchema().getMembers()) {
kj::StringPtr memberName = srcMember.getProto().getName();
if (memberName.startsWith("targets")) {
auto dstMember = dst.getSchema().getMemberByName(memberName);
dst.set(dstMember, src.get(srcMember));
for (auto srcField: src.getSchema().getFields()) {
kj::StringPtr fieldName = srcField.getProto().getName();
if (fieldName.startsWith("targets")) {
auto dstField = dst.getSchema().getFieldByName(fieldName);
dst.set(dstField, src.get(srcField));
}
}
#endif
}
class NodeTranslator::DuplicateOrdinalDetector {
......@@ -1812,13 +1807,10 @@ Orphan<List<schema2::Annotation>> NodeTranslator::compileAnnotationApplications(
annotationBuilder.setId(decl->id);
KJ_IF_MAYBE(annotationSchema, resolver.resolveBootstrapSchema(decl->id)) {
auto node = annotationSchema->getProto().getAnnotation();
#warning "temporary hack for schema transition"
#if 0
if (!toDynamic(node).get(targetsFlagName).as<bool>()) {
errorReporter.addErrorOn(name, kj::str(
"'", declNameString(name), "' cannot be applied to this kind of declaration."));
}
#endif
// Interpret the value.
auto value = annotation.getValue();
......
......@@ -855,8 +855,6 @@ CapnpParser::CapnpParser(Orphanage orphanageParam, const ErrorReporter& errorRep
DynamicStruct::Builder dynamicBuilder = builder;
for (auto& maybeTarget: targets.value) {
KJ_IF_MAYBE(target, maybeTarget) {
#warning "temporary hack for schema transition"
#if 0
if (target->value == "*") {
// Set all.
if (targets.value.size() > 1) {
......@@ -864,9 +862,9 @@ CapnpParser::CapnpParser(Orphanage orphanageParam, const ErrorReporter& errorRep
"Wildcard should not be specified together with other targets.");
}
for (auto member: dynamicBuilder.getSchema().getMembers()) {
if (member.getProto().getName().startsWith("targets")) {
dynamicBuilder.set(member, true);
for (auto field: dynamicBuilder.getSchema().getFields()) {
if (field.getProto().getName().startsWith("targets")) {
dynamicBuilder.set(field, true);
}
}
} else {
......@@ -879,19 +877,18 @@ CapnpParser::CapnpParser(Orphanage orphanageParam, const ErrorReporter& errorRep
strcpy(buffer, "targets");
strcat(buffer, target->value.cStr());
buffer[strlen("targets")] += 'A' - 'a';
KJ_IF_MAYBE(member, dynamicBuilder.getSchema().findMemberByName(buffer)) {
if (dynamicBuilder.get(*member).as<bool>()) {
KJ_IF_MAYBE(field, dynamicBuilder.getSchema().findFieldByName(buffer)) {
if (dynamicBuilder.get(*field).as<bool>()) {
errorReporter.addError(target->startByte, target->endByte,
"Duplicate target specification.");
}
dynamicBuilder.set(*member, true);
dynamicBuilder.set(*field, true);
} else {
errorReporter.addError(target->startByte, target->endByte,
"Not a valid annotation target.");
}
}
}
#endif
}
}
return DeclParserResult(kj::mv(decl));
......
......@@ -141,10 +141,11 @@ struct Node {
targetsStruct @23 :Bool;
targetsField @24 :Bool;
targetsUnion @25 :Bool;
targetsInterface @26 :Bool;
targetsMethod @27 :Bool;
targetsParam @28 :Bool;
targetsAnnotation @29 :Bool;
targetsGroup @26 :Bool;
targetsInterface @27 :Bool;
targetsMethod @28 :Bool;
targetsParam @29 :Bool;
targetsAnnotation @30 :Bool;
}
}
}
......
......@@ -465,7 +465,7 @@ const ::capnp::_::RawSchema s_b18aa5ac7a0d9420 = {
0xb18aa5ac7a0d9420, b_b18aa5ac7a0d9420.words, 44, d_b18aa5ac7a0d9420, m_b18aa5ac7a0d9420,
3, 2, i_b18aa5ac7a0d9420, nullptr, nullptr
};
static const ::capnp::_::AlignedData<199> b_ec1619d4400a0290 = {
static const ::capnp::_::AlignedData<214> b_ec1619d4400a0290 = {
{ 0, 0, 0, 0, 5, 0, 5, 0,
144, 2, 10, 64, 212, 25, 22, 236,
25, 0, 0, 0, 1, 0, 5, 0,
......@@ -475,98 +475,105 @@ static const ::capnp::_::AlignedData<199> b_ec1619d4400a0290 = {
17, 0, 0, 0, 34, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
25, 0, 0, 0, 167, 2, 0, 0,
25, 0, 0, 0, 223, 2, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
99, 97, 112, 110, 112, 47, 115, 99,
104, 101, 109, 97, 50, 46, 99, 97,
112, 110, 112, 58, 78, 111, 100, 101,
46, 97, 110, 110, 111, 116, 97, 116,
105, 111, 110, 0, 0, 0, 0, 0,
48, 0, 0, 0, 3, 0, 4, 0,
52, 0, 0, 0, 3, 0, 4, 0,
0, 0, 0, 0, 3, 0, 0, 0,
0, 0, 1, 0, 18, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
65, 1, 0, 0, 42, 0, 0, 0,
93, 1, 0, 0, 42, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
60, 1, 0, 0, 2, 0, 1, 0,
68, 1, 0, 0, 2, 0, 1, 0,
88, 1, 0, 0, 2, 0, 1, 0,
96, 1, 0, 0, 2, 0, 1, 0,
1, 0, 0, 0, 112, 0, 0, 0,
0, 0, 1, 0, 19, 0, 0, 0,
0, 0, 0, 0, 0, 0,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, 1, 0, 0, 2, 0, 1, 0,
140, 1, 0, 0, 2, 0, 1, 0,
10, 0, 0, 0, 121, 0, 0, 0,
0, 0, 1, 0, 28, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
109, 1, 0, 0, 106, 0, 0, 0,
137, 1, 0, 0, 114, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
108, 1, 0, 0, 2, 0, 1, 0,
116, 1, 0, 0, 2, 0, 1, 0,
136, 1, 0, 0, 2, 0, 1, 0,
144, 1, 0, 0, 2, 0, 1, 0,
11, 0, 0, 0, 122, 0, 0, 0,
0, 0, 1, 0, 29, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
113, 1, 0, 0, 146, 0, 0, 0,
141, 1, 0, 0, 106, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
116, 1, 0, 0, 2, 0, 1, 0,
124, 1, 0, 0, 2, 0, 1, 0,
140, 1, 0, 0, 2, 0, 1, 0,
148, 1, 0, 0, 2, 0, 1, 0,
12, 0, 0, 0, 123, 0, 0, 0,
0, 0, 1, 0, 30, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
145, 1, 0, 0, 146, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
148, 1, 0, 0, 2, 0, 1, 0,
156, 1, 0, 0, 2, 0, 1, 0,
116, 121, 112, 101, 0, 0, 0, 0,
16, 0, 0, 0, 0, 0, 0, 0,
96, 204, 249, 225, 237, 120, 115, 208,
......@@ -631,6 +638,14 @@ static const ::capnp::_::AlignedData<199> b_ec1619d4400a0290 = {
1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
116, 97, 114, 103, 101, 116, 115, 71,
114, 111, 117, 112, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
116, 97, 114, 103, 101, 116, 115, 73,
110, 116, 101, 114, 102, 97, 99, 101,
0, 0, 0, 0, 0, 0, 0, 0,
......@@ -670,11 +685,11 @@ static const ::capnp::_::RawSchema* const d_ec1619d4400a0290[] = {
&s_d07378ede1f9cc60,
&s_e682ab4cf923a417,
};
static const uint16_t m_ec1619d4400a0290[] = {11, 2, 3, 4, 6, 1, 8, 9, 10, 5, 7, 0};
static const uint16_t i_ec1619d4400a0290[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
static const uint16_t m_ec1619d4400a0290[] = {12, 2, 3, 4, 6, 1, 8, 9, 10, 11, 5, 7, 0};
static const uint16_t i_ec1619d4400a0290[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
const ::capnp::_::RawSchema s_ec1619d4400a0290 = {
0xec1619d4400a0290, b_ec1619d4400a0290.words, 199, d_ec1619d4400a0290, m_ec1619d4400a0290,
2, 12, i_ec1619d4400a0290, nullptr, nullptr
0xec1619d4400a0290, b_ec1619d4400a0290.words, 214, d_ec1619d4400a0290, m_ec1619d4400a0290,
2, 13, i_ec1619d4400a0290, nullptr, nullptr
};
static const ::capnp::_::AlignedData<110> b_9aad50a41f4af45f = {
{ 0, 0, 0, 0, 5, 0, 5, 0,
......
......@@ -721,6 +721,9 @@ public:
inline bool hasTargetsUnion() const;
inline bool getTargetsUnion() const;
inline bool hasTargetsGroup() const;
inline bool getTargetsGroup() const;
inline bool hasTargetsInterface() const;
inline bool getTargetsInterface() const;
......@@ -796,6 +799,10 @@ public:
inline bool getTargetsUnion();
inline void setTargetsUnion(bool value);
inline bool hasTargetsGroup();
inline bool getTargetsGroup();
inline void setTargetsGroup(bool value);
inline bool hasTargetsInterface();
inline bool getTargetsInterface();
inline void setTargetsInterface(bool value);
......@@ -2849,90 +2856,111 @@ inline void Node::Annotation::Builder::setTargetsUnion(bool value) {
118 * ::capnp::ELEMENTS, value);
}
inline bool Node::Annotation::Reader::hasTargetsInterface() const {
inline bool Node::Annotation::Reader::hasTargetsGroup() const {
return _reader.hasDataField<bool>(119 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::hasTargetsInterface() {
inline bool Node::Annotation::Builder::hasTargetsGroup() {
return _builder.hasDataField<bool>(119 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Reader::getTargetsInterface() const {
inline bool Node::Annotation::Reader::getTargetsGroup() const {
return _reader.getDataField<bool>(
119 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::getTargetsInterface() {
inline bool Node::Annotation::Builder::getTargetsGroup() {
return _builder.getDataField<bool>(
119 * ::capnp::ELEMENTS);
}
inline void Node::Annotation::Builder::setTargetsInterface(bool value) {
inline void Node::Annotation::Builder::setTargetsGroup(bool value) {
_builder.setDataField<bool>(
119 * ::capnp::ELEMENTS, value);
}
inline bool Node::Annotation::Reader::hasTargetsMethod() const {
inline bool Node::Annotation::Reader::hasTargetsInterface() const {
return _reader.hasDataField<bool>(120 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::hasTargetsMethod() {
inline bool Node::Annotation::Builder::hasTargetsInterface() {
return _builder.hasDataField<bool>(120 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Reader::getTargetsMethod() const {
inline bool Node::Annotation::Reader::getTargetsInterface() const {
return _reader.getDataField<bool>(
120 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::getTargetsMethod() {
inline bool Node::Annotation::Builder::getTargetsInterface() {
return _builder.getDataField<bool>(
120 * ::capnp::ELEMENTS);
}
inline void Node::Annotation::Builder::setTargetsMethod(bool value) {
inline void Node::Annotation::Builder::setTargetsInterface(bool value) {
_builder.setDataField<bool>(
120 * ::capnp::ELEMENTS, value);
}
inline bool Node::Annotation::Reader::hasTargetsParam() const {
inline bool Node::Annotation::Reader::hasTargetsMethod() const {
return _reader.hasDataField<bool>(121 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::hasTargetsParam() {
inline bool Node::Annotation::Builder::hasTargetsMethod() {
return _builder.hasDataField<bool>(121 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Reader::getTargetsParam() const {
inline bool Node::Annotation::Reader::getTargetsMethod() const {
return _reader.getDataField<bool>(
121 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::getTargetsParam() {
inline bool Node::Annotation::Builder::getTargetsMethod() {
return _builder.getDataField<bool>(
121 * ::capnp::ELEMENTS);
}
inline void Node::Annotation::Builder::setTargetsParam(bool value) {
inline void Node::Annotation::Builder::setTargetsMethod(bool value) {
_builder.setDataField<bool>(
121 * ::capnp::ELEMENTS, value);
}
inline bool Node::Annotation::Reader::hasTargetsAnnotation() const {
inline bool Node::Annotation::Reader::hasTargetsParam() const {
return _reader.hasDataField<bool>(122 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::hasTargetsAnnotation() {
inline bool Node::Annotation::Builder::hasTargetsParam() {
return _builder.hasDataField<bool>(122 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Reader::getTargetsAnnotation() const {
inline bool Node::Annotation::Reader::getTargetsParam() const {
return _reader.getDataField<bool>(
122 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::getTargetsAnnotation() {
inline bool Node::Annotation::Builder::getTargetsParam() {
return _builder.getDataField<bool>(
122 * ::capnp::ELEMENTS);
}
inline void Node::Annotation::Builder::setTargetsAnnotation(bool value) {
inline void Node::Annotation::Builder::setTargetsParam(bool value) {
_builder.setDataField<bool>(
122 * ::capnp::ELEMENTS, value);
}
inline bool Node::Annotation::Reader::hasTargetsAnnotation() const {
return _reader.hasDataField<bool>(123 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::hasTargetsAnnotation() {
return _builder.hasDataField<bool>(123 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Reader::getTargetsAnnotation() const {
return _reader.getDataField<bool>(
123 * ::capnp::ELEMENTS);
}
inline bool Node::Annotation::Builder::getTargetsAnnotation() {
return _builder.getDataField<bool>(
123 * ::capnp::ELEMENTS);
}
inline void Node::Annotation::Builder::setTargetsAnnotation(bool value) {
_builder.setDataField<bool>(
123 * ::capnp::ELEMENTS, value);
}
inline Field::Which Field::Reader::which() const {
return _reader.getDataField<Which>(4 * ::capnp::ELEMENTS);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment