-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
complete public API documentation #1212
base: main
Are you sure you want to change the base?
Conversation
|
3e89c36
to
30cffc8
Compare
Adds `typedoc` linter, and fixes all violations in the public API. See the config in `crates/solidity/outputs/npm/package/typedoc.mjs` for more info.
30cffc8
to
5455207
Compare
@@ -11,7 +11,7 @@ interface cst { | |||
stub3, | |||
{%- else %} | |||
{%- for variant in model.kinds.nonterminal_kinds %} | |||
/// This kind represents a `{{ variant.id }}` node, with the following structure: | |||
/// Represents a node with kind `{{ variant.id | pascal_case }}`, having the following structure: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how useful a lot of this documentation is, considering it's mostly just repeating the type and identifier again. Is it important to the user to know that the node kind should be represented in pascal_case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The query language will always use PascalCase
for node kinds, regardless of the client language. That might not be as important for this enum
specifically, but for others like EdgeLabel
, it is important, since the query language uses snake_case
and TypeScript/Rust use PascalCase
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think the NonterminalKind
docs here are adding noise/harming readability?
Adds
typedoc
linter, and fixes all violations in the public API.See the config in
crates/solidity/outputs/npm/package/typedoc.mjs
for more info.