File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,13 @@ class OutputsStmt extends Statement instanceof YamlMapping {
96
96
}
97
97
}
98
98
99
- // TODO: Needs a characteristic predicate otherwise anything is an output expression
100
- class InputExpr extends Expression instanceof YamlString { }
99
+ class InputExpr extends Expression instanceof YamlString {
100
+ InputExpr ( ) { exists ( InputsStmt inputs | inputs .( YamlMapping ) .maps ( this , _) ) }
101
+ }
101
102
102
- // TODO: Needs a characteristic predicate otherwise anything is an output expression
103
- class OutputExpr extends Expression instanceof YamlString { }
103
+ class OutputExpr extends Expression instanceof YamlString {
104
+ OutputExpr ( ) { exists ( OutputsStmt outputs | outputs .( YamlMapping ) .maps ( _, this ) ) }
105
+ }
104
106
105
107
/**
106
108
* A Job is a collection of steps that run in an execution environment.
Original file line number Diff line number Diff line change @@ -35,11 +35,7 @@ module Completion {
35
35
36
36
override string toString ( ) { result = "BooleanCompletion(" + value + ")" }
37
37
38
- override predicate isValidForSpecific ( AstNode e ) {
39
- none ( )
40
- // TODO: add support for conditional expressions?
41
- //e = any(ConditionalExpression c).getCondition()
42
- }
38
+ override predicate isValidForSpecific ( AstNode e ) { none ( ) }
43
39
44
40
override BooleanSuccessor getAMatchingSuccessorType ( ) { result .getValue ( ) = value }
45
41
You can’t perform that action at this time.
0 commit comments