Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
8ceb499d
Commit
8ceb499d
authored
May 19, 2017
by
David Lamparter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docstrings to schema.capnp
parent
f05559d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
schema.capnp
c++/src/capnp/schema.capnp
+23
-0
No files found.
c++/src/capnp/schema.capnp
View file @
8ceb499d
...
...
@@ -171,6 +171,19 @@ struct Node {
}
}
struct NodeDoc {
# separate carrier for documentation comments on Nodes,
# to keep them out of the binary descriptors
id @0 :Id;
# ID should exist as Node in the same request
docComment @1 :Text;
fieldDocs @2 :List(FieldDoc);
# valid only if Node is a "struct"
}
struct Field {
# Schema for a field of a struct.
...
...
@@ -229,6 +242,13 @@ struct Field {
}
}
struct FieldDoc {
# separate container to carry field docstrings
codeOrder @0 :UInt16;
docComment @1 :Text;
}
struct Enumerant {
# Schema for member of an enum.
...
...
@@ -468,6 +488,9 @@ struct CodeGeneratorRequest {
# All nodes parsed by the compiler, including for the files on the command line and their
# imports.
nodeDocs @3 :List(NodeDoc);
# documentation comments for nodes, where present
requestedFiles @1 :List(RequestedFile);
# Files which were listed on the command line.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment