Commit 9a28ac31 authored by Kenton Varda's avatar Kenton Varda

Fix bug in capnpc-capnp when printing annotations.

parent 9474ca44
...@@ -292,7 +292,7 @@ private: ...@@ -292,7 +292,7 @@ private:
auto annDecl = proto.getAnnotation(); auto annDecl = proto.getAnnotation();
return kj::strTree(prefix, "$", nodeName(decl, scope), "(", return kj::strTree(prefix, "$", nodeName(decl, scope), "(",
genValue(annDecl.getType(), annotation.getValue(), scope), ")", suffix); genValue(annDecl.getType(), annotation.getValue(), decl), ")", suffix);
} }
kj::StringTree genAnnotations(List<schema::Annotation>::Reader list, Schema scope) { kj::StringTree genAnnotations(List<schema::Annotation>::Reader list, Schema scope) {
......
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