From c4019f7916b6e148e3f9a0e3c7dece422d78c342 Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 09 八月 2017 12:35:20 +0800
Subject: [PATCH] update capnp

---
 VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema-parser.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema-parser.h b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema-parser.h
index 3322bbf..3b3094c 100644
--- a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema-parser.h
+++ b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema-parser.h
@@ -77,6 +77,11 @@
   // normally.  In this case, the result is a best-effort attempt to compile the schema, but it
   // may be invalid or corrupt, and using it for anything may cause exceptions to be thrown.
 
+  kj::Maybe<schema::Node::SourceInfo::Reader> getSourceInfo(Schema schema) const;
+  // Look up source info (e.g. doc comments) for the given schema, which must have come from this
+  // SchemaParser. Note that this will also work for implicit group and param types that don't have
+  // a type name hence don't have a `ParsedSchema`.
+
   template <typename T>
   inline void loadCompiledTypeAndDependencies() {
     // See SchemaLoader::loadCompiledTypeAndDependencies().
@@ -110,6 +115,9 @@
   // Gets the nested node with the given name, or throws an exception if there is no such nested
   // declaration.
 
+  schema::Node::SourceInfo::Reader getSourceInfo() const;
+  // Get the source info for this schema.
+
 private:
   inline ParsedSchema(Schema inner, const SchemaParser& parser): Schema(inner), parser(&parser) {}
 

--
Gitblit v1.8.0