-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
236 additions
and
221 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 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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
package descriptor | ||
|
||
// A Parameter interface must implement these functions | ||
// Sizes are in bytes | ||
|
||
type Parameter interface { | ||
Name() string | ||
TypeName() string | ||
ClassName() string | ||
Direction() string | ||
Location() string | ||
SizeBytes() int | ||
ToJson() | ||
type FunctionParameter struct { | ||
Name string `json:"name,omitempty"` | ||
TypeName string `json:"type,omitempty"` | ||
ClassName string `json:"class,omitempty"` | ||
Direction string `json:"direction,omitempty"` | ||
Location string `json:"location,omitempty"` | ||
Size int64 `json:"sizes,omitempty"` | ||
} | ||
|
||
type FunctionDescription struct { | ||
Parameters []Parameter | ||
ReturnValue Parameter | ||
Name string `json:"name"` | ||
Parameters []FunctionParameter `json:"parameters,omitempty"` | ||
Name string `json:"name"` | ||
} | ||
|
||
type VariableDescription struct { | ||
Name string `json:"name"` | ||
Type string `json:"type"` | ||
Name string `json:"name"` | ||
Type string `json:"type"` | ||
Size int64 `json:"sizes,omitempty"` | ||
Direction string `json:"direction,omitempty"` | ||
} |
Oops, something went wrong.