@@ -62,8 +62,8 @@ module ServerLess<Input I> {
6262 * Gets the looked up value if it exists or
6363 * the empty string if it does not.
6464 */
65- pragma [ inline]
6665 bindingset [ property]
66+ pragma [ inline]
6767 private string lookupValueOrEmpty ( YamlMapping mapping , string property ) {
6868 if exists ( mapping .lookup ( property ) )
6969 then result = mapping .lookup ( property ) .( YamlScalar ) .getValue ( )
@@ -146,19 +146,19 @@ module ServerLess<Input I> {
146146 }
147147
148148 /**
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`.
150150 *
151151 * This is a convenience predicate for the common case where the first part of the
152152 * handler property is the file name.
153153 *
154154 * `func` should be interpreted in a language specific way, see `mapping.md`.
155155 */
156- predicate hasServerlessHandler ( string fileStem , string func , string framework , string runtime ) {
156+ predicate hasServerlessHandler ( string pathNoExt , string func , string framework , string runtime ) {
157157 exists ( File ymlFile , string handler , string codeUri , string filePart |
158158 hasServerlessHandler ( ymlFile , framework , handler , codeUri , runtime )
159159 |
160160 splitHandler ( handler , filePart , func ) and
161- fileStem = ymlFile .getParentContainer ( ) .getAbsolutePath ( ) + "/" + codeUri + filePart
161+ pathNoExt = ymlFile .getParentContainer ( ) .getAbsolutePath ( ) + "/" + codeUri + filePart
162162 )
163163 }
164164}
0 commit comments