Skip to content

Commit

Permalink
Fix, minor refactoring and TSDocs (naddison36#123)
Browse files Browse the repository at this point in the history
chore: refactor functions that convert AST types to UML Class types
chore: started adding TSDocs
chore: Operator.isPayable changed to Operator.stateMutability
chore: updated dependencies
chore: bumped version to 2.3.1
fix: missing associations when emitting events
  • Loading branch information
naddison36 authored Dec 12, 2022
1 parent 5f7f21e commit 8d7972b
Show file tree
Hide file tree
Showing 26 changed files with 1,214 additions and 999 deletions.
18 changes: 9 additions & 9 deletions examples/BoredApeYachtClub.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions lib/converterAST2Classes.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { ASTNode } from '@solidity-parser/parser/dist/src/ast-types';
import { UmlClass } from './umlClass';
/**
* Convert solidity parser output of type `ASTNode` to UML classes of type `UMLClass`
* @param node output of Solidity parser of type `ASTNode`
* @param relativePath relative path from the working directory to the Solidity source file
* @param filesystem flag if Solidity source code was parsed from the filesystem or Etherscan
* @return umlClasses array of UML class definitions of type `UmlClass`
*/
export declare function convertAST2UmlClasses(node: ASTNode, relativePath: string, filesystem?: boolean): UmlClass[];
Loading

0 comments on commit 8d7972b

Please sign in to comment.