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.capnp | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema.capnp b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema.capnp index 4bef693..f9fbe61 100644 --- a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema.capnp +++ b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/capnp/schema.capnp @@ -169,6 +169,33 @@ targetsAnnotation @30 :Bool; } } + + struct SourceInfo { + # Additional information about a node which is not needed at runtime, but may be useful for + # documentation or debugging purposes. This is kept in a separate struct to make sure it + # doesn't accidentally get included in contexts where it is not needed. The + # `CodeGeneratorRequest` includes this information in a separate array. + + id @0 :Id; + # ID of the Node which this info describes. + + docComment @1 :Text; + # The top-level doc comment for the Node. + + members @2 :List(Member); + # Information about each member -- i.e. fields (for structs), enumerants (for enums), or + # methods (for interfaces). + # + # This list is the same length and order as the corresponding list in the Node, i.e. + # Node.struct.fields, Node.enum.enumerants, or Node.interface.methods. + + struct Member { + docComment @0 :Text; + # Doc comment on the member. + } + + # TODO(someday): Record location of the declaration in the original source code. + } } struct Field { @@ -468,6 +495,10 @@ # All nodes parsed by the compiler, including for the files on the command line and their # imports. + sourceInfo @3 :List(Node.SourceInfo); + # Information about the original source code for each node, where available. This array may be + # omitted or may be missing some nodes if no info is available for them. + requestedFiles @1 :List(RequestedFile); # Files which were listed on the command line. -- Gitblit v1.8.0