mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Rename function
This commit is contained in:
parent
73b8388d84
commit
93242ae1c3
@ -1,4 +1,4 @@
|
||||
module Review.Cache exposing (EntryNoOutputContext, ModuleEntry, ProjectFileCache, createEntryForProjectFileCache, createModuleEntry, createNoOutput, errors, errorsForMaybeProjectFileCache, errorsFromProjectFileCache, match, matchNoOutput, matchProjectFileCache, outputContext, outputContextForProjectFileCache, outputContextHash, outputContextHashForProjectFileCache, outputForNoOutput, setErrors)
|
||||
module Review.Cache exposing (EntryNoOutputContext, ModuleEntry, ProjectFileCache, createEntryForProjectFileCache, createModuleEntry, createNoOutput, errors, errorsForMaybeProjectFileCache, errorsFromProjectFileCache, match, matchNoOutput, matchProjectFileCache, outputContext, outputContextForProjectFileCache, outputContextHash, outputContextHashForProjectFileCache, outputForNoOutput, setErrorsForModule)
|
||||
|
||||
import Review.Cache.ContentHash as ContentHash exposing (ContentHash)
|
||||
import Review.Cache.ContextHash as ContextHash exposing (ComparableContextHash, ContextHash)
|
||||
@ -50,8 +50,8 @@ errors (ModuleEntry entry) =
|
||||
entry.errors
|
||||
|
||||
|
||||
setErrors : List error -> ModuleEntry error context -> ModuleEntry error context
|
||||
setErrors newErrors (ModuleEntry entry) =
|
||||
setErrorsForModule : List error -> ModuleEntry error context -> ModuleEntry error context
|
||||
setErrorsForModule newErrors (ModuleEntry entry) =
|
||||
ModuleEntry { entry | errors = newErrors }
|
||||
|
||||
|
||||
|
@ -5463,7 +5463,7 @@ createRuleProjectVisitor schema initialProject ruleData initialCache =
|
||||
|
||||
-- TODO This is called at the wrong moment: This contains the state of the project with fixes that haven't been applied.
|
||||
, getErrors = \() -> errorsFromCache (finalCacheMarker schema.name hidden.ruleData.ruleId cache)
|
||||
, setErrorsForModule = \filePath errors -> raiseCache { cache | moduleContexts = Dict.update filePath (Maybe.map (\entry -> Cache.setErrors errors entry)) cache.moduleContexts }
|
||||
, setErrorsForModule = \filePath errors -> raiseCache { cache | moduleContexts = Dict.update filePath (Maybe.map (\entry -> Cache.setErrorsForModule errors entry)) cache.moduleContexts }
|
||||
, backToRule =
|
||||
\() ->
|
||||
Rule
|
||||
|
Loading…
Reference in New Issue
Block a user