packages feed

dhscanner-kbgen 2.6.0 → 2.7.0

raw patch · 3 files changed

+3/−17 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

dhscanner-kbgen.cabal view
@@ -33,7 +33,7 @@         * explain in plain English your query's purpose         * et voilà ! -version:            2.6.0+version:            2.7.0 license:            GPL-3.0-only license-file:       LICENSE author:             OrenGitHub
src/Kbgen.hs view
@@ -470,20 +470,6 @@ -- counterpart of 'CallMethodOf1stPartyImportedName'. @Name@ is the imported
 -- name, @File@ the file that defines it ( the same spelling as in 'ClassDef' ).
 --
--- @
--- // routes/web.php
--- use App\\Http\\Controllers\\UserController;
--- ...
--- Route::post( \'/studio/theme\', [ UserController::class, \'editTheme\' ] );
--- @
---
--- @
--- kb_field_read_of_1st_party_imported_name( FieldRead, \'class\', \'UserController\', \'app/Http/Controllers/UserController.php\' ).
--- @
---
--- Only one member deep : @Name.f@. A field read rooted at a 3rd party
--- import is a 'FieldReadResolved' fact.
---
 -- __Writing a predicate with this fact and others__
 --
 -- @
test/SmokeTests.hs view
@@ -185,8 +185,8 @@ testPrologifyFieldReadOf1stPartyImportedName :: IO ()
 testPrologifyFieldReadOf1stPartyImportedName =
     let readLoc = sampleLoc 1
-        r = FieldReadOf1stPartyImportedName (FieldRead readLoc) (FieldName "class") (ImportedName "UserController") (ImportedFromFile "app/Http/Controllers/UserController.php")
-        expected = "kb_field_read_of_1st_party_imported_name( " ++ locationify readLoc ++ ", 'class', 'UserController', 'app/Http/Controllers/UserController.php' )."
+        r = FieldReadOf1stPartyImportedName (FieldRead readLoc) (FieldName "class") (ImportedName "PathUtil") (ImportedFromFile "src/Util/PathUtil.php")
+        expected = "kb_field_read_of_1st_party_imported_name( " ++ locationify readLoc ++ ", 'class', 'PathUtil', 'src/Util/PathUtil.php' )."
     in prologify (FieldReadOf1stPartyImportedNameCtor r) `shouldBe` expected
 
 -- a capitalized method name ( C# ) must not read as a Prolog variable