@@ -62,8 +62,8 @@ module ServerLess<Input I> {
62
62
* Gets the looked up value if it exists or
63
63
* the empty string if it does not.
64
64
*/
65
- pragma [ inline]
66
65
bindingset [ property]
66
+ pragma [ inline]
67
67
private string lookupValueOrEmpty ( YamlMapping mapping , string property ) {
68
68
if exists ( mapping .lookup ( property ) )
69
69
then result = mapping .lookup ( property ) .( YamlScalar ) .getValue ( )
@@ -146,19 +146,19 @@ module ServerLess<Input I> {
146
146
}
147
147
148
148
/**
149
- * Holds if a file with stem `fileStem` has a serverless handler denoted by `func`.
149
+ * Holds if a file with path `pathNoExt` (+ some extension) has a serverless handler denoted by `func`.
150
150
*
151
151
* This is a convenience predicate for the common case where the first part of the
152
152
* handler property is the file name.
153
153
*
154
154
* `func` should be interpreted in a language specific way, see `mapping.md`.
155
155
*/
156
- predicate hasServerlessHandler ( string fileStem , string func , string framework , string runtime ) {
156
+ predicate hasServerlessHandler ( string pathNoExt , string func , string framework , string runtime ) {
157
157
exists ( File ymlFile , string handler , string codeUri , string filePart |
158
158
hasServerlessHandler ( ymlFile , framework , handler , codeUri , runtime )
159
159
|
160
160
splitHandler ( handler , filePart , func ) and
161
- fileStem = ymlFile .getParentContainer ( ) .getAbsolutePath ( ) + "/" + codeUri + filePart
161
+ pathNoExt = ymlFile .getParentContainer ( ) .getAbsolutePath ( ) + "/" + codeUri + filePart
162
162
)
163
163
}
164
164
}
0 commit comments