-
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.
This commit implements full type checking in tasks. * Detection of cycles in declarations. * Type calculations of expressions. * Type checking of string interpolations. Workflow type checking is forthcoming. The following have not been implemented yet, which is required for full 1.2 support: * support `task` name (with "task" hidden type) in commands and output declarations. * support `input`, `output`, and `hints` hidden types in literal expression evaluation. Additionally, the following changes are included: * Refactored `wdl-analysis` to make certain modules public rather than reexporting everything at the root (cleans up the docs a bit). * Removed DFS space from `DocumentGraph` as it doesn't need to persist after analysis completes. * Simplified `DocumentScope` to contain only whats needed to express names and their types. * Removed the restriction on `Map` type representation to allow `Union` as the key type, which allows type checking to work on a literal `{}`, which has calculated type `Map[Union, Union]`. * Fixed `basename` function to accept a `String` argument. * Fixed `size` function to accept a `String` argument. * Removed the `span_of` function in favor of an `AstNode` extension trait. * Changed the `call_expr` grammar rule to only accept an identifier for the target and not an expression as functions cannot be values in WDL. * Fixed the CLI tools to not print colors when output is not to a terminal. * Fixed incorrect parsing of some expressions which required the interior to be non-empty (e.g. `foo[]` is not a valid index expression).
- Loading branch information
1 parent
e32d509
commit 9a345dd
Showing
109 changed files
with
4,328 additions
and
1,191 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
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
Oops, something went wrong.