-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: last fixes before first release (#16)
* fix: added final touches * refactor: types * fix: don't warn about missing inheritdoc in interfaces * fix: remove empty warnings from * fix: do not require inheritdoc for constructor --------- Co-authored-by: Gas One Cent <[email protected]>
- Loading branch information
Showing
14 changed files
with
71 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { | ||
EnumDefinition, | ||
ErrorDefinition, | ||
EventDefinition, | ||
FunctionDefinition, | ||
ModifierDefinition, | ||
StructDefinition, | ||
VariableDeclaration, | ||
} from 'solc-typed-ast'; | ||
|
||
export interface Config { | ||
include: string; // Required: Glob pattern of files to process. | ||
exclude: string[]; // Optional: Glob patterns of files to exclude. | ||
root: string; // Optional: Project root directory. | ||
enforceInheritdoc: boolean; // Optional: True if all external and public functions should have @inheritdoc. | ||
constructorNatspec: boolean; // Optional: True if the constructor should have natspec. | ||
} | ||
|
||
export interface NatspecDefinition { | ||
name?: string; | ||
content: string; | ||
} | ||
|
||
export interface Natspec { | ||
inheritdoc?: NatspecDefinition; | ||
tags: NatspecDefinition[]; | ||
params: NatspecDefinition[]; | ||
returns: NatspecDefinition[]; | ||
} | ||
|
||
export interface ASTNodeRawDocumentation { | ||
id: number; | ||
nodeType: string; | ||
src: string; | ||
text: string; | ||
} | ||
|
||
export interface ASTNodeRaw { | ||
name: string; | ||
kind: string; | ||
documentation?: ASTNodeRawDocumentation; | ||
} | ||
|
||
export type NodeToProcess = | ||
| FunctionDefinition | ||
| EnumDefinition | ||
| ErrorDefinition | ||
| EventDefinition | ||
| ModifierDefinition | ||
| VariableDeclaration | ||
| StructDefinition; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters