Analyzer now understands type section default values

This commit is contained in:
2022-09-30 00:04:28 -04:00
parent d117e2727c
commit 47cb89206a
7 changed files with 67 additions and 2 deletions

View File

@@ -115,6 +115,12 @@ func (argument Argument) Kind () (kind ArgumentKind) {
return
}
// Nil returns true if the argument is nil, and false if it isn't.
func (argument Argument) Nil () (isNil bool) {
isNil = argument.kind == ArgumentKindNil
return
}
// Value returns the underlying value of the argument. You can use Kind() to
// find out what to cast this to.
func (argument Argument) Value () (value any) {