hasWorkspaceArgs returns true if any of the function's arguments are of type Workspace.
()
| 944 | |
| 945 | // hasWorkspaceArgs returns true if any of the function's arguments are of type Workspace. |
| 946 | func (fn *ModuleFunction) hasWorkspaceArgs() bool { |
| 947 | for _, argRes := range fn.metadata.Args { |
| 948 | if argRes.Self().IsWorkspace() { |
| 949 | return true |
| 950 | } |
| 951 | } |
| 952 | return false |
| 953 | } |
| 954 | |
| 955 | func (fn *ModuleFunction) ReturnType() (ModType, error) { |
| 956 | return fn.returnType, nil |
no test coverage detected