{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- UUAGC 0.9.55 (src/GLuaFixer/AG/ASTLint.ag)
module GLuaFixer.AG.ASTLint where

{-# LINE 9 "src/GLuaFixer/AG/../../GLua/AG/Token.ag" #-}

import GHC.Generics
import Text.ParserCombinators.UU.BasicInstances hiding (pos)
{-# LINE 19 "src/GLuaFixer/AG/ASTLint.hs" #-}

{-# LINE 10 "src/GLuaFixer/AG/../../GLua/AG/AST.ag" #-}

import Data.Aeson
import GHC.Generics
import GLua.AG.Token
import GLua.TokenTypes ()
{-# LINE 27 "src/GLuaFixer/AG/ASTLint.hs" #-}

{-# LINE 10 "src/GLuaFixer/AG/ASTLint.ag" #-}

import Data.Char (isLower, isUpper)
import qualified Data.Map.Strict as M
import Data.Maybe
import qualified Data.Set as S
import GLua.AG.AST
import qualified GLua.AG.PrettyPrint as PP
import qualified GLua.AG.Token as T
import GLua.TokenTypes
import GLuaFixer.LintMessage
import GLuaFixer.LintSettings
{-# LINE 41 "src/GLuaFixer/AG/ASTLint.hs" #-}
{-# LINE 28 "src/GLuaFixer/AG/ASTLint.ag" #-}

warn :: Region -> Issue -> FilePath -> LintMessage
warn pos issue = LintMessage LintWarning pos issue

-- Used in detecting "not (a == b)" kind of things
oppositeBinOp :: BinOp -> Maybe String
oppositeBinOp ALT = Just ">="
oppositeBinOp AGT = Just "<="
oppositeBinOp ALEQ = Just ">"
oppositeBinOp AGEQ = Just "<"
oppositeBinOp ANEq = Just "=="
oppositeBinOp AEq = Just "~="
oppositeBinOp _ = Nothing

-- Checks whether a variable shadows existing variables
checkShadows :: [M.Map String (Bool, Region)] -> MToken -> Maybe (FilePath -> LintMessage)
checkShadows [] _ = Nothing
checkShadows _ (MToken _ (Identifier "_")) = Nothing -- Exception for vars named '_'
checkShadows (scope : scs) mtok' =
  if M.member lbl scope
    then Just $ warn (mpos mtok') $ VariableShadows lbl location
    else checkShadows scs mtok'
  where
    lbl = tokenLabel mtok'
    location = snd $ fromMaybe (error "checkShadows fromMaybe") $ M.lookup lbl scope

-- Determines whether a variable is local
-- It is local if it does not exist in any but the topmost (global) scope
-- it may or may not exist in the topmost scope.
isVariableLocal :: [M.Map String (Bool, Region)] -> String -> Bool
isVariableLocal [] _ = False
isVariableLocal [_] _ = False
isVariableLocal (scope : scs) var =
  case M.lookup var scope of
    Just _ -> True
    Nothing -> isVariableLocal scs var

-- Registers a variable as global variable when it hasn't been
-- introduced in any of the visible scopes
registerVariable :: [M.Map String (Bool, Region)] -> Region -> String -> Bool -> [M.Map String (Bool, Region)]
registerVariable [] _ _ _ = error "cannot register top level variable"
registerVariable (scope : []) pos var used =
  [ case M.lookup var scope of
      Just (used', pos') -> M.insert var (used || used', pos') scope
      Nothing -> M.insert var (used, pos) scope
  ] -- global scope
registerVariable (scope : scs) pos var used = case M.lookup var scope of
  Just (True, _) -> scope : scs
  Just (False, pos') -> M.insert var (used, pos') scope : scs
  Nothing -> scope : registerVariable scs pos var used

findSelf :: [MToken] -> Bool
findSelf ((MToken _ (Identifier "self")) : _) = True
findSelf _ = False

data VariableStyle
  = StartsLowerCase
  | StartsUpperCase
  | VariableStyleNeither
  deriving (Eq)

data DeterminedVariableStyle
  = VarStyleNotDetermined
  | VarStyleDetermined !VariableStyle

combineDeterminedVarStyle :: DeterminedVariableStyle -> VariableStyle -> DeterminedVariableStyle
combineDeterminedVarStyle old new = case old of
  VarStyleNotDetermined -> VarStyleDetermined new
  VarStyleDetermined VariableStyleNeither -> VarStyleDetermined new
  _ -> old

determineVariableStyle :: String -> VariableStyle
determineVariableStyle = \case
  [] -> VariableStyleNeither
  (c : _)
    | isLower c -> StartsLowerCase
    | isUpper c -> StartsUpperCase
    | otherwise -> VariableStyleNeither

variableStyleInconsistent :: DeterminedVariableStyle -> VariableStyle -> Bool
variableStyleInconsistent determinedStyle varStyle = case determinedStyle of
  VarStyleNotDetermined -> False
  VarStyleDetermined VariableStyleNeither -> False
  VarStyleDetermined existing -> case varStyle of
    VariableStyleNeither -> False
    _ -> existing /= varStyle

unknownIdentifier :: String
unknownIdentifier = "Unknown identifier"

{-# LINE 135 "src/GLuaFixer/AG/ASTLint.hs" #-}

{-# LINE 647 "src/GLuaFixer/AG/ASTLint.ag" #-}

inh_AST :: LintSettings -> Inh_AST
inh_AST conf =
  Inh_AST
    { config_Inh_AST = conf
    , isMeta_Inh_AST = False
    , loopLevel_Inh_AST = 0
    , globalDefinitions_Inh_AST = M.empty
    , mtokenPos_Inh_AST = emptyRg
    , scopeLevel_Inh_AST = 0
    , scopes_Inh_AST = [M.empty]
    , funcName_Inh_AST = ""
    , isInModule_Inh_AST = False
    , variableStyle_Inh_AST = VarStyleNotDetermined
    }

allAttributes :: LintSettings -> AST -> Syn_AST
allAttributes conf p = wrap_AST (sem_AST p) (inh_AST conf)

astWarnings :: LintSettings -> AST -> [String -> LintMessage]
astWarnings conf p = warnings_Syn_AST $ allAttributes conf p

globalDefinitions :: LintSettings -> AST -> M.Map String [Region]
globalDefinitions conf p = globalDefinitions_Syn_AST $ allAttributes conf p
{-# LINE 161 "src/GLuaFixer/AG/ASTLint.hs" #-}
-- AReturn -----------------------------------------------------
-- cata
sem_AReturn
  :: AReturn
  -> T_AReturn
sem_AReturn :: AReturn -> T_AReturn
sem_AReturn (AReturn Region
_pos MExprList
_values) =
  (T_Region -> T_MExprList -> T_AReturn
sem_AReturn_AReturn (Region -> T_Region
sem_Region Region
_pos) (MExprList -> T_MExprList
sem_MExprList MExprList
_values))
sem_AReturn (AReturn
NoReturn) =
  (T_AReturn
sem_AReturn_NoReturn)

-- semantic domain
type T_AReturn = (AReturn, T_AReturn_1)
type T_AReturn_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), Int, DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_AReturn = Inh_AReturn {Inh_AReturn -> LintSettings
config_Inh_AReturn :: LintSettings, Inh_AReturn -> String
funcName_Inh_AReturn :: String, Inh_AReturn -> Map String [Region]
globalDefinitions_Inh_AReturn :: (M.Map String [Region]), Inh_AReturn -> Bool
isInModule_Inh_AReturn :: Bool, Inh_AReturn -> Bool
isMeta_Inh_AReturn :: Bool, Inh_AReturn -> Int
loopLevel_Inh_AReturn :: Int, Inh_AReturn -> Region
mtokenPos_Inh_AReturn :: Region, Inh_AReturn -> Int
scopeLevel_Inh_AReturn :: Int, Inh_AReturn -> [Map String (Bool, Region)]
scopes_Inh_AReturn :: ([M.Map String (Bool, Region)]), Inh_AReturn -> DeterminedVariableStyle
variableStyle_Inh_AReturn :: DeterminedVariableStyle}
data Syn_AReturn = Syn_AReturn {Syn_AReturn -> AReturn
copy_Syn_AReturn :: AReturn, Syn_AReturn -> Map String [Region]
globalDefinitions_Syn_AReturn :: (M.Map String [Region]), Syn_AReturn -> String
identifier_Syn_AReturn :: String, Syn_AReturn -> Bool
isInModule_Syn_AReturn :: Bool, Syn_AReturn -> Region
mtokenPos_Syn_AReturn :: Region, Syn_AReturn -> [Map String (Bool, Region)]
scopes_Syn_AReturn :: ([M.Map String (Bool, Region)]), Syn_AReturn -> Int
statementCount_Syn_AReturn :: Int, Syn_AReturn -> DeterminedVariableStyle
variableStyle_Syn_AReturn :: DeterminedVariableStyle, Syn_AReturn -> [String -> LintMessage]
warnings_Syn_AReturn :: ([String -> LintMessage])}
wrap_AReturn
  :: T_AReturn
  -> Inh_AReturn
  -> Syn_AReturn
wrap_AReturn :: T_AReturn -> Inh_AReturn -> Syn_AReturn
wrap_AReturn T_AReturn
sem (Inh_AReturn LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (AReturn
_lhsOcopy, T_AReturn_1
sem_1) = T_AReturn
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_AReturn_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (AReturn
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> Int
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_AReturn
Syn_AReturn AReturn
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes Int
_lhsOstatementCount DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_AReturn_AReturn
  :: T_Region
  -> T_MExprList
  -> T_AReturn
sem_AReturn_AReturn :: T_Region -> T_MExprList -> T_AReturn
sem_AReturn_AReturn T_Region
pos_ T_MExprList
values_ =
  ( case (T_MExprList
values_) of
      (MExprList
_valuesIcopy, T_MExprList_1
values_1) ->
        ( case (T_Region
pos_) of
            (Region
_posIcopy, String
_posIidentifier, [String -> LintMessage]
_posIwarnings) ->
              ( case ( ( Region -> MExprList -> AReturn
AReturn Region
_posIcopy MExprList
_valuesIcopy
                       )
                     ) of
                  AReturn
_copy ->
                    ( case ( ( AReturn
_copy
                             )
                           ) of
                        AReturn
_lhsOcopy ->
                          ( case ( ( let
                                      sem_AReturn_AReturn_1 :: T_AReturn_1
                                      sem_AReturn_AReturn_1 :: T_AReturn_1
sem_AReturn_AReturn_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_valuesOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_valuesOisMeta ->
                                                          ( case ( ( Bool
_lhsIisInModule
                                                                   )
                                                                 ) of
                                                              Bool
_valuesOisInModule ->
                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                         )
                                                                       ) of
                                                                    Map String [Region]
_valuesOglobalDefinitions ->
                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                               )
                                                                             ) of
                                                                          LintSettings
_valuesOconfig ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_valuesOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_valuesOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_valuesOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_valuesOloopLevel ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_valuesOfuncName ->
                                                                                                          ( case ( ( Bool
True
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_valuesOtopLevel ->
                                                                                                                ( case ( ( Bool
True
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_valuesOinParentheses ->
                                                                                                                      ( case (T_MExprList_1
values_1 LintSettings
_valuesOconfig String
_valuesOfuncName Map String [Region]
_valuesOglobalDefinitions Bool
_valuesOinParentheses Bool
_valuesOisInModule Bool
_valuesOisMeta Int
_valuesOloopLevel Region
_valuesOmtokenPos Int
_valuesOscopeLevel [Map String (Bool, Region)]
_valuesOscopes Bool
_valuesOtopLevel DeterminedVariableStyle
_valuesOvariableStyle) of
                                                                                                                          (Map String [Region]
_valuesIglobalDefinitions, String
_valuesIidentifier, Bool
_valuesIisInModule, Region
_valuesImtokenPos, [Map String (Bool, Region)]
_valuesIscopes, DeterminedVariableStyle
_valuesIvariableStyle, [String -> LintMessage]
_valuesIwarnings) ->
                                                                                                                            ( case ( ( Map String [Region]
_valuesIglobalDefinitions
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                  ( case ( ( (forall a b. a -> b -> a
const String
_posIidentifier String
_valuesIidentifier)
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      String
_lhsOidentifier ->
                                                                                                                                        ( case ( ( Bool
_valuesIisInModule
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_lhsOisInModule ->
                                                                                                                                              ( case ( ( Region
_posIcopy
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Region
_lhsOmtokenPos ->
                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_valuesIscopes
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                          ( case ( ( Int
1
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Int
_lhsOstatementCount ->
                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_valuesIvariableStyle
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                      ( case ( ( [String -> LintMessage]
_posIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_valuesIwarnings
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_AReturn_1
sem_AReturn_AReturn_1
                                   )
                                 ) of
                              (T_AReturn_1
sem_AReturn_1) ->
                                (AReturn
_lhsOcopy, T_AReturn_1
sem_AReturn_1)
                          )
                    )
              )
        )
  )
sem_AReturn_NoReturn :: T_AReturn
sem_AReturn_NoReturn :: T_AReturn
sem_AReturn_NoReturn =
  ( case ( ( AReturn
NoReturn
           )
         ) of
      AReturn
_copy ->
        ( case ( ( AReturn
_copy
                 )
               ) of
            AReturn
_lhsOcopy ->
              ( case ( ( let
                          sem_AReturn_NoReturn_1 :: T_AReturn_1
                          sem_AReturn_NoReturn_1 :: T_AReturn_1
sem_AReturn_NoReturn_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( Int
0
                                                                         )
                                                                       ) of
                                                                    Int
_lhsOstatementCount ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_AReturn_1
sem_AReturn_NoReturn_1
                       )
                     ) of
                  (T_AReturn_1
sem_AReturn_1) ->
                    (AReturn
_lhsOcopy, T_AReturn_1
sem_AReturn_1)
              )
        )
  )

-- AST ---------------------------------------------------------
-- cata
sem_AST
  :: AST
  -> T_AST
sem_AST :: AST -> T_AST
sem_AST (AST [MToken]
_comments Block
_chunk) =
  ([MToken] -> T_Block -> T_AST
sem_AST_AST [MToken]
_comments (Block -> T_Block
sem_Block Block
_chunk))

-- semantic domain
type T_AST =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> (AST, (M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_AST = Inh_AST {Inh_AST -> LintSettings
config_Inh_AST :: LintSettings, Inh_AST -> String
funcName_Inh_AST :: String, Inh_AST -> Map String [Region]
globalDefinitions_Inh_AST :: (M.Map String [Region]), Inh_AST -> Bool
isInModule_Inh_AST :: Bool, Inh_AST -> Bool
isMeta_Inh_AST :: Bool, Inh_AST -> Int
loopLevel_Inh_AST :: Int, Inh_AST -> Region
mtokenPos_Inh_AST :: Region, Inh_AST -> Int
scopeLevel_Inh_AST :: Int, Inh_AST -> [Map String (Bool, Region)]
scopes_Inh_AST :: ([M.Map String (Bool, Region)]), Inh_AST -> DeterminedVariableStyle
variableStyle_Inh_AST :: DeterminedVariableStyle}
data Syn_AST = Syn_AST {Syn_AST -> AST
copy_Syn_AST :: AST, Syn_AST -> Map String [Region]
globalDefinitions_Syn_AST :: (M.Map String [Region]), Syn_AST -> String
identifier_Syn_AST :: String, Syn_AST -> Bool
isInModule_Syn_AST :: Bool, Syn_AST -> Region
mtokenPos_Syn_AST :: Region, Syn_AST -> [Map String (Bool, Region)]
scopes_Syn_AST :: ([M.Map String (Bool, Region)]), Syn_AST -> DeterminedVariableStyle
variableStyle_Syn_AST :: DeterminedVariableStyle, Syn_AST -> [String -> LintMessage]
warnings_Syn_AST :: ([String -> LintMessage])}
wrap_AST
  :: T_AST
  -> Inh_AST
  -> Syn_AST
wrap_AST :: T_AST -> Inh_AST -> Syn_AST
wrap_AST T_AST
sem (Inh_AST LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (AST
_lhsOcopy, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_AST
sem LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (AST
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_AST
Syn_AST AST
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_AST_AST
  :: ([MToken])
  -> T_Block
  -> T_AST
sem_AST_AST :: [MToken] -> T_Block -> T_AST
sem_AST_AST [MToken]
comments_ T_Block
chunk_ =
  ( \LintSettings
_lhsIconfig
     String
_lhsIfuncName
     Map String [Region]
_lhsIglobalDefinitions
     Bool
_lhsIisInModule
     Bool
_lhsIisMeta
     Int
_lhsIloopLevel
     Region
_lhsImtokenPos
     Int
_lhsIscopeLevel
     [Map String (Bool, Region)]
_lhsIscopes
     DeterminedVariableStyle
_lhsIvariableStyle ->
        ( case (T_Block
chunk_) of
            (Block
_chunkIcopy, T_Block_1
chunk_1) ->
              ( case ( ( [MToken] -> Block -> AST
AST [MToken]
comments_ Block
_chunkIcopy
                       )
                     ) of
                  AST
_copy ->
                    ( case ( ( AST
_copy
                             )
                           ) of
                        AST
_lhsOcopy ->
                          ( case ( ( Bool
_lhsIisMeta
                                   )
                                 ) of
                              Bool
_chunkOisMeta ->
                                ( case ( ( Bool
_lhsIisInModule
                                         )
                                       ) of
                                    Bool
_chunkOisInModule ->
                                      ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                               )
                                             ) of
                                          Map String [Region]
_chunkOglobalDefinitions ->
                                            ( case ( ( LintSettings
_lhsIconfig
                                                     )
                                                   ) of
                                                LintSettings
_chunkOconfig ->
                                                  ( case ( ( forall k a. Map k a
M.empty forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_lhsIscopes
                                                           )
                                                         ) of
                                                      [Map String (Bool, Region)]
_chunkOscopes ->
                                                        ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                 )
                                                               ) of
                                                            DeterminedVariableStyle
_chunkOvariableStyle ->
                                                              ( case ( ( Int
_lhsIscopeLevel
                                                                       )
                                                                     ) of
                                                                  Int
_chunkOscopeLevel ->
                                                                    ( case ( ( Region
_lhsImtokenPos
                                                                             )
                                                                           ) of
                                                                        Region
_chunkOmtokenPos ->
                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                   )
                                                                                 ) of
                                                                              Int
_chunkOloopLevel ->
                                                                                ( case ( ( String
_lhsIfuncName
                                                                                         )
                                                                                       ) of
                                                                                    String
_chunkOfuncName ->
                                                                                      ( case ( ( Bool
False
                                                                                               )
                                                                                             ) of
                                                                                          Bool
_chunkOisRepeat ->
                                                                                            ( case (T_Block_1
chunk_1 LintSettings
_chunkOconfig String
_chunkOfuncName Map String [Region]
_chunkOglobalDefinitions Bool
_chunkOisInModule Bool
_chunkOisMeta Bool
_chunkOisRepeat Int
_chunkOloopLevel Region
_chunkOmtokenPos Int
_chunkOscopeLevel [Map String (Bool, Region)]
_chunkOscopes DeterminedVariableStyle
_chunkOvariableStyle) of
                                                                                                (Map String [Region]
_chunkIglobalDefinitions, String
_chunkIidentifier, Bool
_chunkIisIfStatement, Bool
_chunkIisInModule, Region
_chunkImtokenPos, [Map String (Bool, Region)]
_chunkIscopes, Int
_chunkIstatementCount, DeterminedVariableStyle
_chunkIvariableStyle, [String -> LintMessage]
_chunkIwarnings) ->
                                                                                                  ( case ( ( Map String [Region]
_chunkIglobalDefinitions
                                                                                                           )
                                                                                                         ) of
                                                                                                      Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                        ( case ( ( String
_chunkIidentifier
                                                                                                                 )
                                                                                                               ) of
                                                                                                            String
_lhsOidentifier ->
                                                                                                              ( case ( ( Bool
_chunkIisInModule
                                                                                                                       )
                                                                                                                     ) of
                                                                                                                  Bool
_lhsOisInModule ->
                                                                                                                    ( case ( ( Region
_chunkImtokenPos
                                                                                                                             )
                                                                                                                           ) of
                                                                                                                        Region
_lhsOmtokenPos ->
                                                                                                                          ( case ( ( [Map String (Bool, Region)]
_chunkIscopes
                                                                                                                                   )
                                                                                                                                 ) of
                                                                                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                ( case ( ( DeterminedVariableStyle
_chunkIvariableStyle
                                                                                                                                         )
                                                                                                                                       ) of
                                                                                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                      ( case ( ( [String -> LintMessage]
_chunkIwarnings
                                                                                                                                               )
                                                                                                                                             ) of
                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                            (AST
_lhsOcopy, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                      )
                                                                                                                                )
                                                                                                                          )
                                                                                                                    )
                                                                                                              )
                                                                                                        )
                                                                                                  )
                                                                                            )
                                                                                      )
                                                                                )
                                                                          )
                                                                    )
                                                              )
                                                        )
                                                  )
                                            )
                                      )
                                )
                          )
                    )
              )
        )
  )

-- Args --------------------------------------------------------
-- cata
sem_Args
  :: Args
  -> T_Args
sem_Args :: Args -> T_Args
sem_Args (ListArgs MExprList
_args) =
  (T_MExprList -> T_Args
sem_Args_ListArgs (MExprList -> T_MExprList
sem_MExprList MExprList
_args))
sem_Args (TableArg FieldList
_arg) =
  (T_FieldList -> T_Args
sem_Args_TableArg (FieldList -> T_FieldList
sem_FieldList FieldList
_arg))
sem_Args (StringArg MToken
_arg) =
  (T_MToken -> T_Args
sem_Args_StringArg (MToken -> T_MToken
sem_MToken MToken
_arg))

-- semantic domain
type T_Args = (Args, T_Args_1)
type T_Args_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_Args = Inh_Args {Inh_Args -> LintSettings
config_Inh_Args :: LintSettings, Inh_Args -> String
funcName_Inh_Args :: String, Inh_Args -> Map String [Region]
globalDefinitions_Inh_Args :: (M.Map String [Region]), Inh_Args -> Bool
isInModule_Inh_Args :: Bool, Inh_Args -> Bool
isMeta_Inh_Args :: Bool, Inh_Args -> Int
loopLevel_Inh_Args :: Int, Inh_Args -> Region
mtokenPos_Inh_Args :: Region, Inh_Args -> Int
scopeLevel_Inh_Args :: Int, Inh_Args -> [Map String (Bool, Region)]
scopes_Inh_Args :: ([M.Map String (Bool, Region)]), Inh_Args -> DeterminedVariableStyle
variableStyle_Inh_Args :: DeterminedVariableStyle}
data Syn_Args = Syn_Args {Syn_Args -> Args
copy_Syn_Args :: Args, Syn_Args -> Map String [Region]
globalDefinitions_Syn_Args :: (M.Map String [Region]), Syn_Args -> String
identifier_Syn_Args :: String, Syn_Args -> Bool
isInModule_Syn_Args :: Bool, Syn_Args -> Region
mtokenPos_Syn_Args :: Region, Syn_Args -> [Map String (Bool, Region)]
scopes_Syn_Args :: ([M.Map String (Bool, Region)]), Syn_Args -> DeterminedVariableStyle
variableStyle_Syn_Args :: DeterminedVariableStyle, Syn_Args -> [String -> LintMessage]
warnings_Syn_Args :: ([String -> LintMessage])}
wrap_Args
  :: T_Args
  -> Inh_Args
  -> Syn_Args
wrap_Args :: T_Args -> Inh_Args -> Syn_Args
wrap_Args T_Args
sem (Inh_Args LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (Args
_lhsOcopy, T_Args_1
sem_1) = T_Args
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Args_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (Args
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_Args
Syn_Args Args
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_Args_ListArgs
  :: T_MExprList
  -> T_Args
sem_Args_ListArgs :: T_MExprList -> T_Args
sem_Args_ListArgs T_MExprList
args_ =
  ( case (T_MExprList
args_) of
      (MExprList
_argsIcopy, T_MExprList_1
args_1) ->
        ( case ( ( MExprList -> Args
ListArgs MExprList
_argsIcopy
                 )
               ) of
            Args
_copy ->
              ( case ( ( Args
_copy
                       )
                     ) of
                  Args
_lhsOcopy ->
                    ( case ( ( let
                                sem_Args_ListArgs_1 :: T_Args_1
                                sem_Args_ListArgs_1 :: T_Args_1
sem_Args_ListArgs_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_argsOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_argsOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_argsOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_argsOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_argsOconfig ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_argsOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_argsOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_argsOmtokenPos ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_argsOloopLevel ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_argsOfuncName ->
                                                                                                    ( case ( ( Bool
True
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_argsOtopLevel ->
                                                                                                          ( case ( ( Bool
True
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_argsOinParentheses ->
                                                                                                                ( case (T_MExprList_1
args_1 LintSettings
_argsOconfig String
_argsOfuncName Map String [Region]
_argsOglobalDefinitions Bool
_argsOinParentheses Bool
_argsOisInModule Bool
_argsOisMeta Int
_argsOloopLevel Region
_argsOmtokenPos Int
_argsOscopeLevel [Map String (Bool, Region)]
_argsOscopes Bool
_argsOtopLevel DeterminedVariableStyle
_argsOvariableStyle) of
                                                                                                                    (Map String [Region]
_argsIglobalDefinitions, String
_argsIidentifier, Bool
_argsIisInModule, Region
_argsImtokenPos, [Map String (Bool, Region)]
_argsIscopes, DeterminedVariableStyle
_argsIvariableStyle, [String -> LintMessage]
_argsIwarnings) ->
                                                                                                                      ( case ( ( Map String [Region]
_argsIglobalDefinitions
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                            ( case ( ( String
_argsIidentifier
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                String
_lhsOidentifier ->
                                                                                                                                  ( case ( ( Bool
_argsIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                        ( case ( ( Region
_argsImtokenPos
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_argsIscopes
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_argsIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                          ( case ( ( [String -> LintMessage]
_argsIwarnings
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Args_1
sem_Args_ListArgs_1
                             )
                           ) of
                        (T_Args_1
sem_Args_1) ->
                          (Args
_lhsOcopy, T_Args_1
sem_Args_1)
                    )
              )
        )
  )
sem_Args_TableArg
  :: T_FieldList
  -> T_Args
sem_Args_TableArg :: T_FieldList -> T_Args
sem_Args_TableArg T_FieldList
arg_ =
  ( case (T_FieldList
arg_) of
      (FieldList
_argIcopy, T_FieldList_1
arg_1) ->
        ( case ( ( FieldList -> Args
TableArg FieldList
_argIcopy
                 )
               ) of
            Args
_copy ->
              ( case ( ( Args
_copy
                       )
                     ) of
                  Args
_lhsOcopy ->
                    ( case ( ( let
                                sem_Args_TableArg_1 :: T_Args_1
                                sem_Args_TableArg_1 :: T_Args_1
sem_Args_TableArg_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_argOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_argOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_argOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_argOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_argOconfig ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_argOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_argOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_argOmtokenPos ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_argOloopLevel ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_argOfuncName ->
                                                                                                    ( case ( ( forall a. Set a
S.empty
                                                                                                             )
                                                                                                           ) of
                                                                                                        Set Token
_argOfieldNames ->
                                                                                                          ( case (T_FieldList_1
arg_1 LintSettings
_argOconfig Set Token
_argOfieldNames String
_argOfuncName Map String [Region]
_argOglobalDefinitions Bool
_argOisInModule Bool
_argOisMeta Int
_argOloopLevel Region
_argOmtokenPos Int
_argOscopeLevel [Map String (Bool, Region)]
_argOscopes DeterminedVariableStyle
_argOvariableStyle) of
                                                                                                              (Set Token
_argIfieldNames, Map String [Region]
_argIglobalDefinitions, String
_argIidentifier, Bool
_argIisInModule, Region
_argImtokenPos, [Map String (Bool, Region)]
_argIscopes, DeterminedVariableStyle
_argIvariableStyle, [String -> LintMessage]
_argIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_argIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_argIidentifier
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
_argIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                  ( case ( ( Region
_argImtokenPos
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_argIscopes
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_argIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                    ( case ( ( [String -> LintMessage]
_argIwarnings
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                          (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Args_1
sem_Args_TableArg_1
                             )
                           ) of
                        (T_Args_1
sem_Args_1) ->
                          (Args
_lhsOcopy, T_Args_1
sem_Args_1)
                    )
              )
        )
  )
sem_Args_StringArg
  :: T_MToken
  -> T_Args
sem_Args_StringArg :: T_MToken -> T_Args
sem_Args_StringArg T_MToken
arg_ =
  ( case (T_MToken
arg_) of
      (MToken
_argIcopy, Token
_argImtok, Region
_argImtokenPos, T_MToken_1
arg_1) ->
        ( case ( ( MToken -> Args
StringArg MToken
_argIcopy
                 )
               ) of
            Args
_copy ->
              ( case ( ( Args
_copy
                       )
                     ) of
                  Args
_lhsOcopy ->
                    ( case ( ( let
                                sem_Args_StringArg_1 :: T_Args_1
                                sem_Args_StringArg_1 :: T_Args_1
sem_Args_StringArg_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_argOglobalDefinitions ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_argOscopes ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_argOmtokenPos ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_argOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_argOisInModule ->
                                                                      ( case ( ( String
_lhsIfuncName
                                                                               )
                                                                             ) of
                                                                          String
_argOfuncName ->
                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                     )
                                                                                   ) of
                                                                                LintSettings
_argOconfig ->
                                                                                  ( case (T_MToken_1
arg_1 LintSettings
_argOconfig String
_argOfuncName Map String [Region]
_argOglobalDefinitions Bool
_argOisInModule Bool
_argOisMeta Region
_argOmtokenPos [Map String (Bool, Region)]
_argOscopes) of
                                                                                      (Map String [Region]
_argIglobalDefinitions, String
_argIidentifier, Bool
_argIisInModule, [Map String (Bool, Region)]
_argIscopes, [String -> LintMessage]
_argIwarnings) ->
                                                                                        ( case ( ( Map String [Region]
_argIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                              ( case ( ( String
_argIidentifier
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_lhsOidentifier ->
                                                                                                    ( case ( ( Bool
_argIisInModule
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_lhsOisInModule ->
                                                                                                          ( case ( ( Region
_argImtokenPos
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Region
_lhsOmtokenPos ->
                                                                                                                ( case ( ( [Map String (Bool, Region)]
_argIscopes
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                            ( case ( ( [String -> LintMessage]
_argIwarnings
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Args_1
sem_Args_StringArg_1
                             )
                           ) of
                        (T_Args_1
sem_Args_1) ->
                          (Args
_lhsOcopy, T_Args_1
sem_Args_1)
                    )
              )
        )
  )

-- BinOp -------------------------------------------------------
-- cata
sem_BinOp
  :: BinOp
  -> T_BinOp
sem_BinOp :: BinOp -> T_BinOp
sem_BinOp (BinOp
AOr) =
  (T_BinOp
sem_BinOp_AOr)
sem_BinOp (BinOp
AAnd) =
  (T_BinOp
sem_BinOp_AAnd)
sem_BinOp (BinOp
ALT) =
  (T_BinOp
sem_BinOp_ALT)
sem_BinOp (BinOp
AGT) =
  (T_BinOp
sem_BinOp_AGT)
sem_BinOp (BinOp
ALEQ) =
  (T_BinOp
sem_BinOp_ALEQ)
sem_BinOp (BinOp
AGEQ) =
  (T_BinOp
sem_BinOp_AGEQ)
sem_BinOp (BinOp
ANEq) =
  (T_BinOp
sem_BinOp_ANEq)
sem_BinOp (BinOp
AEq) =
  (T_BinOp
sem_BinOp_AEq)
sem_BinOp (BinOp
AConcatenate) =
  (T_BinOp
sem_BinOp_AConcatenate)
sem_BinOp (BinOp
APlus) =
  (T_BinOp
sem_BinOp_APlus)
sem_BinOp (BinOp
BinMinus) =
  (T_BinOp
sem_BinOp_BinMinus)
sem_BinOp (BinOp
AMultiply) =
  (T_BinOp
sem_BinOp_AMultiply)
sem_BinOp (BinOp
ADivide) =
  (T_BinOp
sem_BinOp_ADivide)
sem_BinOp (BinOp
AModulus) =
  (T_BinOp
sem_BinOp_AModulus)
sem_BinOp (BinOp
APower) =
  (T_BinOp
sem_BinOp_APower)

-- semantic domain
type T_BinOp = (BinOp, T_BinOp_1)
type T_BinOp_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_BinOp = Inh_BinOp {Inh_BinOp -> LintSettings
config_Inh_BinOp :: LintSettings, Inh_BinOp -> String
funcName_Inh_BinOp :: String, Inh_BinOp -> Map String [Region]
globalDefinitions_Inh_BinOp :: (M.Map String [Region]), Inh_BinOp -> Bool
isInModule_Inh_BinOp :: Bool, Inh_BinOp -> Bool
isMeta_Inh_BinOp :: Bool, Inh_BinOp -> Int
loopLevel_Inh_BinOp :: Int, Inh_BinOp -> Region
mtokenPos_Inh_BinOp :: Region, Inh_BinOp -> Int
scopeLevel_Inh_BinOp :: Int, Inh_BinOp -> [Map String (Bool, Region)]
scopes_Inh_BinOp :: ([M.Map String (Bool, Region)]), Inh_BinOp -> DeterminedVariableStyle
variableStyle_Inh_BinOp :: DeterminedVariableStyle}
data Syn_BinOp = Syn_BinOp {Syn_BinOp -> BinOp
copy_Syn_BinOp :: BinOp, Syn_BinOp -> Map String [Region]
globalDefinitions_Syn_BinOp :: (M.Map String [Region]), Syn_BinOp -> String
identifier_Syn_BinOp :: String, Syn_BinOp -> Bool
isInModule_Syn_BinOp :: Bool, Syn_BinOp -> Region
mtokenPos_Syn_BinOp :: Region, Syn_BinOp -> [Map String (Bool, Region)]
scopes_Syn_BinOp :: ([M.Map String (Bool, Region)]), Syn_BinOp -> DeterminedVariableStyle
variableStyle_Syn_BinOp :: DeterminedVariableStyle, Syn_BinOp -> [String -> LintMessage]
warnings_Syn_BinOp :: ([String -> LintMessage])}
wrap_BinOp
  :: T_BinOp
  -> Inh_BinOp
  -> Syn_BinOp
wrap_BinOp :: T_BinOp -> Inh_BinOp -> Syn_BinOp
wrap_BinOp T_BinOp
sem (Inh_BinOp LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (BinOp
_lhsOcopy, T_Args_1
sem_1) = T_BinOp
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Args_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (BinOp
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_BinOp
Syn_BinOp BinOp
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_BinOp_AOr :: T_BinOp
sem_BinOp_AOr :: T_BinOp
sem_BinOp_AOr =
  ( case ( ( BinOp
AOr
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AOr_1 :: T_BinOp_1
                          sem_BinOp_AOr_1 :: T_Args_1
sem_BinOp_AOr_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AOr_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_AAnd :: T_BinOp
sem_BinOp_AAnd :: T_BinOp
sem_BinOp_AAnd =
  ( case ( ( BinOp
AAnd
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AAnd_1 :: T_BinOp_1
                          sem_BinOp_AAnd_1 :: T_Args_1
sem_BinOp_AAnd_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AAnd_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_ALT :: T_BinOp
sem_BinOp_ALT :: T_BinOp
sem_BinOp_ALT =
  ( case ( ( BinOp
ALT
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_ALT_1 :: T_BinOp_1
                          sem_BinOp_ALT_1 :: T_Args_1
sem_BinOp_ALT_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_ALT_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_AGT :: T_BinOp
sem_BinOp_AGT :: T_BinOp
sem_BinOp_AGT =
  ( case ( ( BinOp
AGT
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AGT_1 :: T_BinOp_1
                          sem_BinOp_AGT_1 :: T_Args_1
sem_BinOp_AGT_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AGT_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_ALEQ :: T_BinOp
sem_BinOp_ALEQ :: T_BinOp
sem_BinOp_ALEQ =
  ( case ( ( BinOp
ALEQ
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_ALEQ_1 :: T_BinOp_1
                          sem_BinOp_ALEQ_1 :: T_Args_1
sem_BinOp_ALEQ_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_ALEQ_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_AGEQ :: T_BinOp
sem_BinOp_AGEQ :: T_BinOp
sem_BinOp_AGEQ =
  ( case ( ( BinOp
AGEQ
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AGEQ_1 :: T_BinOp_1
                          sem_BinOp_AGEQ_1 :: T_Args_1
sem_BinOp_AGEQ_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AGEQ_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_ANEq :: T_BinOp
sem_BinOp_ANEq :: T_BinOp
sem_BinOp_ANEq =
  ( case ( ( BinOp
ANEq
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_ANEq_1 :: T_BinOp_1
                          sem_BinOp_ANEq_1 :: T_Args_1
sem_BinOp_ANEq_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_ANEq_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_AEq :: T_BinOp
sem_BinOp_AEq :: T_BinOp
sem_BinOp_AEq =
  ( case ( ( BinOp
AEq
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AEq_1 :: T_BinOp_1
                          sem_BinOp_AEq_1 :: T_Args_1
sem_BinOp_AEq_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AEq_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_AConcatenate :: T_BinOp
sem_BinOp_AConcatenate :: T_BinOp
sem_BinOp_AConcatenate =
  ( case ( ( BinOp
AConcatenate
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AConcatenate_1 :: T_BinOp_1
                          sem_BinOp_AConcatenate_1 :: T_Args_1
sem_BinOp_AConcatenate_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AConcatenate_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_APlus :: T_BinOp
sem_BinOp_APlus :: T_BinOp
sem_BinOp_APlus =
  ( case ( ( BinOp
APlus
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_APlus_1 :: T_BinOp_1
                          sem_BinOp_APlus_1 :: T_Args_1
sem_BinOp_APlus_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_APlus_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_BinMinus :: T_BinOp
sem_BinOp_BinMinus :: T_BinOp
sem_BinOp_BinMinus =
  ( case ( ( BinOp
BinMinus
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_BinMinus_1 :: T_BinOp_1
                          sem_BinOp_BinMinus_1 :: T_Args_1
sem_BinOp_BinMinus_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_BinMinus_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_AMultiply :: T_BinOp
sem_BinOp_AMultiply :: T_BinOp
sem_BinOp_AMultiply =
  ( case ( ( BinOp
AMultiply
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AMultiply_1 :: T_BinOp_1
                          sem_BinOp_AMultiply_1 :: T_Args_1
sem_BinOp_AMultiply_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AMultiply_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_ADivide :: T_BinOp
sem_BinOp_ADivide :: T_BinOp
sem_BinOp_ADivide =
  ( case ( ( BinOp
ADivide
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_ADivide_1 :: T_BinOp_1
                          sem_BinOp_ADivide_1 :: T_Args_1
sem_BinOp_ADivide_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_ADivide_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_AModulus :: T_BinOp
sem_BinOp_AModulus :: T_BinOp
sem_BinOp_AModulus =
  ( case ( ( BinOp
AModulus
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_AModulus_1 :: T_BinOp_1
                          sem_BinOp_AModulus_1 :: T_Args_1
sem_BinOp_AModulus_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_AModulus_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )
sem_BinOp_APower :: T_BinOp
sem_BinOp_APower :: T_BinOp
sem_BinOp_APower =
  ( case ( ( BinOp
APower
           )
         ) of
      BinOp
_copy ->
        ( case ( ( BinOp
_copy
                 )
               ) of
            BinOp
_lhsOcopy ->
              ( case ( ( let
                          sem_BinOp_APower_1 :: T_BinOp_1
                          sem_BinOp_APower_1 :: T_Args_1
sem_BinOp_APower_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_BinOp_APower_1
                       )
                     ) of
                  (T_Args_1
sem_BinOp_1) ->
                    (BinOp
_lhsOcopy, T_Args_1
sem_BinOp_1)
              )
        )
  )

-- Block -------------------------------------------------------
-- cata
sem_Block
  :: Block
  -> T_Block
sem_Block :: Block -> T_Block
sem_Block (Block MStatList
_stats AReturn
_ret) =
  (T_MStatList -> T_AReturn -> T_Block
sem_Block_Block (MStatList -> T_MStatList
sem_MStatList MStatList
_stats) (AReturn -> T_AReturn
sem_AReturn AReturn
_ret))

-- semantic domain
type T_Block = (Block, T_Block_1)
type T_Block_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, Region, ([M.Map String (Bool, Region)]), Int, DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_Block = Inh_Block {Inh_Block -> LintSettings
config_Inh_Block :: LintSettings, Inh_Block -> String
funcName_Inh_Block :: String, Inh_Block -> Map String [Region]
globalDefinitions_Inh_Block :: (M.Map String [Region]), Inh_Block -> Bool
isInModule_Inh_Block :: Bool, Inh_Block -> Bool
isMeta_Inh_Block :: Bool, Inh_Block -> Bool
isRepeat_Inh_Block :: Bool, Inh_Block -> Int
loopLevel_Inh_Block :: Int, Inh_Block -> Region
mtokenPos_Inh_Block :: Region, Inh_Block -> Int
scopeLevel_Inh_Block :: Int, Inh_Block -> [Map String (Bool, Region)]
scopes_Inh_Block :: ([M.Map String (Bool, Region)]), Inh_Block -> DeterminedVariableStyle
variableStyle_Inh_Block :: DeterminedVariableStyle}
data Syn_Block = Syn_Block {Syn_Block -> Block
copy_Syn_Block :: Block, Syn_Block -> Map String [Region]
globalDefinitions_Syn_Block :: (M.Map String [Region]), Syn_Block -> String
identifier_Syn_Block :: String, Syn_Block -> Bool
isIfStatement_Syn_Block :: Bool, Syn_Block -> Bool
isInModule_Syn_Block :: Bool, Syn_Block -> Region
mtokenPos_Syn_Block :: Region, Syn_Block -> [Map String (Bool, Region)]
scopes_Syn_Block :: ([M.Map String (Bool, Region)]), Syn_Block -> Int
statementCount_Syn_Block :: Int, Syn_Block -> DeterminedVariableStyle
variableStyle_Syn_Block :: DeterminedVariableStyle, Syn_Block -> [String -> LintMessage]
warnings_Syn_Block :: ([String -> LintMessage])}
wrap_Block
  :: T_Block
  -> Inh_Block
  -> Syn_Block
wrap_Block :: T_Block -> Inh_Block -> Syn_Block
wrap_Block T_Block
sem (Inh_Block LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisRepeat Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (Block
_lhsOcopy, T_Block_1
sem_1) = T_Block
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Block_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisRepeat Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (Block
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> Int
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_Block
Syn_Block Block
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisIfStatement Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes Int
_lhsOstatementCount DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_Block_Block
  :: T_MStatList
  -> T_AReturn
  -> T_Block
sem_Block_Block :: T_MStatList -> T_AReturn -> T_Block
sem_Block_Block T_MStatList
stats_ T_AReturn
ret_ =
  ( case (T_AReturn
ret_) of
      (AReturn
_retIcopy, T_AReturn_1
ret_1) ->
        ( case (T_MStatList
stats_) of
            (MStatList
_statsIcopy, T_MStatList_1
stats_1) ->
              ( case ( ( MStatList -> AReturn -> Block
Block MStatList
_statsIcopy AReturn
_retIcopy
                       )
                     ) of
                  Block
_copy ->
                    ( case ( ( Block
_copy
                             )
                           ) of
                        Block
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Block_Block_1 :: T_Block_1
                                      sem_Block_Block_1 :: T_Block_1
sem_Block_Block_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Bool
_lhsIisRepeat
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_statsOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_statsOisMeta ->
                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                   )
                                                                 ) of
                                                              LintSettings
_statsOconfig ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_statsOvariableStyle ->
                                                                      ( case ( ( Region
_lhsImtokenPos
                                                                               )
                                                                             ) of
                                                                          Region
_statsOmtokenPos ->
                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_statsOloopLevel ->
                                                                                  ( case ( ( Bool
_lhsIisInModule
                                                                                           )
                                                                                         ) of
                                                                                      Bool
_statsOisInModule ->
                                                                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_statsOglobalDefinitions ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_statsOfuncName ->
                                                                                                    ( case ( ( Int
_lhsIscopeLevel forall a. Num a => a -> a -> a
+ Int
1
                                                                                                             )
                                                                                                           ) of
                                                                                                        Int
_statsOscopeLevel ->
                                                                                                          ( case (T_MStatList_1
stats_1 LintSettings
_statsOconfig String
_statsOfuncName Map String [Region]
_statsOglobalDefinitions Bool
_statsOisInModule Bool
_statsOisMeta Int
_statsOloopLevel Region
_statsOmtokenPos Int
_statsOscopeLevel [Map String (Bool, Region)]
_statsOscopes DeterminedVariableStyle
_statsOvariableStyle) of
                                                                                                              (Map String [Region]
_statsIglobalDefinitions, String
_statsIidentifier, Bool
_statsIisIfStatement, Bool
_statsIisInModule, Region
_statsImtokenPos, [Map String (Bool, Region)]
_statsIscopes, Int
_statsIstatementCount, DeterminedVariableStyle
_statsIvariableStyle, [String -> LintMessage]
_statsIwarnings) ->
                                                                                                                ( case ( ( [Map String (Bool, Region)]
_statsIscopes
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    [Map String (Bool, Region)]
_retOscopes ->
                                                                                                                      ( case ( ( Bool
_lhsIisMeta
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_retOisMeta ->
                                                                                                                            ( case ( ( Bool
_statsIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_retOisInModule ->
                                                                                                                                  ( case ( ( Map String [Region]
_statsIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_retOglobalDefinitions ->
                                                                                                                                        ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            LintSettings
_retOconfig ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_statsIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_retOvariableStyle ->
                                                                                                                                                    ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Int
_retOscopeLevel ->
                                                                                                                                                          ( case ( ( Region
_statsImtokenPos
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Region
_retOmtokenPos ->
                                                                                                                                                                ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_retOloopLevel ->
                                                                                                                                                                      ( case ( ( String
_lhsIfuncName
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          String
_retOfuncName ->
                                                                                                                                                                            ( case (T_AReturn_1
ret_1 LintSettings
_retOconfig String
_retOfuncName Map String [Region]
_retOglobalDefinitions Bool
_retOisInModule Bool
_retOisMeta Int
_retOloopLevel Region
_retOmtokenPos Int
_retOscopeLevel [Map String (Bool, Region)]
_retOscopes DeterminedVariableStyle
_retOvariableStyle) of
                                                                                                                                                                                (Map String [Region]
_retIglobalDefinitions, String
_retIidentifier, Bool
_retIisInModule, Region
_retImtokenPos, [Map String (Bool, Region)]
_retIscopes, Int
_retIstatementCount, DeterminedVariableStyle
_retIvariableStyle, [String -> LintMessage]
_retIwarnings) ->
                                                                                                                                                                                  ( case ( ( Map String [Region]
_retIglobalDefinitions
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                        ( case ( ( (forall a b. a -> b -> a
const String
_statsIidentifier String
_retIidentifier)
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            String
_lhsOidentifier ->
                                                                                                                                                                                              ( case ( ( Bool
_statsIisIfStatement
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                    ( case ( ( Bool
_retIisInModule
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_lhsOisInModule ->
                                                                                                                                                                                                          ( case ( ( Region
_retImtokenPos
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                ( case ( ( if Bool
_lhsIisRepeat then [Map String (Bool, Region)]
_retIscopes else forall a. [a] -> [a]
tail [Map String (Bool, Region)]
_retIscopes
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                      ( case ( ( Int
_statsIstatementCount forall a. Num a => a -> a -> a
+ Int
_retIstatementCount
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Int
_lhsOstatementCount ->
                                                                                                                                                                                                                            ( case ( ( DeterminedVariableStyle
_retIvariableStyle
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                  ( case ( ( [String -> LintMessage]
_statsIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_retIwarnings
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                        ( case ( ( forall k a. (k -> a -> Bool) -> Map k a -> Map k a
M.filterWithKey (\String
k (Bool
b, Region
_) -> Bool -> Bool
not (forall (t :: * -> *) a. Foldable t => t a -> Bool
null String
k) Bool -> Bool -> Bool
&& forall a. [a] -> a
head String
k forall a. Eq a => a -> a -> Bool
/= Char
'_' Bool -> Bool -> Bool
&& Bool -> Bool
not Bool
b) (forall a. [a] -> a
head [Map String (Bool, Region)]
_retIscopes)
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Map String (Bool, Region)
_deadVars ->
                                                                                                                                                                                                                                              ( case ( ( LintSettings -> Int
lint_maxScopeDepth LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Int
_maxScopeDepth ->
                                                                                                                                                                                                                                                    ( case ( ( if Int
_maxScopeDepth forall a. Eq a => a -> a -> Bool
== Int
0 Bool -> Bool -> Bool
|| Int
_lhsIscopeLevel forall a. Eq a => a -> a -> Bool
/= Int
_maxScopeDepth
                                                                                                                                                                                                                                                                then forall a. a -> a
id
                                                                                                                                                                                                                                                                else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_statsImtokenPos Issue
ScopePyramids
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2 ->
                                                                                                                                                                                                                                                          ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_unusedVars LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Bool
_lhsIisRepeat
                                                                                                                                                                                                                                                                      then forall a. a -> a
id
                                                                                                                                                                                                                                                                      else forall a. [a] -> [a] -> [a]
(++) forall a b. (a -> b) -> a -> b
$ forall k a b. (k -> a -> b -> b) -> b -> Map k a -> b
M.foldrWithKey (\String
k (Bool
_, Region
pos) [String -> LintMessage]
ls -> Region -> Issue -> String -> LintMessage
warn Region
pos (String -> Issue
UnusedVariable String
k) forall a. a -> [a] -> [a]
: [String -> LintMessage]
ls) [] Map String (Bool, Region)
_deadVars
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2]
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_Block_1
sem_Block_Block_1
                                   )
                                 ) of
                              (T_Block_1
sem_Block_1) ->
                                (Block
_lhsOcopy, T_Block_1
sem_Block_1)
                          )
                    )
              )
        )
  )

-- Declaration -------------------------------------------------
-- cata
sem_Declaration
  :: Declaration
  -> T_Declaration
sem_Declaration :: Declaration -> T_Declaration
sem_Declaration (PrefixExp
x1, MaybeMExpr
x2) =
  (T_PrefixExp -> T_MaybeMExpr -> T_Declaration
sem_Declaration_Tuple (PrefixExp -> T_PrefixExp
sem_PrefixExp PrefixExp
x1) (MaybeMExpr -> T_MaybeMExpr
sem_MaybeMExpr MaybeMExpr
x2))

-- semantic domain
type T_Declaration = (Declaration, T_Declaration_1)
type T_Declaration_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_Declaration = Inh_Declaration {Inh_Declaration -> LintSettings
config_Inh_Declaration :: LintSettings, Inh_Declaration -> String
funcName_Inh_Declaration :: String, Inh_Declaration -> Map String [Region]
globalDefinitions_Inh_Declaration :: (M.Map String [Region]), Inh_Declaration -> Bool
isInModule_Inh_Declaration :: Bool, Inh_Declaration -> Bool
isMeta_Inh_Declaration :: Bool, Inh_Declaration -> Bool
localDefinition_Inh_Declaration :: Bool, Inh_Declaration -> Int
loopLevel_Inh_Declaration :: Int, Inh_Declaration -> Region
mtokenPos_Inh_Declaration :: Region, Inh_Declaration -> Int
scopeLevel_Inh_Declaration :: Int, Inh_Declaration -> [Map String (Bool, Region)]
scopes_Inh_Declaration :: ([M.Map String (Bool, Region)]), Inh_Declaration -> DeterminedVariableStyle
variableStyle_Inh_Declaration :: DeterminedVariableStyle}
data Syn_Declaration = Syn_Declaration {Syn_Declaration -> Declaration
copy_Syn_Declaration :: Declaration, Syn_Declaration -> Map String [Region]
globalDefinitions_Syn_Declaration :: (M.Map String [Region]), Syn_Declaration -> String
identifier_Syn_Declaration :: String, Syn_Declaration -> Bool
isInModule_Syn_Declaration :: Bool, Syn_Declaration -> Region
mtokenPos_Syn_Declaration :: Region, Syn_Declaration -> [Map String (Bool, Region)]
scopes_Syn_Declaration :: ([M.Map String (Bool, Region)]), Syn_Declaration -> DeterminedVariableStyle
variableStyle_Syn_Declaration :: DeterminedVariableStyle, Syn_Declaration -> [String -> LintMessage]
warnings_Syn_Declaration :: ([String -> LintMessage])}
wrap_Declaration
  :: T_Declaration
  -> Inh_Declaration
  -> Syn_Declaration
wrap_Declaration :: T_Declaration -> Inh_Declaration -> Syn_Declaration
wrap_Declaration T_Declaration
sem (Inh_Declaration LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIlocalDefinition Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (Declaration
_lhsOcopy, T_Declaration_1
sem_1) = T_Declaration
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Declaration_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIlocalDefinition Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (Declaration
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_Declaration
Syn_Declaration Declaration
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_Declaration_Tuple
  :: T_PrefixExp
  -> T_MaybeMExpr
  -> T_Declaration
sem_Declaration_Tuple :: T_PrefixExp -> T_MaybeMExpr -> T_Declaration
sem_Declaration_Tuple T_PrefixExp
x1_ T_MaybeMExpr
x2_ =
  ( case (T_MaybeMExpr
x2_) of
      (MaybeMExpr
_x2Icopy, T_MaybeMExpr_1
x2_1) ->
        ( case (T_PrefixExp
x1_) of
            (PrefixExp
_x1Icopy, Bool
_x1IhasSuffixes, Region
_x1ImtokenPos, Maybe MToken
_x1IvarName, T_PrefixExp_1
x1_1) ->
              ( case ( ( (PrefixExp
_x1Icopy, MaybeMExpr
_x2Icopy)
                       )
                     ) of
                  Declaration
_copy ->
                    ( case ( ( Declaration
_copy
                             )
                           ) of
                        Declaration
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Declaration_Tuple_1 :: T_Declaration_1
                                      sem_Declaration_Tuple_1 :: T_Declaration_1
sem_Declaration_Tuple_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Bool
_lhsIlocalDefinition
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_x1OisMeta ->
                                                    ( case ( ( LintSettings
_lhsIconfig
                                                             )
                                                           ) of
                                                        LintSettings
_x1Oconfig ->
                                                          ( case ( ( MToken -> String
tokenLabel forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. a -> Maybe a -> a
fromMaybe (forall a. HasCallStack => String -> a
error String
"fromMaybe sem Declaration loc.var") forall a b. (a -> b) -> a -> b
$ Maybe MToken
_x1IvarName
                                                                   )
                                                                 ) of
                                                              String
_var ->
                                                                ( case ( ( if Bool
_lhsIlocalDefinition
                                                                            then forall k a. Ord k => k -> a -> Map k a -> Map k a
M.insert String
_var (Bool
False, Region
_x1ImtokenPos) (forall a. [a] -> a
head [Map String (Bool, Region)]
_lhsIscopes) forall a. a -> [a] -> [a]
: forall a. [a] -> [a]
tail [Map String (Bool, Region)]
_lhsIscopes
                                                                            else
                                                                              if forall a. Maybe a -> Bool
isJust Maybe MToken
_x1IvarName
                                                                                then [Map String (Bool, Region)]
-> Region -> String -> Bool -> [Map String (Bool, Region)]
registerVariable [Map String (Bool, Region)]
_lhsIscopes Region
_x1ImtokenPos String
_var Bool
_x1IhasSuffixes
                                                                                else [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_x1Oscopes ->
                                                                      ( case ( ( forall a. Maybe a
Nothing
                                                                               )
                                                                             ) of
                                                                          Maybe MToken
_x1OvarBeingDefined ->
                                                                            ( case ( ( Bool
False
                                                                                     )
                                                                                   ) of
                                                                                Bool
_x1OregisterVarUse ->
                                                                                  ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                           )
                                                                                         ) of
                                                                                      DeterminedVariableStyle
_x1OvariableStyle ->
                                                                                        ( case ( ( Int
_lhsIscopeLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_x1OscopeLevel ->
                                                                                              ( case ( ( Region
_lhsImtokenPos
                                                                                                       )
                                                                                                     ) of
                                                                                                  Region
_x1OmtokenPos ->
                                                                                                    ( case ( ( Int
_lhsIloopLevel
                                                                                                             )
                                                                                                           ) of
                                                                                                        Int
_x1OloopLevel ->
                                                                                                          ( case ( ( Bool
_lhsIisInModule
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_x1OisInModule ->
                                                                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_x1OglobalDefinitions ->
                                                                                                                      ( case ( ( String
_lhsIfuncName
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_x1OfuncName ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_x1OtopLevel ->
                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_x1OinParentheses ->
                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_x1OisNegation ->
                                                                                                                                              ( case (T_PrefixExp_1
x1_1 LintSettings
_x1Oconfig String
_x1OfuncName Map String [Region]
_x1OglobalDefinitions Bool
_x1OinParentheses Bool
_x1OisInModule Bool
_x1OisMeta Bool
_x1OisNegation Int
_x1OloopLevel Region
_x1OmtokenPos Bool
_x1OregisterVarUse Int
_x1OscopeLevel [Map String (Bool, Region)]
_x1Oscopes Bool
_x1OtopLevel Maybe MToken
_x1OvarBeingDefined DeterminedVariableStyle
_x1OvariableStyle) of
                                                                                                                                                  (Map String [Region]
_x1IglobalDefinitions, String
_x1Iidentifier, Bool
_x1IisInModule, Bool
_x1IisSimpleExpression, Maybe MToken
_x1IisSingleVar, [Map String (Bool, Region)]
_x1Iscopes, DeterminedVariableStyle
_x1IvariableStyle, [String -> LintMessage]
_x1Iwarnings) ->
                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_x1Iscopes
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [Map String (Bool, Region)]
_x2Oscopes ->
                                                                                                                                                          ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_x2OisMeta ->
                                                                                                                                                                ( case ( ( Bool
_x1IisInModule
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Bool
_x2OisInModule ->
                                                                                                                                                                      ( case ( ( Map String [Region]
_x1IglobalDefinitions
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Map String [Region]
_x2OglobalDefinitions ->
                                                                                                                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                LintSettings
_x2Oconfig ->
                                                                                                                                                                                  ( case ( ( if Bool
_x1IhasSuffixes Bool -> Bool -> Bool
|| Bool -> Bool
not Bool
_lhsIlocalDefinition then forall a. Maybe a
Nothing else Maybe MToken
_x1IvarName
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Maybe MToken
_x2OvarBeingDefined ->
                                                                                                                                                                                        ( case ( ( DeterminedVariableStyle
_x1IvariableStyle
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            DeterminedVariableStyle
_x2OvariableStyle ->
                                                                                                                                                                                              ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Int
_x2OscopeLevel ->
                                                                                                                                                                                                    ( case ( ( Region
_x1ImtokenPos
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Region
_x2OmtokenPos ->
                                                                                                                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Int
_x2OloopLevel ->
                                                                                                                                                                                                                ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    String
_x2OfuncName ->
                                                                                                                                                                                                                      ( case ( ( Bool
False
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Bool
_x2OisNegation ->
                                                                                                                                                                                                                            ( case (T_MaybeMExpr_1
x2_1 LintSettings
_x2Oconfig String
_x2OfuncName Map String [Region]
_x2OglobalDefinitions Bool
_x2OisInModule Bool
_x2OisMeta Bool
_x2OisNegation Int
_x2OloopLevel Region
_x2OmtokenPos Int
_x2OscopeLevel [Map String (Bool, Region)]
_x2Oscopes Maybe MToken
_x2OvarBeingDefined DeterminedVariableStyle
_x2OvariableStyle) of
                                                                                                                                                                                                                                (Map String [Region]
_x2IglobalDefinitions, String
_x2Iidentifier, Bool
_x2IisInModule, Maybe MToken
_x2IisSingleVar, Region
_x2ImtokenPos, [Map String (Bool, Region)]
_x2Iscopes, DeterminedVariableStyle
_x2IvariableStyle, [String -> LintMessage]
_x2Iwarnings) ->
                                                                                                                                                                                                                                  ( case ( ( Map String [Region]
_x2IglobalDefinitions
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Map String [Region]
_globalDefinitions_augmented_syn ->
                                                                                                                                                                                                                                        ( case ( ( if Bool
_lhsIisInModule Bool -> Bool -> Bool
|| Bool
_lhsIlocalDefinition Bool -> Bool -> Bool
|| [Map String (Bool, Region)] -> String -> Bool
isVariableLocal [Map String (Bool, Region)]
_lhsIscopes String
_var Bool -> Bool -> Bool
|| Bool
_x1IhasSuffixes
                                                                                                                                                                                                                                                    then forall a. a -> a
id
                                                                                                                                                                                                                                                    else forall k a. Ord k => (a -> a -> a) -> k -> a -> Map k a -> Map k a
M.insertWith forall a. [a] -> [a] -> [a]
(++) String
_var [Region
_x1ImtokenPos]
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Map String [Region] -> Map String [Region]
_globalDefinitions_augmented_f1 ->
                                                                                                                                                                                                                                              ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) Map String [Region]
_globalDefinitions_augmented_syn [Map String [Region] -> Map String [Region]
_globalDefinitions_augmented_f1]
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                                                    ( case ( ( (forall a b. a -> b -> a
const String
_x1Iidentifier String
_x2Iidentifier)
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        String
_lhsOidentifier ->
                                                                                                                                                                                                                                                          ( case ( ( Bool
_x2IisInModule
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                                                ( case ( ( Region
_x1ImtokenPos
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_x2Iscopes
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                                            ( case ( ( String -> VariableStyle
determineVariableStyle String
_var
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                VariableStyle
_varStyle ->
                                                                                                                                                                                                                                                                                  ( case ( ( if Bool
_lhsIlocalDefinition then DeterminedVariableStyle -> VariableStyle -> DeterminedVariableStyle
combineDeterminedVarStyle DeterminedVariableStyle
_lhsIvariableStyle VariableStyle
_varStyle else DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                                        ( case ( ( [String -> LintMessage]
_x1Iwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_x2Iwarnings
                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                            [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                                              ( case ( ( do
                                                                                                                                                                                                                                                                                                          MToken
var <- Maybe MToken
_x1IvarName
                                                                                                                                                                                                                                                                                                          if (forall a. a -> Maybe a
Just MToken
var forall a. Eq a => a -> a -> Bool
/= Maybe MToken
_x2IisSingleVar)
                                                                                                                                                                                                                                                                                                            then [Map String (Bool, Region)]
-> MToken -> Maybe (String -> LintMessage)
checkShadows [Map String (Bool, Region)]
_lhsIscopes MToken
var
                                                                                                                                                                                                                                                                                                            else forall a. Maybe a
Nothing
                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                  Maybe (String -> LintMessage)
_shadowWarning ->
                                                                                                                                                                                                                                                                                                    ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_shadowing LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Bool -> Bool
not Bool
_lhsIlocalDefinition Bool -> Bool -> Bool
|| forall a. Maybe a -> Bool
isNothing Maybe (String -> LintMessage)
_shadowWarning
                                                                                                                                                                                                                                                                                                                then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                else (:) forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. a -> Maybe a -> a
fromMaybe (forall a. HasCallStack => String -> a
error String
"fromMaybe sem Declaration +warnings") forall a b. (a -> b) -> a -> b
$ Maybe (String -> LintMessage)
_shadowWarning
                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                        [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2 ->
                                                                                                                                                                                                                                                                                                          ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_inconsistentVariableStyle LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Bool -> Bool
not Bool
_lhsIlocalDefinition Bool -> Bool -> Bool
|| Bool -> Bool
not (DeterminedVariableStyle -> VariableStyle -> Bool
variableStyleInconsistent DeterminedVariableStyle
_lhsIvariableStyle VariableStyle
_varStyle)
                                                                                                                                                                                                                                                                                                                      then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                      else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_x1ImtokenPos Issue
InconsistentVariableNaming
                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                              [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                                                                ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2]
                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                    [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                                                      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_Declaration_1
sem_Declaration_Tuple_1
                                   )
                                 ) of
                              (T_Declaration_1
sem_Declaration_1) ->
                                (Declaration
_lhsOcopy, T_Declaration_1
sem_Declaration_1)
                          )
                    )
              )
        )
  )

-- Else --------------------------------------------------------
-- cata
sem_Else
  :: Else
  -> T_Else
sem_Else :: Else -> T_Else
sem_Else (Prelude.Just MElse
x) =
  (T_MElse -> T_Else
sem_Else_Just (MElse -> T_MElse
sem_MElse MElse
x))
sem_Else Else
Prelude.Nothing =
  T_Else
sem_Else_Nothing

-- semantic domain
type T_Else = (Else, T_Else_1)
type T_Else_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> (Bool, (M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_Else = Inh_Else {Inh_Else -> LintSettings
config_Inh_Else :: LintSettings, Inh_Else -> String
funcName_Inh_Else :: String, Inh_Else -> Map String [Region]
globalDefinitions_Inh_Else :: (M.Map String [Region]), Inh_Else -> Bool
isInModule_Inh_Else :: Bool, Inh_Else -> Bool
isMeta_Inh_Else :: Bool, Inh_Else -> Int
loopLevel_Inh_Else :: Int, Inh_Else -> Region
mtokenPos_Inh_Else :: Region, Inh_Else -> Int
scopeLevel_Inh_Else :: Int, Inh_Else -> [Map String (Bool, Region)]
scopes_Inh_Else :: ([M.Map String (Bool, Region)]), Inh_Else -> DeterminedVariableStyle
variableStyle_Inh_Else :: DeterminedVariableStyle}
data Syn_Else = Syn_Else {Syn_Else -> Else
copy_Syn_Else :: Else, Syn_Else -> Bool
elseExists_Syn_Else :: Bool, Syn_Else -> Map String [Region]
globalDefinitions_Syn_Else :: (M.Map String [Region]), Syn_Else -> String
identifier_Syn_Else :: String, Syn_Else -> Bool
isInModule_Syn_Else :: Bool, Syn_Else -> Region
mtokenPos_Syn_Else :: Region, Syn_Else -> [Map String (Bool, Region)]
scopes_Syn_Else :: ([M.Map String (Bool, Region)]), Syn_Else -> DeterminedVariableStyle
variableStyle_Syn_Else :: DeterminedVariableStyle, Syn_Else -> [String -> LintMessage]
warnings_Syn_Else :: ([String -> LintMessage])}
wrap_Else
  :: T_Else
  -> Inh_Else
  -> Syn_Else
wrap_Else :: T_Else -> Inh_Else -> Syn_Else
wrap_Else T_Else
sem (Inh_Else LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (Else
_lhsOcopy, T_Else_1
sem_1) = T_Else
sem
      (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Else_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (Else
-> Bool
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_Else
Syn_Else Else
_lhsOcopy Bool
_lhsOelseExists Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_Else_Just
  :: T_MElse
  -> T_Else
sem_Else_Just :: T_MElse -> T_Else
sem_Else_Just T_MElse
just_ =
  ( case (T_MElse
just_) of
      (MElse
_justIcopy, T_MElse_1
just_1) ->
        ( case ( ( forall a. a -> Maybe a
Just MElse
_justIcopy
                 )
               ) of
            Else
_copy ->
              ( case ( ( Else
_copy
                       )
                     ) of
                  Else
_lhsOcopy ->
                    ( case ( ( let
                                sem_Else_Just_1 :: T_Else_1
                                sem_Else_Just_1 :: T_Else_1
sem_Else_Just_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Bool
True
                                                 )
                                               ) of
                                            Bool
_lhsOelseExists ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_justOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_justOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_justOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_justOconfig ->
                                                                      ( case ( ( forall k a. Map k a
M.empty forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_justOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_justOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_justOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_justOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_justOloopLevel ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_justOfuncName ->
                                                                                                          ( case (T_MElse_1
just_1 LintSettings
_justOconfig String
_justOfuncName Map String [Region]
_justOglobalDefinitions Bool
_justOisInModule Bool
_justOisMeta Int
_justOloopLevel Region
_justOmtokenPos Int
_justOscopeLevel [Map String (Bool, Region)]
_justOscopes DeterminedVariableStyle
_justOvariableStyle) of
                                                                                                              (Bool
_justIelseExists, Map String [Region]
_justIglobalDefinitions, String
_justIidentifier, Bool
_justIisInModule, Region
_justImtokenPos, [Map String (Bool, Region)]
_justIscopes, Int
_justIstatementCount, DeterminedVariableStyle
_justIvariableStyle, [String -> LintMessage]
_justIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_justIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_justIidentifier
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
_justIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                  ( case ( ( Region
_justImtokenPos
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_justIscopes
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_justIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                    ( case ( ( [String -> LintMessage]
_justIwarnings
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                          ( case ( ( LineColPos -> LineColPos -> Region
Region (Region -> LineColPos
rgStart Region
_justImtokenPos) (LineColPos -> Token -> LineColPos
customAdvanceToken (Region -> LineColPos
rgStart Region
_justImtokenPos) Token
T.Else)
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Region
_keywordPos ->
                                                                                                                                                                ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_justIstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                            else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_keywordPos Issue
EmptyElse
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                            (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Else_1
sem_Else_Just_1
                             )
                           ) of
                        (T_Else_1
sem_Else_1) ->
                          (Else
_lhsOcopy, T_Else_1
sem_Else_1)
                    )
              )
        )
  )
sem_Else_Nothing :: T_Else
sem_Else_Nothing :: T_Else
sem_Else_Nothing =
  ( case ( ( forall a. Maybe a
Nothing
           )
         ) of
      Else
_copy ->
        ( case ( ( Else
_copy
                 )
               ) of
            Else
_lhsOcopy ->
              ( case ( ( let
                          sem_Else_Nothing_1 :: T_Else_1
                          sem_Else_Nothing_1 :: T_Else_1
sem_Else_Nothing_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Bool
False
                                           )
                                         ) of
                                      Bool
_lhsOelseExists ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_lhsOglobalDefinitions ->
                                              ( case ( ( String
unknownIdentifier
                                                       )
                                                     ) of
                                                  String
_lhsOidentifier ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_lhsOisInModule ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Else_1
sem_Else_Nothing_1
                       )
                     ) of
                  (T_Else_1
sem_Else_1) ->
                    (Else
_lhsOcopy, T_Else_1
sem_Else_1)
              )
        )
  )

-- ElseIf ------------------------------------------------------
-- cata
sem_ElseIf
  :: ElseIf
  -> T_ElseIf
sem_ElseIf :: ElseIf -> T_ElseIf
sem_ElseIf (MExpr
x1, Block
x2) =
  (T_MExpr -> T_Block -> T_ElseIf
sem_ElseIf_Tuple (MExpr -> T_MExpr
sem_MExpr MExpr
x1) (Block -> T_Block
sem_Block Block
x2))

-- semantic domain
type T_ElseIf = (ElseIf, T_ElseIf_1)
type T_ElseIf_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_ElseIf = Inh_ElseIf {Inh_ElseIf -> LintSettings
config_Inh_ElseIf :: LintSettings, Inh_ElseIf -> String
funcName_Inh_ElseIf :: String, Inh_ElseIf -> Map String [Region]
globalDefinitions_Inh_ElseIf :: (M.Map String [Region]), Inh_ElseIf -> Bool
isInModule_Inh_ElseIf :: Bool, Inh_ElseIf -> Bool
isMeta_Inh_ElseIf :: Bool, Inh_ElseIf -> Int
loopLevel_Inh_ElseIf :: Int, Inh_ElseIf -> Region
mtokenPos_Inh_ElseIf :: Region, Inh_ElseIf -> Int
scopeLevel_Inh_ElseIf :: Int, Inh_ElseIf -> [Map String (Bool, Region)]
scopes_Inh_ElseIf :: ([M.Map String (Bool, Region)]), Inh_ElseIf -> DeterminedVariableStyle
variableStyle_Inh_ElseIf :: DeterminedVariableStyle}
data Syn_ElseIf = Syn_ElseIf {Syn_ElseIf -> ElseIf
copy_Syn_ElseIf :: ElseIf, Syn_ElseIf -> Map String [Region]
globalDefinitions_Syn_ElseIf :: (M.Map String [Region]), Syn_ElseIf -> String
identifier_Syn_ElseIf :: String, Syn_ElseIf -> Bool
isInModule_Syn_ElseIf :: Bool, Syn_ElseIf -> Region
mtokenPos_Syn_ElseIf :: Region, Syn_ElseIf -> [Map String (Bool, Region)]
scopes_Syn_ElseIf :: ([M.Map String (Bool, Region)]), Syn_ElseIf -> DeterminedVariableStyle
variableStyle_Syn_ElseIf :: DeterminedVariableStyle, Syn_ElseIf -> [String -> LintMessage]
warnings_Syn_ElseIf :: ([String -> LintMessage])}
wrap_ElseIf
  :: T_ElseIf
  -> Inh_ElseIf
  -> Syn_ElseIf
wrap_ElseIf :: T_ElseIf -> Inh_ElseIf -> Syn_ElseIf
wrap_ElseIf T_ElseIf
sem (Inh_ElseIf LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (ElseIf
_lhsOcopy, T_Args_1
sem_1) = T_ElseIf
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Args_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (ElseIf
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_ElseIf
Syn_ElseIf ElseIf
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_ElseIf_Tuple
  :: T_MExpr
  -> T_Block
  -> T_ElseIf
sem_ElseIf_Tuple :: T_MExpr -> T_Block -> T_ElseIf
sem_ElseIf_Tuple T_MExpr
x1_ T_Block
x2_ =
  ( case (T_Block
x2_) of
      (Block
_x2Icopy, T_Block_1
x2_1) ->
        ( case (T_MExpr
x1_) of
            (MExpr
_x1Icopy, Region
_x1ImtokenPos, T_MExpr_1
x1_1) ->
              ( case ( ( (MExpr
_x1Icopy, Block
_x2Icopy)
                       )
                     ) of
                  ElseIf
_copy ->
                    ( case ( ( ElseIf
_copy
                             )
                           ) of
                        ElseIf
_lhsOcopy ->
                          ( case ( ( let
                                      sem_ElseIf_Tuple_1 :: T_ElseIf_1
                                      sem_ElseIf_Tuple_1 :: T_Args_1
sem_ElseIf_Tuple_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_x2OisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_x1OisInModule ->
                                                          ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                   )
                                                                 ) of
                                                              DeterminedVariableStyle
_x1OvariableStyle ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_x1Oscopes ->
                                                                      ( case ( ( Int
_lhsIscopeLevel
                                                                               )
                                                                             ) of
                                                                          Int
_x1OscopeLevel ->
                                                                            ( case ( ( Region
_lhsImtokenPos
                                                                                     )
                                                                                   ) of
                                                                                Region
_x1OmtokenPos ->
                                                                                  ( case ( ( Int
_lhsIloopLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_x1OloopLevel ->
                                                                                        ( case ( ( Bool
_lhsIisMeta
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_x1OisMeta ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_x1OglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_x1OfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_x1Oconfig ->
                                                                                                                ( case ( ( forall a. Maybe a
Nothing
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Maybe MToken
_x1OvarBeingDefined ->
                                                                                                                      ( case ( ( Bool
True
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_x1OtopLevel ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_x1OinParentheses ->
                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_x1OisNegation ->
                                                                                                                                        ( case (T_MExpr_1
x1_1 LintSettings
_x1Oconfig String
_x1OfuncName Map String [Region]
_x1OglobalDefinitions Bool
_x1OinParentheses Bool
_x1OisInModule Bool
_x1OisMeta Bool
_x1OisNegation Int
_x1OloopLevel Region
_x1OmtokenPos Int
_x1OscopeLevel [Map String (Bool, Region)]
_x1Oscopes Bool
_x1OtopLevel Maybe MToken
_x1OvarBeingDefined DeterminedVariableStyle
_x1OvariableStyle) of
                                                                                                                                            (Map String [Region]
_x1IglobalDefinitions, String
_x1Iidentifier, Bool
_x1IisInModule, Bool
_x1IisSimpleExpression, Maybe MToken
_x1IisSingleVar, [Map String (Bool, Region)]
_x1Iscopes, DeterminedVariableStyle
_x1IvariableStyle, [String -> LintMessage]
_x1Iwarnings) ->
                                                                                                                                              ( case ( ( Bool
_x1IisInModule
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Bool
_x2OisInModule ->
                                                                                                                                                    ( case ( ( Map String [Region]
_x1IglobalDefinitions
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Map String [Region]
_x2OglobalDefinitions ->
                                                                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              LintSettings
_x2Oconfig ->
                                                                                                                                                                ( case ( ( forall k a. Map k a
M.empty forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_x1Iscopes
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [Map String (Bool, Region)]
_x2Oscopes ->
                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_x1IvariableStyle
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          DeterminedVariableStyle
_x2OvariableStyle ->
                                                                                                                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Int
_x2OscopeLevel ->
                                                                                                                                                                                  ( case ( ( Region
_x1ImtokenPos
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Region
_x2OmtokenPos ->
                                                                                                                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Int
_x2OloopLevel ->
                                                                                                                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  String
_x2OfuncName ->
                                                                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_x2OisRepeat ->
                                                                                                                                                                                                          ( case (T_Block_1
x2_1 LintSettings
_x2Oconfig String
_x2OfuncName Map String [Region]
_x2OglobalDefinitions Bool
_x2OisInModule Bool
_x2OisMeta Bool
_x2OisRepeat Int
_x2OloopLevel Region
_x2OmtokenPos Int
_x2OscopeLevel [Map String (Bool, Region)]
_x2Oscopes DeterminedVariableStyle
_x2OvariableStyle) of
                                                                                                                                                                                                              (Map String [Region]
_x2IglobalDefinitions, String
_x2Iidentifier, Bool
_x2IisIfStatement, Bool
_x2IisInModule, Region
_x2ImtokenPos, [Map String (Bool, Region)]
_x2Iscopes, Int
_x2IstatementCount, DeterminedVariableStyle
_x2IvariableStyle, [String -> LintMessage]
_x2Iwarnings) ->
                                                                                                                                                                                                                ( case ( ( Map String [Region]
_x2IglobalDefinitions
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_x1Iidentifier String
_x2Iidentifier)
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                                                                            ( case ( ( Bool
_x2IisInModule
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                  ( case ( ( Region
_x2ImtokenPos
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_x2Iscopes
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                              ( case ( ( DeterminedVariableStyle
_x2IvariableStyle
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                    ( case ( ( [String -> LintMessage]
_x1Iwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_x2Iwarnings
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                          ( case ( ( LineColPos -> LineColPos -> Region
Region (Region -> LineColPos
rgStart Region
_lhsImtokenPos) (LineColPos -> Token -> LineColPos
customAdvanceToken (Region -> LineColPos
rgStart Region
_lhsImtokenPos) Token
T.Elseif)
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              Region
_keywordPos ->
                                                                                                                                                                                                                                                                ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_x2IstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                                                                                                                            else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_keywordPos Issue
EmptyElseIf
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_Args_1
sem_ElseIf_Tuple_1
                                   )
                                 ) of
                              (T_Args_1
sem_ElseIf_1) ->
                                (ElseIf
_lhsOcopy, T_Args_1
sem_ElseIf_1)
                          )
                    )
              )
        )
  )

-- ElseIfList --------------------------------------------------
-- cata
sem_ElseIfList
  :: ElseIfList
  -> T_ElseIfList
sem_ElseIfList :: ElseIfList -> T_ElseIfList
sem_ElseIfList ElseIfList
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_MElseIf -> T_ElseIfList -> T_ElseIfList
sem_ElseIfList_Cons T_ElseIfList
sem_ElseIfList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map MElseIf -> T_MElseIf
sem_MElseIf ElseIfList
list))

-- semantic domain
type T_ElseIfList = (ElseIfList, T_ElseIfList_1)
type T_ElseIfList_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> (Bool, (M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_ElseIfList = Inh_ElseIfList {Inh_ElseIfList -> LintSettings
config_Inh_ElseIfList :: LintSettings, Inh_ElseIfList -> String
funcName_Inh_ElseIfList :: String, Inh_ElseIfList -> Map String [Region]
globalDefinitions_Inh_ElseIfList :: (M.Map String [Region]), Inh_ElseIfList -> Bool
isInModule_Inh_ElseIfList :: Bool, Inh_ElseIfList -> Bool
isMeta_Inh_ElseIfList :: Bool, Inh_ElseIfList -> Int
loopLevel_Inh_ElseIfList :: Int, Inh_ElseIfList -> Region
mtokenPos_Inh_ElseIfList :: Region, Inh_ElseIfList -> Int
scopeLevel_Inh_ElseIfList :: Int, Inh_ElseIfList -> [Map String (Bool, Region)]
scopes_Inh_ElseIfList :: ([M.Map String (Bool, Region)]), Inh_ElseIfList -> DeterminedVariableStyle
variableStyle_Inh_ElseIfList :: DeterminedVariableStyle}
data Syn_ElseIfList = Syn_ElseIfList {Syn_ElseIfList -> ElseIfList
copy_Syn_ElseIfList :: ElseIfList, Syn_ElseIfList -> Bool
elseExists_Syn_ElseIfList :: Bool, Syn_ElseIfList -> Map String [Region]
globalDefinitions_Syn_ElseIfList :: (M.Map String [Region]), Syn_ElseIfList -> String
identifier_Syn_ElseIfList :: String, Syn_ElseIfList -> Bool
isInModule_Syn_ElseIfList :: Bool, Syn_ElseIfList -> Region
mtokenPos_Syn_ElseIfList :: Region, Syn_ElseIfList -> [Map String (Bool, Region)]
scopes_Syn_ElseIfList :: ([M.Map String (Bool, Region)]), Syn_ElseIfList -> DeterminedVariableStyle
variableStyle_Syn_ElseIfList :: DeterminedVariableStyle, Syn_ElseIfList -> [String -> LintMessage]
warnings_Syn_ElseIfList :: ([String -> LintMessage])}
wrap_ElseIfList
  :: T_ElseIfList
  -> Inh_ElseIfList
  -> Syn_ElseIfList
wrap_ElseIfList :: T_ElseIfList -> Inh_ElseIfList -> Syn_ElseIfList
wrap_ElseIfList T_ElseIfList
sem (Inh_ElseIfList LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (ElseIfList
_lhsOcopy, T_Else_1
sem_1) = T_ElseIfList
sem
      (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Else_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (ElseIfList
-> Bool
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_ElseIfList
Syn_ElseIfList ElseIfList
_lhsOcopy Bool
_lhsOelseExists Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_ElseIfList_Cons
  :: T_MElseIf
  -> T_ElseIfList
  -> T_ElseIfList
sem_ElseIfList_Cons :: T_MElseIf -> T_ElseIfList -> T_ElseIfList
sem_ElseIfList_Cons T_MElseIf
hd_ T_ElseIfList
tl_ =
  ( case (T_ElseIfList
tl_) of
      (ElseIfList
_tlIcopy, T_Else_1
tl_1) ->
        ( case (T_MElseIf
hd_) of
            (MElseIf
_hdIcopy, T_Args_1
hd_1) ->
              ( case ( ( (:) MElseIf
_hdIcopy ElseIfList
_tlIcopy
                       )
                     ) of
                  ElseIfList
_copy ->
                    ( case ( ( ElseIfList
_copy
                             )
                           ) of
                        ElseIfList
_lhsOcopy ->
                          ( case ( ( let
                                      sem_ElseIfList_Cons_1 :: T_ElseIfList_1
                                      sem_ElseIfList_Cons_1 :: T_Else_1
sem_ElseIfList_Cons_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
True
                                                       )
                                                     ) of
                                                  Bool
_lhsOelseExists ->
                                                    ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                             )
                                                           ) of
                                                        [Map String (Bool, Region)]
_hdOscopes ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_hdOisMeta ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_hdOconfig ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_hdOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_hdOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_hdOmtokenPos ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_hdOloopLevel ->
                                                                                              ( case ( ( Bool
_lhsIisInModule
                                                                                                       )
                                                                                                     ) of
                                                                                                  Bool
_hdOisInModule ->
                                                                                                    ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                             )
                                                                                                           ) of
                                                                                                        Map String [Region]
_hdOglobalDefinitions ->
                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              String
_hdOfuncName ->
                                                                                                                ( case (T_Args_1
hd_1 LintSettings
_hdOconfig String
_hdOfuncName Map String [Region]
_hdOglobalDefinitions Bool
_hdOisInModule Bool
_hdOisMeta Int
_hdOloopLevel Region
_hdOmtokenPos Int
_hdOscopeLevel [Map String (Bool, Region)]
_hdOscopes DeterminedVariableStyle
_hdOvariableStyle) of
                                                                                                                    (Map String [Region]
_hdIglobalDefinitions, String
_hdIidentifier, Bool
_hdIisInModule, Region
_hdImtokenPos, [Map String (Bool, Region)]
_hdIscopes, DeterminedVariableStyle
_hdIvariableStyle, [String -> LintMessage]
_hdIwarnings) ->
                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_hdIscopes
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          [Map String (Bool, Region)]
_tlOscopes ->
                                                                                                                            ( case ( ( Bool
_lhsIisMeta
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_tlOisMeta ->
                                                                                                                                  ( case ( ( Bool
_hdIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_tlOisInModule ->
                                                                                                                                        ( case ( ( Map String [Region]
_hdIglobalDefinitions
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Map String [Region]
_tlOglobalDefinitions ->
                                                                                                                                              ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  LintSettings
_tlOconfig ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_hdIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_tlOvariableStyle ->
                                                                                                                                                          ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Int
_tlOscopeLevel ->
                                                                                                                                                                ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Region
_tlOmtokenPos ->
                                                                                                                                                                      ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Int
_tlOloopLevel ->
                                                                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                String
_tlOfuncName ->
                                                                                                                                                                                  ( case (T_Else_1
tl_1 LintSettings
_tlOconfig String
_tlOfuncName Map String [Region]
_tlOglobalDefinitions Bool
_tlOisInModule Bool
_tlOisMeta Int
_tlOloopLevel Region
_tlOmtokenPos Int
_tlOscopeLevel [Map String (Bool, Region)]
_tlOscopes DeterminedVariableStyle
_tlOvariableStyle) of
                                                                                                                                                                                      (Bool
_tlIelseExists, Map String [Region]
_tlIglobalDefinitions, String
_tlIidentifier, Bool
_tlIisInModule, Region
_tlImtokenPos, [Map String (Bool, Region)]
_tlIscopes, DeterminedVariableStyle
_tlIvariableStyle, [String -> LintMessage]
_tlIwarnings) ->
                                                                                                                                                                                        ( case ( ( Map String [Region]
_tlIglobalDefinitions
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                              ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  String
_lhsOidentifier ->
                                                                                                                                                                                                    ( case ( ( Bool
_tlIisInModule
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_lhsOisInModule ->
                                                                                                                                                                                                          ( case ( ( Region
_tlImtokenPos
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                ( case ( ( [Map String (Bool, Region)]
_tlIscopes
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_tlIvariableStyle
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                            ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                  (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_Else_1
sem_ElseIfList_Cons_1
                                   )
                                 ) of
                              (T_Else_1
sem_ElseIfList_1) ->
                                (ElseIfList
_lhsOcopy, T_Else_1
sem_ElseIfList_1)
                          )
                    )
              )
        )
  )
sem_ElseIfList_Nil :: T_ElseIfList
sem_ElseIfList_Nil :: T_ElseIfList
sem_ElseIfList_Nil =
  ( case ( ( []
           )
         ) of
      ElseIfList
_copy ->
        ( case ( ( ElseIfList
_copy
                 )
               ) of
            ElseIfList
_lhsOcopy ->
              ( case ( ( let
                          sem_ElseIfList_Nil_1 :: T_ElseIfList_1
                          sem_ElseIfList_Nil_1 :: T_Else_1
sem_ElseIfList_Nil_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Bool
False
                                           )
                                         ) of
                                      Bool
_lhsOelseExists ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_lhsOglobalDefinitions ->
                                              ( case ( ( String
unknownIdentifier
                                                       )
                                                     ) of
                                                  String
_lhsOidentifier ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_lhsOisInModule ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Else_1
sem_ElseIfList_Nil_1
                       )
                     ) of
                  (T_Else_1
sem_ElseIfList_1) ->
                    (ElseIfList
_lhsOcopy, T_Else_1
sem_ElseIfList_1)
              )
        )
  )

-- Expr --------------------------------------------------------
-- cata
sem_Expr
  :: Expr
  -> T_Expr
sem_Expr :: Expr -> T_Expr
sem_Expr (Expr
ANil) =
  (T_Expr
sem_Expr_ANil)
sem_Expr (Expr
AFalse) =
  (T_Expr
sem_Expr_AFalse)
sem_Expr (Expr
ATrue) =
  (T_Expr
sem_Expr_ATrue)
sem_Expr (ANumber String
_num) =
  (String -> T_Expr
sem_Expr_ANumber String
_num)
sem_Expr (AString MToken
_str) =
  (T_MToken -> T_Expr
sem_Expr_AString (MToken -> T_MToken
sem_MToken MToken
_str))
sem_Expr (Expr
AVarArg) =
  (T_Expr
sem_Expr_AVarArg)
sem_Expr (AnonymousFunc [MToken]
_pars Block
_body) =
  ([MToken] -> T_Block -> T_Expr
sem_Expr_AnonymousFunc [MToken]
_pars (Block -> T_Block
sem_Block Block
_body))
sem_Expr (APrefixExpr PrefixExp
_pexpr) =
  (T_PrefixExp -> T_Expr
sem_Expr_APrefixExpr (PrefixExp -> T_PrefixExp
sem_PrefixExp PrefixExp
_pexpr))
sem_Expr (ATableConstructor FieldList
_fields) =
  (T_FieldList -> T_Expr
sem_Expr_ATableConstructor (FieldList -> T_FieldList
sem_FieldList FieldList
_fields))
sem_Expr (BinOpExpr BinOp
_op MExpr
_left MExpr
_right) =
  (T_BinOp -> T_MExpr -> T_MExpr -> T_Expr
sem_Expr_BinOpExpr (BinOp -> T_BinOp
sem_BinOp BinOp
_op) (MExpr -> T_MExpr
sem_MExpr MExpr
_left) (MExpr -> T_MExpr
sem_MExpr MExpr
_right))
sem_Expr (UnOpExpr UnOp
_op MExpr
_right) =
  (T_UnOp -> T_MExpr -> T_Expr
sem_Expr_UnOpExpr (UnOp -> T_UnOp
sem_UnOp UnOp
_op) (MExpr -> T_MExpr
sem_MExpr MExpr
_right))

-- semantic domain
type T_Expr = (Expr, T_Expr_1)
type T_Expr_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> Bool
  -> (Maybe MToken)
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, (Maybe MToken), Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_Expr = Inh_Expr {Inh_Expr -> LintSettings
config_Inh_Expr :: LintSettings, Inh_Expr -> String
funcName_Inh_Expr :: String, Inh_Expr -> Map String [Region]
globalDefinitions_Inh_Expr :: (M.Map String [Region]), Inh_Expr -> Bool
inParentheses_Inh_Expr :: Bool, Inh_Expr -> Bool
isInModule_Inh_Expr :: Bool, Inh_Expr -> Bool
isMeta_Inh_Expr :: Bool, Inh_Expr -> Bool
isNegation_Inh_Expr :: Bool, Inh_Expr -> Int
loopLevel_Inh_Expr :: Int, Inh_Expr -> Region
mtokenPos_Inh_Expr :: Region, Inh_Expr -> Int
scopeLevel_Inh_Expr :: Int, Inh_Expr -> [Map String (Bool, Region)]
scopes_Inh_Expr :: ([M.Map String (Bool, Region)]), Inh_Expr -> Bool
topLevel_Inh_Expr :: Bool, Inh_Expr -> Maybe MToken
varBeingDefined_Inh_Expr :: (Maybe MToken), Inh_Expr -> DeterminedVariableStyle
variableStyle_Inh_Expr :: DeterminedVariableStyle}
data Syn_Expr = Syn_Expr {Syn_Expr -> Expr
copy_Syn_Expr :: Expr, Syn_Expr -> Map String [Region]
globalDefinitions_Syn_Expr :: (M.Map String [Region]), Syn_Expr -> String
identifier_Syn_Expr :: String, Syn_Expr -> Bool
isInModule_Syn_Expr :: Bool, Syn_Expr -> Bool
isSimpleExpression_Syn_Expr :: Bool, Syn_Expr -> Maybe MToken
isSingleVar_Syn_Expr :: (Maybe MToken), Syn_Expr -> Region
mtokenPos_Syn_Expr :: Region, Syn_Expr -> [Map String (Bool, Region)]
scopes_Syn_Expr :: ([M.Map String (Bool, Region)]), Syn_Expr -> DeterminedVariableStyle
variableStyle_Syn_Expr :: DeterminedVariableStyle, Syn_Expr -> [String -> LintMessage]
warnings_Syn_Expr :: ([String -> LintMessage])}
wrap_Expr
  :: T_Expr
  -> Inh_Expr
  -> Syn_Expr
wrap_Expr :: T_Expr -> Inh_Expr -> Syn_Expr
wrap_Expr T_Expr
sem (Inh_Expr LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (Expr
_lhsOcopy, T_Expr_1
sem_1) = T_Expr
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Expr_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle
    in
      (Expr
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Maybe MToken
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_Expr
Syn_Expr Expr
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Bool
_lhsOisSimpleExpression Maybe MToken
_lhsOisSingleVar Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_Expr_ANil :: T_Expr
sem_Expr_ANil :: T_Expr
sem_Expr_ANil =
  ( case ( ( Expr
ANil
           )
         ) of
      Expr
_copy ->
        ( case ( ( Expr
_copy
                 )
               ) of
            Expr
_lhsOcopy ->
              ( case ( ( let
                          sem_Expr_ANil_1 :: T_Expr_1
                          sem_Expr_ANil_1 :: T_Expr_1
sem_Expr_ANil_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIinParentheses
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Bool
_lhsIisNegation
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               Bool
_lhsItopLevel
                               Maybe MToken
_lhsIvarBeingDefined
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
True
                                                             )
                                                           ) of
                                                        Bool
_lhsOisSimpleExpression ->
                                                          ( case ( ( forall a. Maybe a
Nothing
                                                                   )
                                                                 ) of
                                                              Maybe MToken
_lhsOisSingleVar ->
                                                                ( case ( ( Region
_lhsImtokenPos
                                                                         )
                                                                       ) of
                                                                    Region
_lhsOmtokenPos ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                  ( case ( ( []
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Expr_1
sem_Expr_ANil_1
                       )
                     ) of
                  (T_Expr_1
sem_Expr_1) ->
                    (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
              )
        )
  )
sem_Expr_AFalse :: T_Expr
sem_Expr_AFalse :: T_Expr
sem_Expr_AFalse =
  ( case ( ( Expr
AFalse
           )
         ) of
      Expr
_copy ->
        ( case ( ( Expr
_copy
                 )
               ) of
            Expr
_lhsOcopy ->
              ( case ( ( let
                          sem_Expr_AFalse_1 :: T_Expr_1
                          sem_Expr_AFalse_1 :: T_Expr_1
sem_Expr_AFalse_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIinParentheses
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Bool
_lhsIisNegation
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               Bool
_lhsItopLevel
                               Maybe MToken
_lhsIvarBeingDefined
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
True
                                                             )
                                                           ) of
                                                        Bool
_lhsOisSimpleExpression ->
                                                          ( case ( ( forall a. Maybe a
Nothing
                                                                   )
                                                                 ) of
                                                              Maybe MToken
_lhsOisSingleVar ->
                                                                ( case ( ( Region
_lhsImtokenPos
                                                                         )
                                                                       ) of
                                                                    Region
_lhsOmtokenPos ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                  ( case ( ( []
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Expr_1
sem_Expr_AFalse_1
                       )
                     ) of
                  (T_Expr_1
sem_Expr_1) ->
                    (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
              )
        )
  )
sem_Expr_ATrue :: T_Expr
sem_Expr_ATrue :: T_Expr
sem_Expr_ATrue =
  ( case ( ( Expr
ATrue
           )
         ) of
      Expr
_copy ->
        ( case ( ( Expr
_copy
                 )
               ) of
            Expr
_lhsOcopy ->
              ( case ( ( let
                          sem_Expr_ATrue_1 :: T_Expr_1
                          sem_Expr_ATrue_1 :: T_Expr_1
sem_Expr_ATrue_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIinParentheses
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Bool
_lhsIisNegation
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               Bool
_lhsItopLevel
                               Maybe MToken
_lhsIvarBeingDefined
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
True
                                                             )
                                                           ) of
                                                        Bool
_lhsOisSimpleExpression ->
                                                          ( case ( ( forall a. Maybe a
Nothing
                                                                   )
                                                                 ) of
                                                              Maybe MToken
_lhsOisSingleVar ->
                                                                ( case ( ( Region
_lhsImtokenPos
                                                                         )
                                                                       ) of
                                                                    Region
_lhsOmtokenPos ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                  ( case ( ( []
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Expr_1
sem_Expr_ATrue_1
                       )
                     ) of
                  (T_Expr_1
sem_Expr_1) ->
                    (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
              )
        )
  )
sem_Expr_ANumber
  :: String
  -> T_Expr
sem_Expr_ANumber :: String -> T_Expr
sem_Expr_ANumber String
num_ =
  ( case ( ( String -> Expr
ANumber String
num_
           )
         ) of
      Expr
_copy ->
        ( case ( ( Expr
_copy
                 )
               ) of
            Expr
_lhsOcopy ->
              ( case ( ( let
                          sem_Expr_ANumber_1 :: T_Expr_1
                          sem_Expr_ANumber_1 :: T_Expr_1
sem_Expr_ANumber_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIinParentheses
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Bool
_lhsIisNegation
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               Bool
_lhsItopLevel
                               Maybe MToken
_lhsIvarBeingDefined
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
True
                                                             )
                                                           ) of
                                                        Bool
_lhsOisSimpleExpression ->
                                                          ( case ( ( forall a. Maybe a
Nothing
                                                                   )
                                                                 ) of
                                                              Maybe MToken
_lhsOisSingleVar ->
                                                                ( case ( ( Region
_lhsImtokenPos
                                                                         )
                                                                       ) of
                                                                    Region
_lhsOmtokenPos ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                  ( case ( ( []
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Expr_1
sem_Expr_ANumber_1
                       )
                     ) of
                  (T_Expr_1
sem_Expr_1) ->
                    (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
              )
        )
  )
sem_Expr_AString
  :: T_MToken
  -> T_Expr
sem_Expr_AString :: T_MToken -> T_Expr
sem_Expr_AString T_MToken
str_ =
  ( case (T_MToken
str_) of
      (MToken
_strIcopy, Token
_strImtok, Region
_strImtokenPos, T_MToken_1
str_1) ->
        ( case ( ( MToken -> Expr
AString MToken
_strIcopy
                 )
               ) of
            Expr
_copy ->
              ( case ( ( Expr
_copy
                       )
                     ) of
                  Expr
_lhsOcopy ->
                    ( case ( ( let
                                sem_Expr_AString_1 :: T_Expr_1
                                sem_Expr_AString_1 :: T_Expr_1
sem_Expr_AString_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIinParentheses
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Bool
_lhsIisNegation
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     Bool
_lhsItopLevel
                                     Maybe MToken
_lhsIvarBeingDefined
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_strOglobalDefinitions ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_strOscopes ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_strOmtokenPos ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_strOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_strOisInModule ->
                                                                      ( case ( ( String
_lhsIfuncName
                                                                               )
                                                                             ) of
                                                                          String
_strOfuncName ->
                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                     )
                                                                                   ) of
                                                                                LintSettings
_strOconfig ->
                                                                                  ( case (T_MToken_1
str_1 LintSettings
_strOconfig String
_strOfuncName Map String [Region]
_strOglobalDefinitions Bool
_strOisInModule Bool
_strOisMeta Region
_strOmtokenPos [Map String (Bool, Region)]
_strOscopes) of
                                                                                      (Map String [Region]
_strIglobalDefinitions, String
_strIidentifier, Bool
_strIisInModule, [Map String (Bool, Region)]
_strIscopes, [String -> LintMessage]
_strIwarnings) ->
                                                                                        ( case ( ( Map String [Region]
_strIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                              ( case ( ( String
_strIidentifier
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_lhsOidentifier ->
                                                                                                    ( case ( ( Bool
_strIisInModule
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_lhsOisInModule ->
                                                                                                          ( case ( ( Bool
True
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_lhsOisSimpleExpression ->
                                                                                                                ( case ( ( forall a. Maybe a
Nothing
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Maybe MToken
_lhsOisSingleVar ->
                                                                                                                      ( case ( ( Region
_strImtokenPos
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Region
_lhsOmtokenPos ->
                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_strIscopes
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                  ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                        ( case ( ( [String -> LintMessage]
_strIwarnings
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                              (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Expr_1
sem_Expr_AString_1
                             )
                           ) of
                        (T_Expr_1
sem_Expr_1) ->
                          (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
                    )
              )
        )
  )
sem_Expr_AVarArg :: T_Expr
sem_Expr_AVarArg :: T_Expr
sem_Expr_AVarArg =
  ( case ( ( Expr
AVarArg
           )
         ) of
      Expr
_copy ->
        ( case ( ( Expr
_copy
                 )
               ) of
            Expr
_lhsOcopy ->
              ( case ( ( let
                          sem_Expr_AVarArg_1 :: T_Expr_1
                          sem_Expr_AVarArg_1 :: T_Expr_1
sem_Expr_AVarArg_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIinParentheses
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Bool
_lhsIisNegation
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               Bool
_lhsItopLevel
                               Maybe MToken
_lhsIvarBeingDefined
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
False
                                                             )
                                                           ) of
                                                        Bool
_lhsOisSimpleExpression ->
                                                          ( case ( ( forall a. Maybe a
Nothing
                                                                   )
                                                                 ) of
                                                              Maybe MToken
_lhsOisSingleVar ->
                                                                ( case ( ( Region
_lhsImtokenPos
                                                                         )
                                                                       ) of
                                                                    Region
_lhsOmtokenPos ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                  ( case ( ( []
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Expr_1
sem_Expr_AVarArg_1
                       )
                     ) of
                  (T_Expr_1
sem_Expr_1) ->
                    (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
              )
        )
  )
sem_Expr_AnonymousFunc
  :: ([MToken])
  -> T_Block
  -> T_Expr
sem_Expr_AnonymousFunc :: [MToken] -> T_Block -> T_Expr
sem_Expr_AnonymousFunc [MToken]
pars_ T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case ( ( [MToken] -> Block -> Expr
AnonymousFunc [MToken]
pars_ Block
_bodyIcopy
                 )
               ) of
            Expr
_copy ->
              ( case ( ( Expr
_copy
                       )
                     ) of
                  Expr
_lhsOcopy ->
                    ( case ( ( let
                                sem_Expr_AnonymousFunc_1 :: T_Expr_1
                                sem_Expr_AnonymousFunc_1 :: T_Expr_1
sem_Expr_AnonymousFunc_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIinParentheses
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Bool
_lhsIisNegation
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     Bool
_lhsItopLevel
                                     Maybe MToken
_lhsIvarBeingDefined
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Bool
_lhsIisInModule
                                                 )
                                               ) of
                                            Bool
_bodyOisInModule ->
                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                       )
                                                     ) of
                                                  Map String [Region]
_bodyOglobalDefinitions ->
                                                    ( case ( ( LintSettings
_lhsIconfig
                                                             )
                                                           ) of
                                                        LintSettings
_bodyOconfig ->
                                                          ( case ( ( Bool
_lhsIisMeta Bool -> Bool -> Bool
|| [MToken] -> Bool
findSelf [MToken]
pars_
                                                                   )
                                                                 ) of
                                                              Bool
_bodyOisMeta ->
                                                                ( case ( ( forall k a. Ord k => [(k, a)] -> Map k a
M.fromList forall a b. (a -> b) -> a -> b
$ forall a b. (a -> b) -> [a] -> [b]
map (\MToken
mt -> (MToken -> String
tokenLabel MToken
mt, (Bool -> Bool
not forall b c a. (b -> c) -> (a -> b) -> a -> c
. LintSettings -> Bool
lint_unusedParameters forall a b. (a -> b) -> a -> b
$ LintSettings
_lhsIconfig, MToken -> Region
mpos MToken
mt))) [MToken]
pars_
                                                                         )
                                                                       ) of
                                                                    Map String (Bool, Region)
_introduces ->
                                                                      ( case ( ( Map String (Bool, Region)
_introduces forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_bodyOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_bodyOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_bodyOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_bodyOloopLevel ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_bodyOfuncName ->
                                                                                                          ( case ( ( Bool
False
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_bodyOisRepeat ->
                                                                                                                ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                    (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                      ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                            ( case ( ( String
_bodyIidentifier
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                String
_lhsOidentifier ->
                                                                                                                                  ( case ( ( Bool
_bodyIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                        ( case ( ( Bool
True
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_lhsOisSimpleExpression ->
                                                                                                                                              ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                    ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Region
_lhsOmtokenPos ->
                                                                                                                                                          ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                      ( case ( ( [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                            ( case ( ( forall a. (a -> Bool) -> [a] -> [a]
filter (forall a. Eq a => a -> a -> Bool
/= Region -> Token -> MToken
MToken Region
emptyRg Token
VarArg) forall a b. (a -> b) -> a -> b
$ [MToken]
pars_
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                [MToken]
_argIdentifiers ->
                                                                                                                                                                                  ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_shadowing LintSettings
_lhsIconfig)
                                                                                                                                                                                              then forall a. a -> a
id
                                                                                                                                                                                              else forall a. [a] -> [a] -> [a]
(++) forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. [Maybe a] -> [a]
catMaybes forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a b. (a -> b) -> [a] -> [b]
map ([Map String (Bool, Region)]
-> MToken -> Maybe (String -> LintMessage)
checkShadows [Map String (Bool, Region)]
_lhsIscopes) forall a b. (a -> b) -> a -> b
$ [MToken]
_argIdentifiers
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                        ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                              (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Expr_1
sem_Expr_AnonymousFunc_1
                             )
                           ) of
                        (T_Expr_1
sem_Expr_1) ->
                          (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
                    )
              )
        )
  )
sem_Expr_APrefixExpr
  :: T_PrefixExp
  -> T_Expr
sem_Expr_APrefixExpr :: T_PrefixExp -> T_Expr
sem_Expr_APrefixExpr T_PrefixExp
pexpr_ =
  ( case (T_PrefixExp
pexpr_) of
      (PrefixExp
_pexprIcopy, Bool
_pexprIhasSuffixes, Region
_pexprImtokenPos, Maybe MToken
_pexprIvarName, T_PrefixExp_1
pexpr_1) ->
        ( case ( ( PrefixExp -> Expr
APrefixExpr PrefixExp
_pexprIcopy
                 )
               ) of
            Expr
_copy ->
              ( case ( ( Expr
_copy
                       )
                     ) of
                  Expr
_lhsOcopy ->
                    ( case ( ( let
                                sem_Expr_APrefixExpr_1 :: T_Expr_1
                                sem_Expr_APrefixExpr_1 :: T_Expr_1
sem_Expr_APrefixExpr_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIinParentheses
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Bool
_lhsIisNegation
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     Bool
_lhsItopLevel
                                     Maybe MToken
_lhsIvarBeingDefined
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Maybe MToken
_lhsIvarBeingDefined
                                                 )
                                               ) of
                                            Maybe MToken
_pexprOvarBeingDefined ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_pexprOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_pexprOisMeta ->
                                                          ( case ( ( Bool
_lhsIisInModule
                                                                   )
                                                                 ) of
                                                              Bool
_pexprOisInModule ->
                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                         )
                                                                       ) of
                                                                    Map String [Region]
_pexprOglobalDefinitions ->
                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                               )
                                                                             ) of
                                                                          LintSettings
_pexprOconfig ->
                                                                            ( case ( ( Bool
True
                                                                                     )
                                                                                   ) of
                                                                                Bool
_pexprOregisterVarUse ->
                                                                                  ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                           )
                                                                                         ) of
                                                                                      DeterminedVariableStyle
_pexprOvariableStyle ->
                                                                                        ( case ( ( Bool
_lhsItopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_pexprOtopLevel ->
                                                                                              ( case ( ( Int
_lhsIscopeLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_pexprOscopeLevel ->
                                                                                                    ( case ( ( Region
_lhsImtokenPos
                                                                                                             )
                                                                                                           ) of
                                                                                                        Region
_pexprOmtokenPos ->
                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Int
_pexprOloopLevel ->
                                                                                                                ( case ( ( Bool
_lhsIisNegation
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_pexprOisNegation ->
                                                                                                                      ( case ( ( Bool
_lhsIinParentheses
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_pexprOinParentheses ->
                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                String
_pexprOfuncName ->
                                                                                                                                  ( case (T_PrefixExp_1
pexpr_1 LintSettings
_pexprOconfig String
_pexprOfuncName Map String [Region]
_pexprOglobalDefinitions Bool
_pexprOinParentheses Bool
_pexprOisInModule Bool
_pexprOisMeta Bool
_pexprOisNegation Int
_pexprOloopLevel Region
_pexprOmtokenPos Bool
_pexprOregisterVarUse Int
_pexprOscopeLevel [Map String (Bool, Region)]
_pexprOscopes Bool
_pexprOtopLevel Maybe MToken
_pexprOvarBeingDefined DeterminedVariableStyle
_pexprOvariableStyle) of
                                                                                                                                      (Map String [Region]
_pexprIglobalDefinitions, String
_pexprIidentifier, Bool
_pexprIisInModule, Bool
_pexprIisSimpleExpression, Maybe MToken
_pexprIisSingleVar, [Map String (Bool, Region)]
_pexprIscopes, DeterminedVariableStyle
_pexprIvariableStyle, [String -> LintMessage]
_pexprIwarnings) ->
                                                                                                                                        ( case ( ( Map String [Region]
_pexprIglobalDefinitions
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                              ( case ( ( String
_pexprIidentifier
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  String
_lhsOidentifier ->
                                                                                                                                                    ( case ( ( Bool
_pexprIisInModule
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Bool
_lhsOisInModule ->
                                                                                                                                                          ( case ( ( Bool
_pexprIisSimpleExpression
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                ( case ( ( Maybe MToken
_pexprIisSingleVar
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                                      ( case ( ( Region
_pexprImtokenPos
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Region
_lhsOmtokenPos ->
                                                                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_pexprIscopes
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                  ( case ( ( DeterminedVariableStyle
_pexprIvariableStyle
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                        ( case ( ( [String -> LintMessage]
_pexprIwarnings
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                              (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Expr_1
sem_Expr_APrefixExpr_1
                             )
                           ) of
                        (T_Expr_1
sem_Expr_1) ->
                          (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
                    )
              )
        )
  )
sem_Expr_ATableConstructor
  :: T_FieldList
  -> T_Expr
sem_Expr_ATableConstructor :: T_FieldList -> T_Expr
sem_Expr_ATableConstructor T_FieldList
fields_ =
  ( case (T_FieldList
fields_) of
      (FieldList
_fieldsIcopy, T_FieldList_1
fields_1) ->
        ( case ( ( FieldList -> Expr
ATableConstructor FieldList
_fieldsIcopy
                 )
               ) of
            Expr
_copy ->
              ( case ( ( Expr
_copy
                       )
                     ) of
                  Expr
_lhsOcopy ->
                    ( case ( ( let
                                sem_Expr_ATableConstructor_1 :: T_Expr_1
                                sem_Expr_ATableConstructor_1 :: T_Expr_1
sem_Expr_ATableConstructor_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIinParentheses
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Bool
_lhsIisNegation
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     Bool
_lhsItopLevel
                                     Maybe MToken
_lhsIvarBeingDefined
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_fieldsOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_fieldsOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_fieldsOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_fieldsOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_fieldsOconfig ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_fieldsOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_fieldsOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_fieldsOmtokenPos ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_fieldsOloopLevel ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_fieldsOfuncName ->
                                                                                                    ( case ( ( forall a. Set a
S.empty
                                                                                                             )
                                                                                                           ) of
                                                                                                        Set Token
_fieldsOfieldNames ->
                                                                                                          ( case (T_FieldList_1
fields_1 LintSettings
_fieldsOconfig Set Token
_fieldsOfieldNames String
_fieldsOfuncName Map String [Region]
_fieldsOglobalDefinitions Bool
_fieldsOisInModule Bool
_fieldsOisMeta Int
_fieldsOloopLevel Region
_fieldsOmtokenPos Int
_fieldsOscopeLevel [Map String (Bool, Region)]
_fieldsOscopes DeterminedVariableStyle
_fieldsOvariableStyle) of
                                                                                                              (Set Token
_fieldsIfieldNames, Map String [Region]
_fieldsIglobalDefinitions, String
_fieldsIidentifier, Bool
_fieldsIisInModule, Region
_fieldsImtokenPos, [Map String (Bool, Region)]
_fieldsIscopes, DeterminedVariableStyle
_fieldsIvariableStyle, [String -> LintMessage]
_fieldsIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_fieldsIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_fieldsIidentifier
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
_fieldsIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                  ( case ( ( Bool
True
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_lhsOisSimpleExpression ->
                                                                                                                                        ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                              ( case ( ( Region
_fieldsImtokenPos
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Region
_lhsOmtokenPos ->
                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_fieldsIscopes
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_fieldsIvariableStyle
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                ( case ( ( [String -> LintMessage]
_fieldsIwarnings
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_Expr_1
sem_Expr_ATableConstructor_1
                             )
                           ) of
                        (T_Expr_1
sem_Expr_1) ->
                          (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
                    )
              )
        )
  )
sem_Expr_BinOpExpr
  :: T_BinOp
  -> T_MExpr
  -> T_MExpr
  -> T_Expr
sem_Expr_BinOpExpr :: T_BinOp -> T_MExpr -> T_MExpr -> T_Expr
sem_Expr_BinOpExpr T_BinOp
op_ T_MExpr
left_ T_MExpr
right_ =
  ( case (T_MExpr
right_) of
      (MExpr
_rightIcopy, Region
_rightImtokenPos, T_MExpr_1
right_1) ->
        ( case (T_MExpr
left_) of
            (MExpr
_leftIcopy, Region
_leftImtokenPos, T_MExpr_1
left_1) ->
              ( case (T_BinOp
op_) of
                  (BinOp
_opIcopy, T_Args_1
op_1) ->
                    ( case ( ( BinOp -> MExpr -> MExpr -> Expr
BinOpExpr BinOp
_opIcopy MExpr
_leftIcopy MExpr
_rightIcopy
                             )
                           ) of
                        Expr
_copy ->
                          ( case ( ( Expr
_copy
                                   )
                                 ) of
                              Expr
_lhsOcopy ->
                                ( case ( ( let
                                            sem_Expr_BinOpExpr_1 :: T_Expr_1
                                            sem_Expr_BinOpExpr_1 :: T_Expr_1
sem_Expr_BinOpExpr_1 =
                                              ( \LintSettings
_lhsIconfig
                                                 String
_lhsIfuncName
                                                 Map String [Region]
_lhsIglobalDefinitions
                                                 Bool
_lhsIinParentheses
                                                 Bool
_lhsIisInModule
                                                 Bool
_lhsIisMeta
                                                 Bool
_lhsIisNegation
                                                 Int
_lhsIloopLevel
                                                 Region
_lhsImtokenPos
                                                 Int
_lhsIscopeLevel
                                                 [Map String (Bool, Region)]
_lhsIscopes
                                                 Bool
_lhsItopLevel
                                                 Maybe MToken
_lhsIvarBeingDefined
                                                 DeterminedVariableStyle
_lhsIvariableStyle ->
                                                    ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                             )
                                                           ) of
                                                        [Map String (Bool, Region)]
_opOscopes ->
                                                          ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                   )
                                                                 ) of
                                                              DeterminedVariableStyle
_opOvariableStyle ->
                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                         )
                                                                       ) of
                                                                    Int
_opOscopeLevel ->
                                                                      ( case ( ( Region
_lhsImtokenPos
                                                                               )
                                                                             ) of
                                                                          Region
_opOmtokenPos ->
                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_opOloopLevel ->
                                                                                  ( case ( ( Bool
_lhsIisMeta
                                                                                           )
                                                                                         ) of
                                                                                      Bool
_opOisMeta ->
                                                                                        ( case ( ( Bool
_lhsIisInModule
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_opOisInModule ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_opOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_opOfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_opOconfig ->
                                                                                                                ( case (T_Args_1
op_1 LintSettings
_opOconfig String
_opOfuncName Map String [Region]
_opOglobalDefinitions Bool
_opOisInModule Bool
_opOisMeta Int
_opOloopLevel Region
_opOmtokenPos Int
_opOscopeLevel [Map String (Bool, Region)]
_opOscopes DeterminedVariableStyle
_opOvariableStyle) of
                                                                                                                    (Map String [Region]
_opIglobalDefinitions, String
_opIidentifier, Bool
_opIisInModule, Region
_opImtokenPos, [Map String (Bool, Region)]
_opIscopes, DeterminedVariableStyle
_opIvariableStyle, [String -> LintMessage]
_opIwarnings) ->
                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_opIscopes
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          [Map String (Bool, Region)]
_leftOscopes ->
                                                                                                                            ( case ( ( Bool
_lhsIisMeta
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_leftOisMeta ->
                                                                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      LintSettings
_leftOconfig ->
                                                                                                                                        ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Maybe MToken
_leftOvarBeingDefined ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_opIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_leftOvariableStyle ->
                                                                                                                                                    ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Int
_leftOscopeLevel ->
                                                                                                                                                          ( case ( ( Region
_opImtokenPos
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Region
_leftOmtokenPos ->
                                                                                                                                                                ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_leftOloopLevel ->
                                                                                                                                                                      ( case ( ( Bool
_opIisInModule
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Bool
_leftOisInModule ->
                                                                                                                                                                            ( case ( ( Map String [Region]
_opIglobalDefinitions
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Map String [Region]
_leftOglobalDefinitions ->
                                                                                                                                                                                  ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      String
_leftOfuncName ->
                                                                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Bool
_leftOtopLevel ->
                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_leftOinParentheses ->
                                                                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_leftOisNegation ->
                                                                                                                                                                                                          ( case (T_MExpr_1
left_1 LintSettings
_leftOconfig String
_leftOfuncName Map String [Region]
_leftOglobalDefinitions Bool
_leftOinParentheses Bool
_leftOisInModule Bool
_leftOisMeta Bool
_leftOisNegation Int
_leftOloopLevel Region
_leftOmtokenPos Int
_leftOscopeLevel [Map String (Bool, Region)]
_leftOscopes Bool
_leftOtopLevel Maybe MToken
_leftOvarBeingDefined DeterminedVariableStyle
_leftOvariableStyle) of
                                                                                                                                                                                                              (Map String [Region]
_leftIglobalDefinitions, String
_leftIidentifier, Bool
_leftIisInModule, Bool
_leftIisSimpleExpression, Maybe MToken
_leftIisSingleVar, [Map String (Bool, Region)]
_leftIscopes, DeterminedVariableStyle
_leftIvariableStyle, [String -> LintMessage]
_leftIwarnings) ->
                                                                                                                                                                                                                ( case ( ( [Map String (Bool, Region)]
_leftIscopes
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    [Map String (Bool, Region)]
_rightOscopes ->
                                                                                                                                                                                                                      ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Bool
_rightOisMeta ->
                                                                                                                                                                                                                            ( case ( ( Bool
_leftIisInModule
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_rightOisInModule ->
                                                                                                                                                                                                                                  ( case ( ( Map String [Region]
_leftIglobalDefinitions
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Map String [Region]
_rightOglobalDefinitions ->
                                                                                                                                                                                                                                        ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            LintSettings
_rightOconfig ->
                                                                                                                                                                                                                                              ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Maybe MToken
_rightOvarBeingDefined ->
                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_leftIvariableStyle
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        DeterminedVariableStyle
_rightOvariableStyle ->
                                                                                                                                                                                                                                                          ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              Int
_rightOscopeLevel ->
                                                                                                                                                                                                                                                                ( case ( ( Region
_leftImtokenPos
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    Region
_rightOmtokenPos ->
                                                                                                                                                                                                                                                                      ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          Int
_rightOloopLevel ->
                                                                                                                                                                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                String
_rightOfuncName ->
                                                                                                                                                                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      Bool
_rightOtopLevel ->
                                                                                                                                                                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                            Bool
_rightOinParentheses ->
                                                                                                                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                  Bool
_rightOisNegation ->
                                                                                                                                                                                                                                                                                                    ( case (T_MExpr_1
right_1 LintSettings
_rightOconfig String
_rightOfuncName Map String [Region]
_rightOglobalDefinitions Bool
_rightOinParentheses Bool
_rightOisInModule Bool
_rightOisMeta Bool
_rightOisNegation Int
_rightOloopLevel Region
_rightOmtokenPos Int
_rightOscopeLevel [Map String (Bool, Region)]
_rightOscopes Bool
_rightOtopLevel Maybe MToken
_rightOvarBeingDefined DeterminedVariableStyle
_rightOvariableStyle) of
                                                                                                                                                                                                                                                                                                        (Map String [Region]
_rightIglobalDefinitions, String
_rightIidentifier, Bool
_rightIisInModule, Bool
_rightIisSimpleExpression, Maybe MToken
_rightIisSingleVar, [Map String (Bool, Region)]
_rightIscopes, DeterminedVariableStyle
_rightIvariableStyle, [String -> LintMessage]
_rightIwarnings) ->
                                                                                                                                                                                                                                                                                                          ( case ( ( Map String [Region]
_rightIglobalDefinitions
                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                              Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                                                                                                                ( case ( ( (forall a b. a -> b -> a
const String
_opIidentifier (forall a b. a -> b -> a
const String
_leftIidentifier String
_rightIidentifier))
                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                    String
_lhsOidentifier ->
                                                                                                                                                                                                                                                                                                                      ( case ( ( Bool
_rightIisInModule
                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                          Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                                                                                                            ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                                                                                                                                                                                  ( case ( ( (forall a b. a -> b -> a
const (forall a b. a -> b -> a
const forall a. Maybe a
Nothing) Maybe MToken
_leftIisSingleVar Maybe MToken
_rightIisSingleVar)
                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                      Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                                                                                                                                                                                                        ( case ( ( Region
_rightImtokenPos
                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_rightIscopes
                                                                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_rightIvariableStyle
                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_opIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_leftIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_rightIwarnings
                                                                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                                                                              [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                                                                                                                ( case ( ( BinOp -> Maybe String
oppositeBinOp BinOp
_opIcopy
                                                                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                                                                    Maybe String
_stupidNegation ->
                                                                                                                                                                                                                                                                                                                                                                      ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_doubleNegations LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Bool -> Bool
not Bool
_lhsIisNegation Bool -> Bool -> Bool
|| forall a. Maybe a -> Bool
isNothing Maybe String
_stupidNegation
                                                                                                                                                                                                                                                                                                                                                                                  then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                                                                                  else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lhsImtokenPos forall a b. (a -> b) -> a -> b
$ String -> Issue
SillyNegation forall a b. (a -> b) -> a -> b
$ forall a. a -> Maybe a -> a
fromMaybe (forall a. HasCallStack => String -> a
error String
"fromMaybe sem Expr loc.stupidNegation") Maybe String
_stupidNegation
                                                                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                                                                          [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                                                                                                                            ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                                                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                           in
                                            T_Expr_1
sem_Expr_BinOpExpr_1
                                         )
                                       ) of
                                    (T_Expr_1
sem_Expr_1) ->
                                      (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
                                )
                          )
                    )
              )
        )
  )
sem_Expr_UnOpExpr
  :: T_UnOp
  -> T_MExpr
  -> T_Expr
sem_Expr_UnOpExpr :: T_UnOp -> T_MExpr -> T_Expr
sem_Expr_UnOpExpr T_UnOp
op_ T_MExpr
right_ =
  ( case (T_MExpr
right_) of
      (MExpr
_rightIcopy, Region
_rightImtokenPos, T_MExpr_1
right_1) ->
        ( case (T_UnOp
op_) of
            (UnOp
_opIcopy, T_UnOp_1
op_1) ->
              ( case ( ( UnOp -> MExpr -> Expr
UnOpExpr UnOp
_opIcopy MExpr
_rightIcopy
                       )
                     ) of
                  Expr
_copy ->
                    ( case ( ( Expr
_copy
                             )
                           ) of
                        Expr
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Expr_UnOpExpr_1 :: T_Expr_1
                                      sem_Expr_UnOpExpr_1 :: T_Expr_1
sem_Expr_UnOpExpr_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIinParentheses
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Bool
_lhsIisNegation
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           Bool
_lhsItopLevel
                                           Maybe MToken
_lhsIvarBeingDefined
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_opOscopes ->
                                                    ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                             )
                                                           ) of
                                                        DeterminedVariableStyle
_opOvariableStyle ->
                                                          ( case ( ( Int
_lhsIscopeLevel
                                                                   )
                                                                 ) of
                                                              Int
_opOscopeLevel ->
                                                                ( case ( ( Region
_lhsImtokenPos
                                                                         )
                                                                       ) of
                                                                    Region
_opOmtokenPos ->
                                                                      ( case ( ( Int
_lhsIloopLevel
                                                                               )
                                                                             ) of
                                                                          Int
_opOloopLevel ->
                                                                            ( case ( ( Bool
_lhsIisMeta
                                                                                     )
                                                                                   ) of
                                                                                Bool
_opOisMeta ->
                                                                                  ( case ( ( Bool
_lhsIisInModule
                                                                                           )
                                                                                         ) of
                                                                                      Bool
_opOisInModule ->
                                                                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_opOglobalDefinitions ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_opOfuncName ->
                                                                                                    ( case ( ( LintSettings
_lhsIconfig
                                                                                                             )
                                                                                                           ) of
                                                                                                        LintSettings
_opOconfig ->
                                                                                                          ( case (T_UnOp_1
op_1 LintSettings
_opOconfig String
_opOfuncName Map String [Region]
_opOglobalDefinitions Bool
_opOisInModule Bool
_opOisMeta Int
_opOloopLevel Region
_opOmtokenPos Int
_opOscopeLevel [Map String (Bool, Region)]
_opOscopes DeterminedVariableStyle
_opOvariableStyle) of
                                                                                                              (Map String [Region]
_opIglobalDefinitions, String
_opIidentifier, Bool
_opIisInModule, Bool
_opIisNegation, Region
_opImtokenPos, [Map String (Bool, Region)]
_opIscopes, DeterminedVariableStyle
_opIvariableStyle, [String -> LintMessage]
_opIwarnings) ->
                                                                                                                ( case ( ( [Map String (Bool, Region)]
_opIscopes
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    [Map String (Bool, Region)]
_rightOscopes ->
                                                                                                                      ( case ( ( Bool
_lhsIisMeta
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_rightOisMeta ->
                                                                                                                            ( case ( ( Bool
_opIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_rightOisInModule ->
                                                                                                                                  ( case ( ( Map String [Region]
_opIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_rightOglobalDefinitions ->
                                                                                                                                        ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            LintSettings
_rightOconfig ->
                                                                                                                                              ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Maybe MToken
_rightOvarBeingDefined ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_opIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_rightOvariableStyle ->
                                                                                                                                                          ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Int
_rightOscopeLevel ->
                                                                                                                                                                ( case ( ( Region
_opImtokenPos
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Region
_rightOmtokenPos ->
                                                                                                                                                                      ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Int
_rightOloopLevel ->
                                                                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                String
_rightOfuncName ->
                                                                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Bool
_rightOtopLevel ->
                                                                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Bool
_rightOinParentheses ->
                                                                                                                                                                                              ( case ( ( Bool
_opIisNegation
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_rightOisNegation ->
                                                                                                                                                                                                    ( case (T_MExpr_1
right_1 LintSettings
_rightOconfig String
_rightOfuncName Map String [Region]
_rightOglobalDefinitions Bool
_rightOinParentheses Bool
_rightOisInModule Bool
_rightOisMeta Bool
_rightOisNegation Int
_rightOloopLevel Region
_rightOmtokenPos Int
_rightOscopeLevel [Map String (Bool, Region)]
_rightOscopes Bool
_rightOtopLevel Maybe MToken
_rightOvarBeingDefined DeterminedVariableStyle
_rightOvariableStyle) of
                                                                                                                                                                                                        (Map String [Region]
_rightIglobalDefinitions, String
_rightIidentifier, Bool
_rightIisInModule, Bool
_rightIisSimpleExpression, Maybe MToken
_rightIisSingleVar, [Map String (Bool, Region)]
_rightIscopes, DeterminedVariableStyle
_rightIvariableStyle, [String -> LintMessage]
_rightIwarnings) ->
                                                                                                                                                                                                          ( case ( ( Map String [Region]
_rightIglobalDefinitions
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                ( case ( ( (forall a b. a -> b -> a
const String
_opIidentifier String
_rightIidentifier)
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    String
_lhsOidentifier ->
                                                                                                                                                                                                                      ( case ( ( Bool
_rightIisInModule
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Bool
_lhsOisInModule ->
                                                                                                                                                                                                                            ( case ( ( Bool
False
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                                                                                  ( case ( ( Maybe MToken
_rightIisSingleVar
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                                                                                                        ( case ( ( Region
_rightImtokenPos
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_rightIscopes
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_rightIvariableStyle
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_opIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_rightIwarnings
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_Expr_1
sem_Expr_UnOpExpr_1
                                   )
                                 ) of
                              (T_Expr_1
sem_Expr_1) ->
                                (Expr
_lhsOcopy, T_Expr_1
sem_Expr_1)
                          )
                    )
              )
        )
  )

-- ExprSuffixList ----------------------------------------------
-- cata
sem_ExprSuffixList
  :: ExprSuffixList
  -> T_ExprSuffixList
sem_ExprSuffixList :: ExprSuffixList -> T_ExprSuffixList
sem_ExprSuffixList ExprSuffixList
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_PFExprSuffix -> T_ExprSuffixList -> T_ExprSuffixList
sem_ExprSuffixList_Cons T_ExprSuffixList
sem_ExprSuffixList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map PFExprSuffix -> T_PFExprSuffix
sem_PFExprSuffix ExprSuffixList
list))

-- semantic domain
type T_ExprSuffixList = (ExprSuffixList, T_ExprSuffixList_1)
type T_ExprSuffixList_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_ExprSuffixList = Inh_ExprSuffixList {Inh_ExprSuffixList -> LintSettings
config_Inh_ExprSuffixList :: LintSettings, Inh_ExprSuffixList -> String
funcName_Inh_ExprSuffixList :: String, Inh_ExprSuffixList -> Map String [Region]
globalDefinitions_Inh_ExprSuffixList :: (M.Map String [Region]), Inh_ExprSuffixList -> Bool
isInModule_Inh_ExprSuffixList :: Bool, Inh_ExprSuffixList -> Bool
isMeta_Inh_ExprSuffixList :: Bool, Inh_ExprSuffixList -> Int
loopLevel_Inh_ExprSuffixList :: Int, Inh_ExprSuffixList -> Region
mtokenPos_Inh_ExprSuffixList :: Region, Inh_ExprSuffixList -> Int
scopeLevel_Inh_ExprSuffixList :: Int, Inh_ExprSuffixList -> [Map String (Bool, Region)]
scopes_Inh_ExprSuffixList :: ([M.Map String (Bool, Region)]), Inh_ExprSuffixList -> DeterminedVariableStyle
variableStyle_Inh_ExprSuffixList :: DeterminedVariableStyle}
data Syn_ExprSuffixList = Syn_ExprSuffixList {Syn_ExprSuffixList -> ExprSuffixList
copy_Syn_ExprSuffixList :: ExprSuffixList, Syn_ExprSuffixList -> Map String [Region]
globalDefinitions_Syn_ExprSuffixList :: (M.Map String [Region]), Syn_ExprSuffixList -> String
identifier_Syn_ExprSuffixList :: String, Syn_ExprSuffixList -> Bool
isInModule_Syn_ExprSuffixList :: Bool, Syn_ExprSuffixList -> Bool
isSimpleExpression_Syn_ExprSuffixList :: Bool, Syn_ExprSuffixList -> Region
mtokenPos_Syn_ExprSuffixList :: Region, Syn_ExprSuffixList -> [Map String (Bool, Region)]
scopes_Syn_ExprSuffixList :: ([M.Map String (Bool, Region)]), Syn_ExprSuffixList -> DeterminedVariableStyle
variableStyle_Syn_ExprSuffixList :: DeterminedVariableStyle, Syn_ExprSuffixList -> [String -> LintMessage]
warnings_Syn_ExprSuffixList :: ([String -> LintMessage])}
wrap_ExprSuffixList
  :: T_ExprSuffixList
  -> Inh_ExprSuffixList
  -> Syn_ExprSuffixList
wrap_ExprSuffixList :: T_ExprSuffixList -> Inh_ExprSuffixList -> Syn_ExprSuffixList
wrap_ExprSuffixList T_ExprSuffixList
sem (Inh_ExprSuffixList LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (ExprSuffixList
_lhsOcopy, T_UnOp_1
sem_1) = T_ExprSuffixList
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_UnOp_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (ExprSuffixList
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_ExprSuffixList
Syn_ExprSuffixList ExprSuffixList
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Bool
_lhsOisSimpleExpression Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_ExprSuffixList_Cons
  :: T_PFExprSuffix
  -> T_ExprSuffixList
  -> T_ExprSuffixList
sem_ExprSuffixList_Cons :: T_PFExprSuffix -> T_ExprSuffixList -> T_ExprSuffixList
sem_ExprSuffixList_Cons T_PFExprSuffix
hd_ T_ExprSuffixList
tl_ =
  ( case (T_ExprSuffixList
tl_) of
      (ExprSuffixList
_tlIcopy, T_UnOp_1
tl_1) ->
        ( case (T_PFExprSuffix
hd_) of
            (PFExprSuffix
_hdIcopy, T_UnOp_1
hd_1) ->
              ( case ( ( (:) PFExprSuffix
_hdIcopy ExprSuffixList
_tlIcopy
                       )
                     ) of
                  ExprSuffixList
_copy ->
                    ( case ( ( ExprSuffixList
_copy
                             )
                           ) of
                        ExprSuffixList
_lhsOcopy ->
                          ( case ( ( let
                                      sem_ExprSuffixList_Cons_1 :: T_ExprSuffixList_1
                                      sem_ExprSuffixList_Cons_1 :: T_UnOp_1
sem_ExprSuffixList_Cons_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_hdOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_hdOisMeta ->
                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                   )
                                                                 ) of
                                                              LintSettings
_hdOconfig ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_hdOvariableStyle ->
                                                                      ( case ( ( Int
_lhsIscopeLevel
                                                                               )
                                                                             ) of
                                                                          Int
_hdOscopeLevel ->
                                                                            ( case ( ( Region
_lhsImtokenPos
                                                                                     )
                                                                                   ) of
                                                                                Region
_hdOmtokenPos ->
                                                                                  ( case ( ( Int
_lhsIloopLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_hdOloopLevel ->
                                                                                        ( case ( ( Bool
_lhsIisInModule
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_hdOisInModule ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_hdOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_hdOfuncName ->
                                                                                                          ( case (T_UnOp_1
hd_1 LintSettings
_hdOconfig String
_hdOfuncName Map String [Region]
_hdOglobalDefinitions Bool
_hdOisInModule Bool
_hdOisMeta Int
_hdOloopLevel Region
_hdOmtokenPos Int
_hdOscopeLevel [Map String (Bool, Region)]
_hdOscopes DeterminedVariableStyle
_hdOvariableStyle) of
                                                                                                              (Map String [Region]
_hdIglobalDefinitions, String
_hdIidentifier, Bool
_hdIisInModule, Bool
_hdIisSimpleExpression, Region
_hdImtokenPos, [Map String (Bool, Region)]
_hdIscopes, DeterminedVariableStyle
_hdIvariableStyle, [String -> LintMessage]
_hdIwarnings) ->
                                                                                                                ( case ( ( [Map String (Bool, Region)]
_hdIscopes
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    [Map String (Bool, Region)]
_tlOscopes ->
                                                                                                                      ( case ( ( Bool
_lhsIisMeta
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_tlOisMeta ->
                                                                                                                            ( case ( ( Bool
_hdIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_tlOisInModule ->
                                                                                                                                  ( case ( ( Map String [Region]
_hdIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_tlOglobalDefinitions ->
                                                                                                                                        ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            LintSettings
_tlOconfig ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_hdIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_tlOvariableStyle ->
                                                                                                                                                    ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Int
_tlOscopeLevel ->
                                                                                                                                                          ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Region
_tlOmtokenPos ->
                                                                                                                                                                ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_tlOloopLevel ->
                                                                                                                                                                      ( case ( ( String
_lhsIfuncName
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          String
_tlOfuncName ->
                                                                                                                                                                            ( case (T_UnOp_1
tl_1 LintSettings
_tlOconfig String
_tlOfuncName Map String [Region]
_tlOglobalDefinitions Bool
_tlOisInModule Bool
_tlOisMeta Int
_tlOloopLevel Region
_tlOmtokenPos Int
_tlOscopeLevel [Map String (Bool, Region)]
_tlOscopes DeterminedVariableStyle
_tlOvariableStyle) of
                                                                                                                                                                                (Map String [Region]
_tlIglobalDefinitions, String
_tlIidentifier, Bool
_tlIisInModule, Bool
_tlIisSimpleExpression, Region
_tlImtokenPos, [Map String (Bool, Region)]
_tlIscopes, DeterminedVariableStyle
_tlIvariableStyle, [String -> LintMessage]
_tlIwarnings) ->
                                                                                                                                                                                  ( case ( ( Map String [Region]
_tlIglobalDefinitions
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                        ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            String
_lhsOidentifier ->
                                                                                                                                                                                              ( case ( ( Bool
_tlIisInModule
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_lhsOisInModule ->
                                                                                                                                                                                                    ( case ( ( Bool
_hdIisSimpleExpression Bool -> Bool -> Bool
&& Bool
_tlIisSimpleExpression
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                                                          ( case ( ( Region
_tlImtokenPos
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                ( case ( ( [Map String (Bool, Region)]
_tlIscopes
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_tlIvariableStyle
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                            ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_UnOp_1
sem_ExprSuffixList_Cons_1
                                   )
                                 ) of
                              (T_UnOp_1
sem_ExprSuffixList_1) ->
                                (ExprSuffixList
_lhsOcopy, T_UnOp_1
sem_ExprSuffixList_1)
                          )
                    )
              )
        )
  )
sem_ExprSuffixList_Nil :: T_ExprSuffixList
sem_ExprSuffixList_Nil :: T_ExprSuffixList
sem_ExprSuffixList_Nil =
  ( case ( ( []
           )
         ) of
      ExprSuffixList
_copy ->
        ( case ( ( ExprSuffixList
_copy
                 )
               ) of
            ExprSuffixList
_lhsOcopy ->
              ( case ( ( let
                          sem_ExprSuffixList_Nil_1 :: T_ExprSuffixList_1
                          sem_ExprSuffixList_Nil_1 :: T_UnOp_1
sem_ExprSuffixList_Nil_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
True
                                                             )
                                                           ) of
                                                        Bool
_lhsOisSimpleExpression ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_UnOp_1
sem_ExprSuffixList_Nil_1
                       )
                     ) of
                  (T_UnOp_1
sem_ExprSuffixList_1) ->
                    (ExprSuffixList
_lhsOcopy, T_UnOp_1
sem_ExprSuffixList_1)
              )
        )
  )

-- Field -------------------------------------------------------
-- cata
sem_Field
  :: Field
  -> T_Field
sem_Field :: Field -> T_Field
sem_Field (ExprField MExpr
_key MExpr
_value FieldSep
_sep) =
  (T_MExpr -> T_MExpr -> T_FieldSep -> T_Field
sem_Field_ExprField (MExpr -> T_MExpr
sem_MExpr MExpr
_key) (MExpr -> T_MExpr
sem_MExpr MExpr
_value) (FieldSep -> T_FieldSep
sem_FieldSep FieldSep
_sep))
sem_Field (NamedField MToken
_key MExpr
_value FieldSep
_sep) =
  (T_MToken -> T_MExpr -> T_FieldSep -> T_Field
sem_Field_NamedField (MToken -> T_MToken
sem_MToken MToken
_key) (MExpr -> T_MExpr
sem_MExpr MExpr
_value) (FieldSep -> T_FieldSep
sem_FieldSep FieldSep
_sep))
sem_Field (UnnamedField MExpr
_value FieldSep
_sep) =
  (T_MExpr -> T_FieldSep -> T_Field
sem_Field_UnnamedField (MExpr -> T_MExpr
sem_MExpr MExpr
_value) (FieldSep -> T_FieldSep
sem_FieldSep FieldSep
_sep))

-- semantic domain
type T_Field = (Field, T_Field_1)
type T_Field_1 =
  LintSettings
  -> (S.Set Token)
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((S.Set Token), (M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_Field = Inh_Field {Inh_Field -> LintSettings
config_Inh_Field :: LintSettings, Inh_Field -> Set Token
fieldNames_Inh_Field :: (S.Set Token), Inh_Field -> String
funcName_Inh_Field :: String, Inh_Field -> Map String [Region]
globalDefinitions_Inh_Field :: (M.Map String [Region]), Inh_Field -> Bool
isInModule_Inh_Field :: Bool, Inh_Field -> Bool
isMeta_Inh_Field :: Bool, Inh_Field -> Int
loopLevel_Inh_Field :: Int, Inh_Field -> Region
mtokenPos_Inh_Field :: Region, Inh_Field -> Int
scopeLevel_Inh_Field :: Int, Inh_Field -> [Map String (Bool, Region)]
scopes_Inh_Field :: ([M.Map String (Bool, Region)]), Inh_Field -> DeterminedVariableStyle
variableStyle_Inh_Field :: DeterminedVariableStyle}
data Syn_Field = Syn_Field {Syn_Field -> Field
copy_Syn_Field :: Field, Syn_Field -> Set Token
fieldNames_Syn_Field :: (S.Set Token), Syn_Field -> Map String [Region]
globalDefinitions_Syn_Field :: (M.Map String [Region]), Syn_Field -> String
identifier_Syn_Field :: String, Syn_Field -> Bool
isInModule_Syn_Field :: Bool, Syn_Field -> Region
mtokenPos_Syn_Field :: Region, Syn_Field -> [Map String (Bool, Region)]
scopes_Syn_Field :: ([M.Map String (Bool, Region)]), Syn_Field -> DeterminedVariableStyle
variableStyle_Syn_Field :: DeterminedVariableStyle, Syn_Field -> [String -> LintMessage]
warnings_Syn_Field :: ([String -> LintMessage])}
wrap_Field
  :: T_Field
  -> Inh_Field
  -> Syn_Field
wrap_Field :: T_Field -> Inh_Field -> Syn_Field
wrap_Field T_Field
sem (Inh_Field LintSettings
_lhsIconfig Set Token
_lhsIfieldNames String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (Field
_lhsOcopy, T_FieldList_1
sem_1) = T_Field
sem
      (Set Token
_lhsOfieldNames, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_FieldList_1
sem_1 LintSettings
_lhsIconfig Set Token
_lhsIfieldNames String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (Field
-> Set Token
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_Field
Syn_Field Field
_lhsOcopy Set Token
_lhsOfieldNames Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_Field_ExprField
  :: T_MExpr
  -> T_MExpr
  -> T_FieldSep
  -> T_Field
sem_Field_ExprField :: T_MExpr -> T_MExpr -> T_FieldSep -> T_Field
sem_Field_ExprField T_MExpr
key_ T_MExpr
value_ T_FieldSep
sep_ =
  ( case (T_FieldSep
sep_) of
      (FieldSep
_sepIcopy, T_Args_1
sep_1) ->
        ( case (T_MExpr
value_) of
            (MExpr
_valueIcopy, Region
_valueImtokenPos, T_MExpr_1
value_1) ->
              ( case (T_MExpr
key_) of
                  (MExpr
_keyIcopy, Region
_keyImtokenPos, T_MExpr_1
key_1) ->
                    ( case ( ( MExpr -> MExpr -> FieldSep -> Field
ExprField MExpr
_keyIcopy MExpr
_valueIcopy FieldSep
_sepIcopy
                             )
                           ) of
                        Field
_copy ->
                          ( case ( ( Field
_copy
                                   )
                                 ) of
                              Field
_lhsOcopy ->
                                ( case ( ( let
                                            sem_Field_ExprField_1 :: T_Field_1
                                            sem_Field_ExprField_1 :: T_FieldList_1
sem_Field_ExprField_1 =
                                              ( \LintSettings
_lhsIconfig
                                                 Set Token
_lhsIfieldNames
                                                 String
_lhsIfuncName
                                                 Map String [Region]
_lhsIglobalDefinitions
                                                 Bool
_lhsIisInModule
                                                 Bool
_lhsIisMeta
                                                 Int
_lhsIloopLevel
                                                 Region
_lhsImtokenPos
                                                 Int
_lhsIscopeLevel
                                                 [Map String (Bool, Region)]
_lhsIscopes
                                                 DeterminedVariableStyle
_lhsIvariableStyle ->
                                                    ( case ( ( Set Token
_lhsIfieldNames
                                                             )
                                                           ) of
                                                        Set Token
_lhsOfieldNames ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_keyOscopes ->
                                                                ( case ( ( Bool
_lhsIisMeta
                                                                         )
                                                                       ) of
                                                                    Bool
_keyOisMeta ->
                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                               )
                                                                             ) of
                                                                          LintSettings
_keyOconfig ->
                                                                            ( case ( ( forall a. Maybe a
Nothing
                                                                                     )
                                                                                   ) of
                                                                                Maybe MToken
_keyOvarBeingDefined ->
                                                                                  ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                           )
                                                                                         ) of
                                                                                      DeterminedVariableStyle
_keyOvariableStyle ->
                                                                                        ( case ( ( Int
_lhsIscopeLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_keyOscopeLevel ->
                                                                                              ( case ( ( Region
_lhsImtokenPos
                                                                                                       )
                                                                                                     ) of
                                                                                                  Region
_keyOmtokenPos ->
                                                                                                    ( case ( ( Int
_lhsIloopLevel
                                                                                                             )
                                                                                                           ) of
                                                                                                        Int
_keyOloopLevel ->
                                                                                                          ( case ( ( Bool
_lhsIisInModule
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_keyOisInModule ->
                                                                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_keyOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_lhsIfuncName
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_keyOfuncName ->
                                                                                                                            ( case ( ( Bool
True
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_keyOtopLevel ->
                                                                                                                                  ( case ( ( Bool
True
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_keyOinParentheses ->
                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_keyOisNegation ->
                                                                                                                                              ( case (T_MExpr_1
key_1 LintSettings
_keyOconfig String
_keyOfuncName Map String [Region]
_keyOglobalDefinitions Bool
_keyOinParentheses Bool
_keyOisInModule Bool
_keyOisMeta Bool
_keyOisNegation Int
_keyOloopLevel Region
_keyOmtokenPos Int
_keyOscopeLevel [Map String (Bool, Region)]
_keyOscopes Bool
_keyOtopLevel Maybe MToken
_keyOvarBeingDefined DeterminedVariableStyle
_keyOvariableStyle) of
                                                                                                                                                  (Map String [Region]
_keyIglobalDefinitions, String
_keyIidentifier, Bool
_keyIisInModule, Bool
_keyIisSimpleExpression, Maybe MToken
_keyIisSingleVar, [Map String (Bool, Region)]
_keyIscopes, DeterminedVariableStyle
_keyIvariableStyle, [String -> LintMessage]
_keyIwarnings) ->
                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_keyIscopes
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [Map String (Bool, Region)]
_valueOscopes ->
                                                                                                                                                          ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_valueOisMeta ->
                                                                                                                                                                ( case ( ( Bool
_keyIisInModule
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Bool
_valueOisInModule ->
                                                                                                                                                                      ( case ( ( Map String [Region]
_keyIglobalDefinitions
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Map String [Region]
_valueOglobalDefinitions ->
                                                                                                                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                LintSettings
_valueOconfig ->
                                                                                                                                                                                  ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Maybe MToken
_valueOvarBeingDefined ->
                                                                                                                                                                                        ( case ( ( DeterminedVariableStyle
_keyIvariableStyle
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            DeterminedVariableStyle
_valueOvariableStyle ->
                                                                                                                                                                                              ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Int
_valueOscopeLevel ->
                                                                                                                                                                                                    ( case ( ( Region
_keyImtokenPos
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Region
_valueOmtokenPos ->
                                                                                                                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Int
_valueOloopLevel ->
                                                                                                                                                                                                                ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    String
_valueOfuncName ->
                                                                                                                                                                                                                      ( case ( ( Bool
True
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Bool
_valueOtopLevel ->
                                                                                                                                                                                                                            ( case ( ( Bool
True
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_valueOinParentheses ->
                                                                                                                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Bool
_valueOisNegation ->
                                                                                                                                                                                                                                        ( case (T_MExpr_1
value_1 LintSettings
_valueOconfig String
_valueOfuncName Map String [Region]
_valueOglobalDefinitions Bool
_valueOinParentheses Bool
_valueOisInModule Bool
_valueOisMeta Bool
_valueOisNegation Int
_valueOloopLevel Region
_valueOmtokenPos Int
_valueOscopeLevel [Map String (Bool, Region)]
_valueOscopes Bool
_valueOtopLevel Maybe MToken
_valueOvarBeingDefined DeterminedVariableStyle
_valueOvariableStyle) of
                                                                                                                                                                                                                                            (Map String [Region]
_valueIglobalDefinitions, String
_valueIidentifier, Bool
_valueIisInModule, Bool
_valueIisSimpleExpression, Maybe MToken
_valueIisSingleVar, [Map String (Bool, Region)]
_valueIscopes, DeterminedVariableStyle
_valueIvariableStyle, [String -> LintMessage]
_valueIwarnings) ->
                                                                                                                                                                                                                                              ( case ( ( Map String [Region]
_valueIglobalDefinitions
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Map String [Region]
_sepOglobalDefinitions ->
                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_valueIvariableStyle
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        DeterminedVariableStyle
_sepOvariableStyle ->
                                                                                                                                                                                                                                                          ( case ( ( [Map String (Bool, Region)]
_valueIscopes
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [Map String (Bool, Region)]
_sepOscopes ->
                                                                                                                                                                                                                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    Int
_sepOscopeLevel ->
                                                                                                                                                                                                                                                                      ( case ( ( Region
_valueImtokenPos
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          Region
_sepOmtokenPos ->
                                                                                                                                                                                                                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                Int
_sepOloopLevel ->
                                                                                                                                                                                                                                                                                  ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      Bool
_sepOisMeta ->
                                                                                                                                                                                                                                                                                        ( case ( ( Bool
_valueIisInModule
                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                            Bool
_sepOisInModule ->
                                                                                                                                                                                                                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                  String
_sepOfuncName ->
                                                                                                                                                                                                                                                                                                    ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                        LintSettings
_sepOconfig ->
                                                                                                                                                                                                                                                                                                          ( case (T_Args_1
sep_1 LintSettings
_sepOconfig String
_sepOfuncName Map String [Region]
_sepOglobalDefinitions Bool
_sepOisInModule Bool
_sepOisMeta Int
_sepOloopLevel Region
_sepOmtokenPos Int
_sepOscopeLevel [Map String (Bool, Region)]
_sepOscopes DeterminedVariableStyle
_sepOvariableStyle) of
                                                                                                                                                                                                                                                                                                              (Map String [Region]
_sepIglobalDefinitions, String
_sepIidentifier, Bool
_sepIisInModule, Region
_sepImtokenPos, [Map String (Bool, Region)]
_sepIscopes, DeterminedVariableStyle
_sepIvariableStyle, [String -> LintMessage]
_sepIwarnings) ->
                                                                                                                                                                                                                                                                                                                ( case ( ( Map String [Region]
_sepIglobalDefinitions
                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_keyIidentifier (forall a b. a -> b -> a
const String
_valueIidentifier String
_sepIidentifier))
                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                                                                                                                                                                            ( case ( ( Bool
_sepIisInModule
                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                                                                                                                  ( case ( ( Region
_keyImtokenPos
                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_sepIscopes
                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                                                                                                              ( case ( ( DeterminedVariableStyle
_sepIvariableStyle
                                                                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                                                                                                    ( case ( ( [String -> LintMessage]
_keyIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_valueIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_sepIwarnings
                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                        [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                                                                                          (Set Token
_lhsOfieldNames, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                           in
                                            T_FieldList_1
sem_Field_ExprField_1
                                         )
                                       ) of
                                    (T_FieldList_1
sem_Field_1) ->
                                      (Field
_lhsOcopy, T_FieldList_1
sem_Field_1)
                                )
                          )
                    )
              )
        )
  )
sem_Field_NamedField
  :: T_MToken
  -> T_MExpr
  -> T_FieldSep
  -> T_Field
sem_Field_NamedField :: T_MToken -> T_MExpr -> T_FieldSep -> T_Field
sem_Field_NamedField T_MToken
key_ T_MExpr
value_ T_FieldSep
sep_ =
  ( case (T_FieldSep
sep_) of
      (FieldSep
_sepIcopy, T_Args_1
sep_1) ->
        ( case (T_MExpr
value_) of
            (MExpr
_valueIcopy, Region
_valueImtokenPos, T_MExpr_1
value_1) ->
              ( case (T_MToken
key_) of
                  (MToken
_keyIcopy, Token
_keyImtok, Region
_keyImtokenPos, T_MToken_1
key_1) ->
                    ( case ( ( MToken -> MExpr -> FieldSep -> Field
NamedField MToken
_keyIcopy MExpr
_valueIcopy FieldSep
_sepIcopy
                             )
                           ) of
                        Field
_copy ->
                          ( case ( ( Field
_copy
                                   )
                                 ) of
                              Field
_lhsOcopy ->
                                ( case ( ( let
                                            sem_Field_NamedField_1 :: T_Field_1
                                            sem_Field_NamedField_1 :: T_FieldList_1
sem_Field_NamedField_1 =
                                              ( \LintSettings
_lhsIconfig
                                                 Set Token
_lhsIfieldNames
                                                 String
_lhsIfuncName
                                                 Map String [Region]
_lhsIglobalDefinitions
                                                 Bool
_lhsIisInModule
                                                 Bool
_lhsIisMeta
                                                 Int
_lhsIloopLevel
                                                 Region
_lhsImtokenPos
                                                 Int
_lhsIscopeLevel
                                                 [Map String (Bool, Region)]
_lhsIscopes
                                                 DeterminedVariableStyle
_lhsIvariableStyle ->
                                                    ( case ( ( forall a. Ord a => a -> Set a -> Set a
S.insert Token
_keyImtok Set Token
_lhsIfieldNames
                                                             )
                                                           ) of
                                                        Set Token
_lhsOfieldNames ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_keyOscopes ->
                                                                ( case ( ( Region
_keyImtokenPos
                                                                         )
                                                                       ) of
                                                                    Region
_mtokenPos ->
                                                                      ( case ( ( Region
_mtokenPos
                                                                               )
                                                                             ) of
                                                                          Region
_keyOmtokenPos ->
                                                                            ( case ( ( Bool
_lhsIisMeta
                                                                                     )
                                                                                   ) of
                                                                                Bool
_keyOisMeta ->
                                                                                  ( case ( ( Bool
_lhsIisInModule
                                                                                           )
                                                                                         ) of
                                                                                      Bool
_keyOisInModule ->
                                                                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_keyOglobalDefinitions ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_keyOfuncName ->
                                                                                                    ( case ( ( LintSettings
_lhsIconfig
                                                                                                             )
                                                                                                           ) of
                                                                                                        LintSettings
_keyOconfig ->
                                                                                                          ( case (T_MToken_1
key_1 LintSettings
_keyOconfig String
_keyOfuncName Map String [Region]
_keyOglobalDefinitions Bool
_keyOisInModule Bool
_keyOisMeta Region
_keyOmtokenPos [Map String (Bool, Region)]
_keyOscopes) of
                                                                                                              (Map String [Region]
_keyIglobalDefinitions, String
_keyIidentifier, Bool
_keyIisInModule, [Map String (Bool, Region)]
_keyIscopes, [String -> LintMessage]
_keyIwarnings) ->
                                                                                                                ( case ( ( [Map String (Bool, Region)]
_keyIscopes
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    [Map String (Bool, Region)]
_valueOscopes ->
                                                                                                                      ( case ( ( Bool
_lhsIisMeta
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_valueOisMeta ->
                                                                                                                            ( case ( ( Bool
_keyIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_valueOisInModule ->
                                                                                                                                  ( case ( ( Map String [Region]
_keyIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_valueOglobalDefinitions ->
                                                                                                                                        ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            LintSettings
_valueOconfig ->
                                                                                                                                              ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Maybe MToken
_valueOvarBeingDefined ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_valueOvariableStyle ->
                                                                                                                                                          ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Int
_valueOscopeLevel ->
                                                                                                                                                                ( case ( ( Region
_mtokenPos
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Region
_valueOmtokenPos ->
                                                                                                                                                                      ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Int
_valueOloopLevel ->
                                                                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                String
_valueOfuncName ->
                                                                                                                                                                                  ( case ( ( Bool
True
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Bool
_valueOtopLevel ->
                                                                                                                                                                                        ( case ( ( Bool
True
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Bool
_valueOinParentheses ->
                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_valueOisNegation ->
                                                                                                                                                                                                    ( case (T_MExpr_1
value_1 LintSettings
_valueOconfig String
_valueOfuncName Map String [Region]
_valueOglobalDefinitions Bool
_valueOinParentheses Bool
_valueOisInModule Bool
_valueOisMeta Bool
_valueOisNegation Int
_valueOloopLevel Region
_valueOmtokenPos Int
_valueOscopeLevel [Map String (Bool, Region)]
_valueOscopes Bool
_valueOtopLevel Maybe MToken
_valueOvarBeingDefined DeterminedVariableStyle
_valueOvariableStyle) of
                                                                                                                                                                                                        (Map String [Region]
_valueIglobalDefinitions, String
_valueIidentifier, Bool
_valueIisInModule, Bool
_valueIisSimpleExpression, Maybe MToken
_valueIisSingleVar, [Map String (Bool, Region)]
_valueIscopes, DeterminedVariableStyle
_valueIvariableStyle, [String -> LintMessage]
_valueIwarnings) ->
                                                                                                                                                                                                          ( case ( ( Map String [Region]
_valueIglobalDefinitions
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Map String [Region]
_sepOglobalDefinitions ->
                                                                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_valueIvariableStyle
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    DeterminedVariableStyle
_sepOvariableStyle ->
                                                                                                                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_valueIscopes
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          [Map String (Bool, Region)]
_sepOscopes ->
                                                                                                                                                                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Int
_sepOscopeLevel ->
                                                                                                                                                                                                                                  ( case ( ( Region
_mtokenPos
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Region
_sepOmtokenPos ->
                                                                                                                                                                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Int
_sepOloopLevel ->
                                                                                                                                                                                                                                              ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Bool
_sepOisMeta ->
                                                                                                                                                                                                                                                    ( case ( ( Bool
_valueIisInModule
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        Bool
_sepOisInModule ->
                                                                                                                                                                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              String
_sepOfuncName ->
                                                                                                                                                                                                                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    LintSettings
_sepOconfig ->
                                                                                                                                                                                                                                                                      ( case (T_Args_1
sep_1 LintSettings
_sepOconfig String
_sepOfuncName Map String [Region]
_sepOglobalDefinitions Bool
_sepOisInModule Bool
_sepOisMeta Int
_sepOloopLevel Region
_sepOmtokenPos Int
_sepOscopeLevel [Map String (Bool, Region)]
_sepOscopes DeterminedVariableStyle
_sepOvariableStyle) of
                                                                                                                                                                                                                                                                          (Map String [Region]
_sepIglobalDefinitions, String
_sepIidentifier, Bool
_sepIisInModule, Region
_sepImtokenPos, [Map String (Bool, Region)]
_sepIscopes, DeterminedVariableStyle
_sepIvariableStyle, [String -> LintMessage]
_sepIwarnings) ->
                                                                                                                                                                                                                                                                            ( case ( ( Map String [Region]
_sepIglobalDefinitions
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                                                                                  ( case ( ( (forall a b. a -> b -> a
const String
_keyIidentifier (forall a b. a -> b -> a
const String
_valueIidentifier String
_sepIidentifier))
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      String
_lhsOidentifier ->
                                                                                                                                                                                                                                                                                        ( case ( ( Bool
_sepIisInModule
                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                            Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                                                                              ( case ( ( Region
_mtokenPos
                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                  Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_sepIscopes
                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                        [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_sepIvariableStyle
                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                              DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                                                                ( case ( ( [String -> LintMessage]
_keyIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_valueIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_sepIwarnings
                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                    [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                                                                      ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_duplicateTableKeys LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Bool -> Bool
not (forall a. Ord a => a -> Set a -> Bool
S.member Token
_keyImtok Set Token
_lhsIfieldNames)
                                                                                                                                                                                                                                                                                                                                  then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                                  else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_keyImtokenPos forall a b. (a -> b) -> a -> b
$ Token -> Issue
DuplicateKeyInTable Token
_keyImtok
                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                          [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                                                                            ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                                                                  (Set Token
_lhsOfieldNames, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                           in
                                            T_FieldList_1
sem_Field_NamedField_1
                                         )
                                       ) of
                                    (T_FieldList_1
sem_Field_1) ->
                                      (Field
_lhsOcopy, T_FieldList_1
sem_Field_1)
                                )
                          )
                    )
              )
        )
  )
sem_Field_UnnamedField
  :: T_MExpr
  -> T_FieldSep
  -> T_Field
sem_Field_UnnamedField :: T_MExpr -> T_FieldSep -> T_Field
sem_Field_UnnamedField T_MExpr
value_ T_FieldSep
sep_ =
  ( case (T_FieldSep
sep_) of
      (FieldSep
_sepIcopy, T_Args_1
sep_1) ->
        ( case (T_MExpr
value_) of
            (MExpr
_valueIcopy, Region
_valueImtokenPos, T_MExpr_1
value_1) ->
              ( case ( ( MExpr -> FieldSep -> Field
UnnamedField MExpr
_valueIcopy FieldSep
_sepIcopy
                       )
                     ) of
                  Field
_copy ->
                    ( case ( ( Field
_copy
                             )
                           ) of
                        Field
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Field_UnnamedField_1 :: T_Field_1
                                      sem_Field_UnnamedField_1 :: T_FieldList_1
sem_Field_UnnamedField_1 =
                                        ( \LintSettings
_lhsIconfig
                                           Set Token
_lhsIfieldNames
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Set Token
_lhsIfieldNames
                                                       )
                                                     ) of
                                                  Set Token
_lhsOfieldNames ->
                                                    ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                             )
                                                           ) of
                                                        [Map String (Bool, Region)]
_valueOscopes ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_valueOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_valueOisInModule ->
                                                                      ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                               )
                                                                             ) of
                                                                          Map String [Region]
_valueOglobalDefinitions ->
                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                     )
                                                                                   ) of
                                                                                LintSettings
_valueOconfig ->
                                                                                  ( case ( ( forall a. Maybe a
Nothing
                                                                                           )
                                                                                         ) of
                                                                                      Maybe MToken
_valueOvarBeingDefined ->
                                                                                        ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                 )
                                                                                               ) of
                                                                                            DeterminedVariableStyle
_valueOvariableStyle ->
                                                                                              ( case ( ( Int
_lhsIscopeLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_valueOscopeLevel ->
                                                                                                    ( case ( ( Region
_lhsImtokenPos
                                                                                                             )
                                                                                                           ) of
                                                                                                        Region
_valueOmtokenPos ->
                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Int
_valueOloopLevel ->
                                                                                                                ( case ( ( String
_lhsIfuncName
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    String
_valueOfuncName ->
                                                                                                                      ( case ( ( Bool
True
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_valueOtopLevel ->
                                                                                                                            ( case ( ( Bool
True
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_valueOinParentheses ->
                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_valueOisNegation ->
                                                                                                                                        ( case (T_MExpr_1
value_1 LintSettings
_valueOconfig String
_valueOfuncName Map String [Region]
_valueOglobalDefinitions Bool
_valueOinParentheses Bool
_valueOisInModule Bool
_valueOisMeta Bool
_valueOisNegation Int
_valueOloopLevel Region
_valueOmtokenPos Int
_valueOscopeLevel [Map String (Bool, Region)]
_valueOscopes Bool
_valueOtopLevel Maybe MToken
_valueOvarBeingDefined DeterminedVariableStyle
_valueOvariableStyle) of
                                                                                                                                            (Map String [Region]
_valueIglobalDefinitions, String
_valueIidentifier, Bool
_valueIisInModule, Bool
_valueIisSimpleExpression, Maybe MToken
_valueIisSingleVar, [Map String (Bool, Region)]
_valueIscopes, DeterminedVariableStyle
_valueIvariableStyle, [String -> LintMessage]
_valueIwarnings) ->
                                                                                                                                              ( case ( ( Map String [Region]
_valueIglobalDefinitions
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Map String [Region]
_sepOglobalDefinitions ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_valueIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_sepOvariableStyle ->
                                                                                                                                                          ( case ( ( [Map String (Bool, Region)]
_valueIscopes
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [Map String (Bool, Region)]
_sepOscopes ->
                                                                                                                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_sepOscopeLevel ->
                                                                                                                                                                      ( case ( ( Region
_valueImtokenPos
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Region
_sepOmtokenPos ->
                                                                                                                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Int
_sepOloopLevel ->
                                                                                                                                                                                  ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Bool
_sepOisMeta ->
                                                                                                                                                                                        ( case ( ( Bool
_valueIisInModule
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Bool
_sepOisInModule ->
                                                                                                                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  String
_sepOfuncName ->
                                                                                                                                                                                                    ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        LintSettings
_sepOconfig ->
                                                                                                                                                                                                          ( case (T_Args_1
sep_1 LintSettings
_sepOconfig String
_sepOfuncName Map String [Region]
_sepOglobalDefinitions Bool
_sepOisInModule Bool
_sepOisMeta Int
_sepOloopLevel Region
_sepOmtokenPos Int
_sepOscopeLevel [Map String (Bool, Region)]
_sepOscopes DeterminedVariableStyle
_sepOvariableStyle) of
                                                                                                                                                                                                              (Map String [Region]
_sepIglobalDefinitions, String
_sepIidentifier, Bool
_sepIisInModule, Region
_sepImtokenPos, [Map String (Bool, Region)]
_sepIscopes, DeterminedVariableStyle
_sepIvariableStyle, [String -> LintMessage]
_sepIwarnings) ->
                                                                                                                                                                                                                ( case ( ( Map String [Region]
_sepIglobalDefinitions
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_valueIidentifier String
_sepIidentifier)
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                                                                            ( case ( ( Bool
_sepIisInModule
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                  ( case ( ( Region
_sepImtokenPos
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_sepIscopes
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                              ( case ( ( DeterminedVariableStyle
_sepIvariableStyle
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                    ( case ( ( [String -> LintMessage]
_valueIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_sepIwarnings
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                          (Set Token
_lhsOfieldNames, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_FieldList_1
sem_Field_UnnamedField_1
                                   )
                                 ) of
                              (T_FieldList_1
sem_Field_1) ->
                                (Field
_lhsOcopy, T_FieldList_1
sem_Field_1)
                          )
                    )
              )
        )
  )

-- FieldList ---------------------------------------------------
-- cata
sem_FieldList
  :: FieldList
  -> T_FieldList
sem_FieldList :: FieldList -> T_FieldList
sem_FieldList FieldList
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_Field -> T_FieldList -> T_FieldList
sem_FieldList_Cons T_FieldList
sem_FieldList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map Field -> T_Field
sem_Field FieldList
list))

-- semantic domain
type T_FieldList = (FieldList, T_FieldList_1)
type T_FieldList_1 =
  LintSettings
  -> (S.Set Token)
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((S.Set Token), (M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_FieldList = Inh_FieldList {Inh_FieldList -> LintSettings
config_Inh_FieldList :: LintSettings, Inh_FieldList -> Set Token
fieldNames_Inh_FieldList :: (S.Set Token), Inh_FieldList -> String
funcName_Inh_FieldList :: String, Inh_FieldList -> Map String [Region]
globalDefinitions_Inh_FieldList :: (M.Map String [Region]), Inh_FieldList -> Bool
isInModule_Inh_FieldList :: Bool, Inh_FieldList -> Bool
isMeta_Inh_FieldList :: Bool, Inh_FieldList -> Int
loopLevel_Inh_FieldList :: Int, Inh_FieldList -> Region
mtokenPos_Inh_FieldList :: Region, Inh_FieldList -> Int
scopeLevel_Inh_FieldList :: Int, Inh_FieldList -> [Map String (Bool, Region)]
scopes_Inh_FieldList :: ([M.Map String (Bool, Region)]), Inh_FieldList -> DeterminedVariableStyle
variableStyle_Inh_FieldList :: DeterminedVariableStyle}
data Syn_FieldList = Syn_FieldList {Syn_FieldList -> FieldList
copy_Syn_FieldList :: FieldList, Syn_FieldList -> Set Token
fieldNames_Syn_FieldList :: (S.Set Token), Syn_FieldList -> Map String [Region]
globalDefinitions_Syn_FieldList :: (M.Map String [Region]), Syn_FieldList -> String
identifier_Syn_FieldList :: String, Syn_FieldList -> Bool
isInModule_Syn_FieldList :: Bool, Syn_FieldList -> Region
mtokenPos_Syn_FieldList :: Region, Syn_FieldList -> [Map String (Bool, Region)]
scopes_Syn_FieldList :: ([M.Map String (Bool, Region)]), Syn_FieldList -> DeterminedVariableStyle
variableStyle_Syn_FieldList :: DeterminedVariableStyle, Syn_FieldList -> [String -> LintMessage]
warnings_Syn_FieldList :: ([String -> LintMessage])}
wrap_FieldList
  :: T_FieldList
  -> Inh_FieldList
  -> Syn_FieldList
wrap_FieldList :: T_FieldList -> Inh_FieldList -> Syn_FieldList
wrap_FieldList T_FieldList
sem (Inh_FieldList LintSettings
_lhsIconfig Set Token
_lhsIfieldNames String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (FieldList
_lhsOcopy, T_FieldList_1
sem_1) = T_FieldList
sem
      (Set Token
_lhsOfieldNames, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_FieldList_1
sem_1 LintSettings
_lhsIconfig Set Token
_lhsIfieldNames String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (FieldList
-> Set Token
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_FieldList
Syn_FieldList FieldList
_lhsOcopy Set Token
_lhsOfieldNames Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_FieldList_Cons
  :: T_Field
  -> T_FieldList
  -> T_FieldList
sem_FieldList_Cons :: T_Field -> T_FieldList -> T_FieldList
sem_FieldList_Cons T_Field
hd_ T_FieldList
tl_ =
  ( case (T_FieldList
tl_) of
      (FieldList
_tlIcopy, T_FieldList_1
tl_1) ->
        ( case (T_Field
hd_) of
            (Field
_hdIcopy, T_FieldList_1
hd_1) ->
              ( case ( ( (:) Field
_hdIcopy FieldList
_tlIcopy
                       )
                     ) of
                  FieldList
_copy ->
                    ( case ( ( FieldList
_copy
                             )
                           ) of
                        FieldList
_lhsOcopy ->
                          ( case ( ( let
                                      sem_FieldList_Cons_1 :: T_FieldList_1
                                      sem_FieldList_Cons_1 :: T_FieldList_1
sem_FieldList_Cons_1 =
                                        ( \LintSettings
_lhsIconfig
                                           Set Token
_lhsIfieldNames
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Set Token
_lhsIfieldNames
                                                       )
                                                     ) of
                                                  Set Token
_hdOfieldNames ->
                                                    ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                             )
                                                           ) of
                                                        DeterminedVariableStyle
_hdOvariableStyle ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_hdOscopes ->
                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                         )
                                                                       ) of
                                                                    Int
_hdOscopeLevel ->
                                                                      ( case ( ( Region
_lhsImtokenPos
                                                                               )
                                                                             ) of
                                                                          Region
_hdOmtokenPos ->
                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_hdOloopLevel ->
                                                                                  ( case ( ( Bool
_lhsIisMeta
                                                                                           )
                                                                                         ) of
                                                                                      Bool
_hdOisMeta ->
                                                                                        ( case ( ( Bool
_lhsIisInModule
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_hdOisInModule ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_hdOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_hdOfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_hdOconfig ->
                                                                                                                ( case (T_FieldList_1
hd_1 LintSettings
_hdOconfig Set Token
_hdOfieldNames String
_hdOfuncName Map String [Region]
_hdOglobalDefinitions Bool
_hdOisInModule Bool
_hdOisMeta Int
_hdOloopLevel Region
_hdOmtokenPos Int
_hdOscopeLevel [Map String (Bool, Region)]
_hdOscopes DeterminedVariableStyle
_hdOvariableStyle) of
                                                                                                                    (Set Token
_hdIfieldNames, Map String [Region]
_hdIglobalDefinitions, String
_hdIidentifier, Bool
_hdIisInModule, Region
_hdImtokenPos, [Map String (Bool, Region)]
_hdIscopes, DeterminedVariableStyle
_hdIvariableStyle, [String -> LintMessage]
_hdIwarnings) ->
                                                                                                                      ( case ( ( Set Token
_hdIfieldNames
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Set Token
_tlOfieldNames ->
                                                                                                                            ( case ( ( DeterminedVariableStyle
_hdIvariableStyle
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                DeterminedVariableStyle
_tlOvariableStyle ->
                                                                                                                                  ( case ( ( [Map String (Bool, Region)]
_hdIscopes
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      [Map String (Bool, Region)]
_tlOscopes ->
                                                                                                                                        ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Int
_tlOscopeLevel ->
                                                                                                                                              ( case ( ( Region
_hdImtokenPos
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Region
_tlOmtokenPos ->
                                                                                                                                                    ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Int
_tlOloopLevel ->
                                                                                                                                                          ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_tlOisMeta ->
                                                                                                                                                                ( case ( ( Bool
_hdIisInModule
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Bool
_tlOisInModule ->
                                                                                                                                                                      ( case ( ( Map String [Region]
_hdIglobalDefinitions
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Map String [Region]
_tlOglobalDefinitions ->
                                                                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                String
_tlOfuncName ->
                                                                                                                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      LintSettings
_tlOconfig ->
                                                                                                                                                                                        ( case (T_FieldList_1
tl_1 LintSettings
_tlOconfig Set Token
_tlOfieldNames String
_tlOfuncName Map String [Region]
_tlOglobalDefinitions Bool
_tlOisInModule Bool
_tlOisMeta Int
_tlOloopLevel Region
_tlOmtokenPos Int
_tlOscopeLevel [Map String (Bool, Region)]
_tlOscopes DeterminedVariableStyle
_tlOvariableStyle) of
                                                                                                                                                                                            (Set Token
_tlIfieldNames, Map String [Region]
_tlIglobalDefinitions, String
_tlIidentifier, Bool
_tlIisInModule, Region
_tlImtokenPos, [Map String (Bool, Region)]
_tlIscopes, DeterminedVariableStyle
_tlIvariableStyle, [String -> LintMessage]
_tlIwarnings) ->
                                                                                                                                                                                              ( case ( ( Set Token
_tlIfieldNames
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Set Token
_lhsOfieldNames ->
                                                                                                                                                                                                    ( case ( ( Map String [Region]
_tlIglobalDefinitions
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                          ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              String
_lhsOidentifier ->
                                                                                                                                                                                                                ( case ( ( Bool
_tlIisInModule
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Bool
_lhsOisInModule ->
                                                                                                                                                                                                                      ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_tlIscopes
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                  ( case ( ( DeterminedVariableStyle
_tlIvariableStyle
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                        ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                              (Set Token
_lhsOfieldNames, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_FieldList_1
sem_FieldList_Cons_1
                                   )
                                 ) of
                              (T_FieldList_1
sem_FieldList_1) ->
                                (FieldList
_lhsOcopy, T_FieldList_1
sem_FieldList_1)
                          )
                    )
              )
        )
  )
sem_FieldList_Nil :: T_FieldList
sem_FieldList_Nil :: T_FieldList
sem_FieldList_Nil =
  ( case ( ( []
           )
         ) of
      FieldList
_copy ->
        ( case ( ( FieldList
_copy
                 )
               ) of
            FieldList
_lhsOcopy ->
              ( case ( ( let
                          sem_FieldList_Nil_1 :: T_FieldList_1
                          sem_FieldList_Nil_1 :: T_FieldList_1
sem_FieldList_Nil_1 =
                            ( \LintSettings
_lhsIconfig
                               Set Token
_lhsIfieldNames
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Set Token
_lhsIfieldNames
                                           )
                                         ) of
                                      Set Token
_lhsOfieldNames ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_lhsOglobalDefinitions ->
                                              ( case ( ( String
unknownIdentifier
                                                       )
                                                     ) of
                                                  String
_lhsOidentifier ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_lhsOisInModule ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Set Token
_lhsOfieldNames, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_FieldList_1
sem_FieldList_Nil_1
                       )
                     ) of
                  (T_FieldList_1
sem_FieldList_1) ->
                    (FieldList
_lhsOcopy, T_FieldList_1
sem_FieldList_1)
              )
        )
  )

-- FieldSep ----------------------------------------------------
-- cata
sem_FieldSep
  :: FieldSep
  -> T_FieldSep
sem_FieldSep :: FieldSep -> T_FieldSep
sem_FieldSep (FieldSep
CommaSep) =
  (T_FieldSep
sem_FieldSep_CommaSep)
sem_FieldSep (FieldSep
SemicolonSep) =
  (T_FieldSep
sem_FieldSep_SemicolonSep)
sem_FieldSep (FieldSep
NoSep) =
  (T_FieldSep
sem_FieldSep_NoSep)

-- semantic domain
type T_FieldSep = (FieldSep, T_FieldSep_1)
type T_FieldSep_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_FieldSep = Inh_FieldSep {Inh_FieldSep -> LintSettings
config_Inh_FieldSep :: LintSettings, Inh_FieldSep -> String
funcName_Inh_FieldSep :: String, Inh_FieldSep -> Map String [Region]
globalDefinitions_Inh_FieldSep :: (M.Map String [Region]), Inh_FieldSep -> Bool
isInModule_Inh_FieldSep :: Bool, Inh_FieldSep -> Bool
isMeta_Inh_FieldSep :: Bool, Inh_FieldSep -> Int
loopLevel_Inh_FieldSep :: Int, Inh_FieldSep -> Region
mtokenPos_Inh_FieldSep :: Region, Inh_FieldSep -> Int
scopeLevel_Inh_FieldSep :: Int, Inh_FieldSep -> [Map String (Bool, Region)]
scopes_Inh_FieldSep :: ([M.Map String (Bool, Region)]), Inh_FieldSep -> DeterminedVariableStyle
variableStyle_Inh_FieldSep :: DeterminedVariableStyle}
data Syn_FieldSep = Syn_FieldSep {Syn_FieldSep -> FieldSep
copy_Syn_FieldSep :: FieldSep, Syn_FieldSep -> Map String [Region]
globalDefinitions_Syn_FieldSep :: (M.Map String [Region]), Syn_FieldSep -> String
identifier_Syn_FieldSep :: String, Syn_FieldSep -> Bool
isInModule_Syn_FieldSep :: Bool, Syn_FieldSep -> Region
mtokenPos_Syn_FieldSep :: Region, Syn_FieldSep -> [Map String (Bool, Region)]
scopes_Syn_FieldSep :: ([M.Map String (Bool, Region)]), Syn_FieldSep -> DeterminedVariableStyle
variableStyle_Syn_FieldSep :: DeterminedVariableStyle, Syn_FieldSep -> [String -> LintMessage]
warnings_Syn_FieldSep :: ([String -> LintMessage])}
wrap_FieldSep
  :: T_FieldSep
  -> Inh_FieldSep
  -> Syn_FieldSep
wrap_FieldSep :: T_FieldSep -> Inh_FieldSep -> Syn_FieldSep
wrap_FieldSep T_FieldSep
sem (Inh_FieldSep LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (FieldSep
_lhsOcopy, T_Args_1
sem_1) = T_FieldSep
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Args_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (FieldSep
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_FieldSep
Syn_FieldSep FieldSep
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_FieldSep_CommaSep :: T_FieldSep
sem_FieldSep_CommaSep :: T_FieldSep
sem_FieldSep_CommaSep =
  ( case ( ( FieldSep
CommaSep
           )
         ) of
      FieldSep
_copy ->
        ( case ( ( FieldSep
_copy
                 )
               ) of
            FieldSep
_lhsOcopy ->
              ( case ( ( let
                          sem_FieldSep_CommaSep_1 :: T_FieldSep_1
                          sem_FieldSep_CommaSep_1 :: T_Args_1
sem_FieldSep_CommaSep_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_FieldSep_CommaSep_1
                       )
                     ) of
                  (T_Args_1
sem_FieldSep_1) ->
                    (FieldSep
_lhsOcopy, T_Args_1
sem_FieldSep_1)
              )
        )
  )
sem_FieldSep_SemicolonSep :: T_FieldSep
sem_FieldSep_SemicolonSep :: T_FieldSep
sem_FieldSep_SemicolonSep =
  ( case ( ( FieldSep
SemicolonSep
           )
         ) of
      FieldSep
_copy ->
        ( case ( ( FieldSep
_copy
                 )
               ) of
            FieldSep
_lhsOcopy ->
              ( case ( ( let
                          sem_FieldSep_SemicolonSep_1 :: T_FieldSep_1
                          sem_FieldSep_SemicolonSep_1 :: T_Args_1
sem_FieldSep_SemicolonSep_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_FieldSep_SemicolonSep_1
                       )
                     ) of
                  (T_Args_1
sem_FieldSep_1) ->
                    (FieldSep
_lhsOcopy, T_Args_1
sem_FieldSep_1)
              )
        )
  )
sem_FieldSep_NoSep :: T_FieldSep
sem_FieldSep_NoSep :: T_FieldSep
sem_FieldSep_NoSep =
  ( case ( ( FieldSep
NoSep
           )
         ) of
      FieldSep
_copy ->
        ( case ( ( FieldSep
_copy
                 )
               ) of
            FieldSep
_lhsOcopy ->
              ( case ( ( let
                          sem_FieldSep_NoSep_1 :: T_FieldSep_1
                          sem_FieldSep_NoSep_1 :: T_Args_1
sem_FieldSep_NoSep_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Args_1
sem_FieldSep_NoSep_1
                       )
                     ) of
                  (T_Args_1
sem_FieldSep_1) ->
                    (FieldSep
_lhsOcopy, T_Args_1
sem_FieldSep_1)
              )
        )
  )

-- FuncName ----------------------------------------------------
-- cata
sem_FuncName
  :: FuncName
  -> T_FuncName
sem_FuncName :: FuncName -> T_FuncName
sem_FuncName (FuncName [MToken]
_names Maybe MToken
_meta) =
  ([MToken] -> Maybe MToken -> T_FuncName
sem_FuncName_FuncName [MToken]
_names Maybe MToken
_meta)

-- semantic domain
type T_FuncName = (FuncName, Bool, T_FuncName_1)
type T_FuncName_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), Bool, String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_FuncName = Inh_FuncName {Inh_FuncName -> LintSettings
config_Inh_FuncName :: LintSettings, Inh_FuncName -> String
funcName_Inh_FuncName :: String, Inh_FuncName -> Map String [Region]
globalDefinitions_Inh_FuncName :: (M.Map String [Region]), Inh_FuncName -> Bool
isInModule_Inh_FuncName :: Bool, Inh_FuncName -> Bool
isMeta_Inh_FuncName :: Bool, Inh_FuncName -> Int
loopLevel_Inh_FuncName :: Int, Inh_FuncName -> Region
mtokenPos_Inh_FuncName :: Region, Inh_FuncName -> Int
scopeLevel_Inh_FuncName :: Int, Inh_FuncName -> [Map String (Bool, Region)]
scopes_Inh_FuncName :: ([M.Map String (Bool, Region)]), Inh_FuncName -> DeterminedVariableStyle
variableStyle_Inh_FuncName :: DeterminedVariableStyle}
data Syn_FuncName = Syn_FuncName {Syn_FuncName -> FuncName
copy_Syn_FuncName :: FuncName, Syn_FuncName -> Map String [Region]
globalDefinitions_Syn_FuncName :: (M.Map String [Region]), Syn_FuncName -> Bool
hasSuffixes_Syn_FuncName :: Bool, Syn_FuncName -> String
identifier_Syn_FuncName :: String, Syn_FuncName -> Bool
isInModule_Syn_FuncName :: Bool, Syn_FuncName -> Bool
isMeta_Syn_FuncName :: Bool, Syn_FuncName -> Region
mtokenPos_Syn_FuncName :: Region, Syn_FuncName -> [Map String (Bool, Region)]
scopes_Syn_FuncName :: ([M.Map String (Bool, Region)]), Syn_FuncName -> DeterminedVariableStyle
variableStyle_Syn_FuncName :: DeterminedVariableStyle, Syn_FuncName -> [String -> LintMessage]
warnings_Syn_FuncName :: ([String -> LintMessage])}
wrap_FuncName
  :: T_FuncName
  -> Inh_FuncName
  -> Syn_FuncName
wrap_FuncName :: T_FuncName -> Inh_FuncName -> Syn_FuncName
wrap_FuncName T_FuncName
sem (Inh_FuncName LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (FuncName
_lhsOcopy, Bool
_lhsOisMeta, T_FuncName_1
sem_1) = T_FuncName
sem
      (Map String [Region]
_lhsOglobalDefinitions, Bool
_lhsOhasSuffixes, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_FuncName_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (FuncName
-> Map String [Region]
-> Bool
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_FuncName
Syn_FuncName FuncName
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions Bool
_lhsOhasSuffixes String
_lhsOidentifier Bool
_lhsOisInModule Bool
_lhsOisMeta Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_FuncName_FuncName
  :: ([MToken])
  -> (Maybe MToken)
  -> T_FuncName
sem_FuncName_FuncName :: [MToken] -> Maybe MToken -> T_FuncName
sem_FuncName_FuncName [MToken]
names_ Maybe MToken
meta_ =
  ( case ( ( [MToken] -> Maybe MToken -> FuncName
FuncName [MToken]
names_ Maybe MToken
meta_
           )
         ) of
      FuncName
_copy ->
        ( case ( ( FuncName
_copy
                 )
               ) of
            FuncName
_lhsOcopy ->
              ( case ( ( forall a. Maybe a -> Bool
isJust Maybe MToken
meta_
                       )
                     ) of
                  Bool
_lhsOisMeta ->
                    ( case ( ( let
                                sem_FuncName_FuncName_1 :: T_FuncName_1
                                sem_FuncName_FuncName_1 :: T_FuncName_1
sem_FuncName_FuncName_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_lhsOglobalDefinitions ->
                                              ( case ( ( forall (t :: * -> *) a. Foldable t => t a -> Int
length [MToken]
names_ forall a. Ord a => a -> a -> Bool
> Int
1
                                                       )
                                                     ) of
                                                  Bool
_lhsOhasSuffixes ->
                                                    ( case ( ( MToken -> String
tokenLabel forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. [a] -> a
head forall a b. (a -> b) -> a -> b
$ [MToken]
names_
                                                             )
                                                           ) of
                                                        String
_lhsOidentifier ->
                                                          ( case ( ( Bool
_lhsIisInModule
                                                                   )
                                                                 ) of
                                                              Bool
_lhsOisInModule ->
                                                                ( case ( ( MToken -> Region
mpos (forall a. [a] -> a
head [MToken]
names_)
                                                                         )
                                                                       ) of
                                                                    Region
_lhsOmtokenPos ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                  ( case ( ( []
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                        (Map String [Region]
_lhsOglobalDefinitions, Bool
_lhsOhasSuffixes, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_FuncName_1
sem_FuncName_FuncName_1
                             )
                           ) of
                        (T_FuncName_1
sem_FuncName_1) ->
                          (FuncName
_lhsOcopy, Bool
_lhsOisMeta, T_FuncName_1
sem_FuncName_1)
                    )
              )
        )
  )

-- MElse -------------------------------------------------------
-- cata
sem_MElse
  :: MElse
  -> T_MElse
sem_MElse :: MElse -> T_MElse
sem_MElse (MElse Region
_pos Block
_body) =
  (T_Region -> T_Block -> T_MElse
sem_MElse_MElse (Region -> T_Region
sem_Region Region
_pos) (Block -> T_Block
sem_Block Block
_body))

-- semantic domain
type T_MElse = (MElse, T_MElse_1)
type T_MElse_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> (Bool, (M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), Int, DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_MElse = Inh_MElse {Inh_MElse -> LintSettings
config_Inh_MElse :: LintSettings, Inh_MElse -> String
funcName_Inh_MElse :: String, Inh_MElse -> Map String [Region]
globalDefinitions_Inh_MElse :: (M.Map String [Region]), Inh_MElse -> Bool
isInModule_Inh_MElse :: Bool, Inh_MElse -> Bool
isMeta_Inh_MElse :: Bool, Inh_MElse -> Int
loopLevel_Inh_MElse :: Int, Inh_MElse -> Region
mtokenPos_Inh_MElse :: Region, Inh_MElse -> Int
scopeLevel_Inh_MElse :: Int, Inh_MElse -> [Map String (Bool, Region)]
scopes_Inh_MElse :: ([M.Map String (Bool, Region)]), Inh_MElse -> DeterminedVariableStyle
variableStyle_Inh_MElse :: DeterminedVariableStyle}
data Syn_MElse = Syn_MElse {Syn_MElse -> MElse
copy_Syn_MElse :: MElse, Syn_MElse -> Bool
elseExists_Syn_MElse :: Bool, Syn_MElse -> Map String [Region]
globalDefinitions_Syn_MElse :: (M.Map String [Region]), Syn_MElse -> String
identifier_Syn_MElse :: String, Syn_MElse -> Bool
isInModule_Syn_MElse :: Bool, Syn_MElse -> Region
mtokenPos_Syn_MElse :: Region, Syn_MElse -> [Map String (Bool, Region)]
scopes_Syn_MElse :: ([M.Map String (Bool, Region)]), Syn_MElse -> Int
statementCount_Syn_MElse :: Int, Syn_MElse -> DeterminedVariableStyle
variableStyle_Syn_MElse :: DeterminedVariableStyle, Syn_MElse -> [String -> LintMessage]
warnings_Syn_MElse :: ([String -> LintMessage])}
wrap_MElse
  :: T_MElse
  -> Inh_MElse
  -> Syn_MElse
wrap_MElse :: T_MElse -> Inh_MElse -> Syn_MElse
wrap_MElse T_MElse
sem (Inh_MElse LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (MElse
_lhsOcopy, T_MElse_1
sem_1) = T_MElse
sem
      (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_MElse_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (MElse
-> Bool
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> Int
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_MElse
Syn_MElse MElse
_lhsOcopy Bool
_lhsOelseExists Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes Int
_lhsOstatementCount DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_MElse_MElse
  :: T_Region
  -> T_Block
  -> T_MElse
sem_MElse_MElse :: T_Region -> T_Block -> T_MElse
sem_MElse_MElse T_Region
pos_ T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case (T_Region
pos_) of
            (Region
_posIcopy, String
_posIidentifier, [String -> LintMessage]
_posIwarnings) ->
              ( case ( ( Region -> Block -> MElse
MElse Region
_posIcopy Block
_bodyIcopy
                       )
                     ) of
                  MElse
_copy ->
                    ( case ( ( MElse
_copy
                             )
                           ) of
                        MElse
_lhsOcopy ->
                          ( case ( ( let
                                      sem_MElse_MElse_1 :: T_MElse_1
                                      sem_MElse_MElse_1 :: T_MElse_1
sem_MElse_MElse_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
False
                                                       )
                                                     ) of
                                                  Bool
_lhsOelseExists ->
                                                    ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                             )
                                                           ) of
                                                        [Map String (Bool, Region)]
_bodyOscopes ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_bodyOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_bodyOisInModule ->
                                                                      ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                               )
                                                                             ) of
                                                                          Map String [Region]
_bodyOglobalDefinitions ->
                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                     )
                                                                                   ) of
                                                                                LintSettings
_bodyOconfig ->
                                                                                  ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                           )
                                                                                         ) of
                                                                                      DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                        ( case ( ( Int
_lhsIscopeLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_bodyOscopeLevel ->
                                                                                              ( case ( ( Region
_lhsImtokenPos
                                                                                                       )
                                                                                                     ) of
                                                                                                  Region
_bodyOmtokenPos ->
                                                                                                    ( case ( ( Int
_lhsIloopLevel
                                                                                                             )
                                                                                                           ) of
                                                                                                        Int
_bodyOloopLevel ->
                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              String
_bodyOfuncName ->
                                                                                                                ( case ( ( Bool
False
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_bodyOisRepeat ->
                                                                                                                      ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                          (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                            ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                  ( case ( ( (forall a b. a -> b -> a
const String
_posIidentifier String
_bodyIidentifier)
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      String
_lhsOidentifier ->
                                                                                                                                        ( case ( ( Bool
_bodyIisInModule
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_lhsOisInModule ->
                                                                                                                                              ( case ( ( Region
_posIcopy
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Region
_lhsOmtokenPos ->
                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                          ( case ( ( Int
_bodyIstatementCount
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Int
_lhsOstatementCount ->
                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                      ( case ( ( [String -> LintMessage]
_posIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                            (Bool
_lhsOelseExists, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_MElse_1
sem_MElse_MElse_1
                                   )
                                 ) of
                              (T_MElse_1
sem_MElse_1) ->
                                (MElse
_lhsOcopy, T_MElse_1
sem_MElse_1)
                          )
                    )
              )
        )
  )

-- MElseIf -----------------------------------------------------
-- cata
sem_MElseIf
  :: MElseIf
  -> T_MElseIf
sem_MElseIf :: MElseIf -> T_MElseIf
sem_MElseIf (MElseIf Region
_pos ElseIf
_elif) =
  (T_Region -> T_ElseIf -> T_MElseIf
sem_MElseIf_MElseIf (Region -> T_Region
sem_Region Region
_pos) (ElseIf -> T_ElseIf
sem_ElseIf ElseIf
_elif))

-- semantic domain
type T_MElseIf = (MElseIf, T_MElseIf_1)
type T_MElseIf_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_MElseIf = Inh_MElseIf {Inh_MElseIf -> LintSettings
config_Inh_MElseIf :: LintSettings, Inh_MElseIf -> String
funcName_Inh_MElseIf :: String, Inh_MElseIf -> Map String [Region]
globalDefinitions_Inh_MElseIf :: (M.Map String [Region]), Inh_MElseIf -> Bool
isInModule_Inh_MElseIf :: Bool, Inh_MElseIf -> Bool
isMeta_Inh_MElseIf :: Bool, Inh_MElseIf -> Int
loopLevel_Inh_MElseIf :: Int, Inh_MElseIf -> Region
mtokenPos_Inh_MElseIf :: Region, Inh_MElseIf -> Int
scopeLevel_Inh_MElseIf :: Int, Inh_MElseIf -> [Map String (Bool, Region)]
scopes_Inh_MElseIf :: ([M.Map String (Bool, Region)]), Inh_MElseIf -> DeterminedVariableStyle
variableStyle_Inh_MElseIf :: DeterminedVariableStyle}
data Syn_MElseIf = Syn_MElseIf {Syn_MElseIf -> MElseIf
copy_Syn_MElseIf :: MElseIf, Syn_MElseIf -> Map String [Region]
globalDefinitions_Syn_MElseIf :: (M.Map String [Region]), Syn_MElseIf -> String
identifier_Syn_MElseIf :: String, Syn_MElseIf -> Bool
isInModule_Syn_MElseIf :: Bool, Syn_MElseIf -> Region
mtokenPos_Syn_MElseIf :: Region, Syn_MElseIf -> [Map String (Bool, Region)]
scopes_Syn_MElseIf :: ([M.Map String (Bool, Region)]), Syn_MElseIf -> DeterminedVariableStyle
variableStyle_Syn_MElseIf :: DeterminedVariableStyle, Syn_MElseIf -> [String -> LintMessage]
warnings_Syn_MElseIf :: ([String -> LintMessage])}
wrap_MElseIf
  :: T_MElseIf
  -> Inh_MElseIf
  -> Syn_MElseIf
wrap_MElseIf :: T_MElseIf -> Inh_MElseIf -> Syn_MElseIf
wrap_MElseIf T_MElseIf
sem (Inh_MElseIf LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (MElseIf
_lhsOcopy, T_Args_1
sem_1) = T_MElseIf
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Args_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (MElseIf
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_MElseIf
Syn_MElseIf MElseIf
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_MElseIf_MElseIf
  :: T_Region
  -> T_ElseIf
  -> T_MElseIf
sem_MElseIf_MElseIf :: T_Region -> T_ElseIf -> T_MElseIf
sem_MElseIf_MElseIf T_Region
pos_ T_ElseIf
elif_ =
  ( case (T_ElseIf
elif_) of
      (ElseIf
_elifIcopy, T_Args_1
elif_1) ->
        ( case (T_Region
pos_) of
            (Region
_posIcopy, String
_posIidentifier, [String -> LintMessage]
_posIwarnings) ->
              ( case ( ( Region -> ElseIf -> MElseIf
MElseIf Region
_posIcopy ElseIf
_elifIcopy
                       )
                     ) of
                  MElseIf
_copy ->
                    ( case ( ( MElseIf
_copy
                             )
                           ) of
                        MElseIf
_lhsOcopy ->
                          ( case ( ( let
                                      sem_MElseIf_MElseIf_1 :: T_MElseIf_1
                                      sem_MElseIf_MElseIf_1 :: T_Args_1
sem_MElseIf_MElseIf_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_elifOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_elifOisMeta ->
                                                          ( case ( ( Bool
_lhsIisInModule
                                                                   )
                                                                 ) of
                                                              Bool
_elifOisInModule ->
                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                         )
                                                                       ) of
                                                                    Map String [Region]
_elifOglobalDefinitions ->
                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                               )
                                                                             ) of
                                                                          LintSettings
_elifOconfig ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_elifOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_elifOscopeLevel ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_elifOloopLevel ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_elifOfuncName ->
                                                                                                    ( case ( ( Region
_posIcopy
                                                                                                             )
                                                                                                           ) of
                                                                                                        Region
_elifOmtokenPos ->
                                                                                                          ( case (T_Args_1
elif_1 LintSettings
_elifOconfig String
_elifOfuncName Map String [Region]
_elifOglobalDefinitions Bool
_elifOisInModule Bool
_elifOisMeta Int
_elifOloopLevel Region
_elifOmtokenPos Int
_elifOscopeLevel [Map String (Bool, Region)]
_elifOscopes DeterminedVariableStyle
_elifOvariableStyle) of
                                                                                                              (Map String [Region]
_elifIglobalDefinitions, String
_elifIidentifier, Bool
_elifIisInModule, Region
_elifImtokenPos, [Map String (Bool, Region)]
_elifIscopes, DeterminedVariableStyle
_elifIvariableStyle, [String -> LintMessage]
_elifIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_elifIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_posIidentifier String
_elifIidentifier)
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
_elifIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                  ( case ( ( Region
_elifImtokenPos
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_elifIscopes
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_elifIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                    ( case ( ( [String -> LintMessage]
_posIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_elifIwarnings
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                          (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_Args_1
sem_MElseIf_MElseIf_1
                                   )
                                 ) of
                              (T_Args_1
sem_MElseIf_1) ->
                                (MElseIf
_lhsOcopy, T_Args_1
sem_MElseIf_1)
                          )
                    )
              )
        )
  )

-- MExpr -------------------------------------------------------
-- cata
sem_MExpr
  :: MExpr
  -> T_MExpr
sem_MExpr :: MExpr -> T_MExpr
sem_MExpr (MExpr Region
_pos Expr
_expr) =
  (T_Region -> T_Expr -> T_MExpr
sem_MExpr_MExpr (Region -> T_Region
sem_Region Region
_pos) (Expr -> T_Expr
sem_Expr Expr
_expr))

-- semantic domain
type T_MExpr = (MExpr, Region, T_MExpr_1)
type T_MExpr_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> Bool
  -> (Maybe MToken)
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, (Maybe MToken), ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_MExpr = Inh_MExpr {Inh_MExpr -> LintSettings
config_Inh_MExpr :: LintSettings, Inh_MExpr -> String
funcName_Inh_MExpr :: String, Inh_MExpr -> Map String [Region]
globalDefinitions_Inh_MExpr :: (M.Map String [Region]), Inh_MExpr -> Bool
inParentheses_Inh_MExpr :: Bool, Inh_MExpr -> Bool
isInModule_Inh_MExpr :: Bool, Inh_MExpr -> Bool
isMeta_Inh_MExpr :: Bool, Inh_MExpr -> Bool
isNegation_Inh_MExpr :: Bool, Inh_MExpr -> Int
loopLevel_Inh_MExpr :: Int, Inh_MExpr -> Region
mtokenPos_Inh_MExpr :: Region, Inh_MExpr -> Int
scopeLevel_Inh_MExpr :: Int, Inh_MExpr -> [Map String (Bool, Region)]
scopes_Inh_MExpr :: ([M.Map String (Bool, Region)]), Inh_MExpr -> Bool
topLevel_Inh_MExpr :: Bool, Inh_MExpr -> Maybe MToken
varBeingDefined_Inh_MExpr :: (Maybe MToken), Inh_MExpr -> DeterminedVariableStyle
variableStyle_Inh_MExpr :: DeterminedVariableStyle}
data Syn_MExpr = Syn_MExpr {Syn_MExpr -> MExpr
copy_Syn_MExpr :: MExpr, Syn_MExpr -> Map String [Region]
globalDefinitions_Syn_MExpr :: (M.Map String [Region]), Syn_MExpr -> String
identifier_Syn_MExpr :: String, Syn_MExpr -> Bool
isInModule_Syn_MExpr :: Bool, Syn_MExpr -> Bool
isSimpleExpression_Syn_MExpr :: Bool, Syn_MExpr -> Maybe MToken
isSingleVar_Syn_MExpr :: (Maybe MToken), Syn_MExpr -> Region
mtokenPos_Syn_MExpr :: Region, Syn_MExpr -> [Map String (Bool, Region)]
scopes_Syn_MExpr :: ([M.Map String (Bool, Region)]), Syn_MExpr -> DeterminedVariableStyle
variableStyle_Syn_MExpr :: DeterminedVariableStyle, Syn_MExpr -> [String -> LintMessage]
warnings_Syn_MExpr :: ([String -> LintMessage])}
wrap_MExpr
  :: T_MExpr
  -> Inh_MExpr
  -> Syn_MExpr
wrap_MExpr :: T_MExpr -> Inh_MExpr -> Syn_MExpr
wrap_MExpr T_MExpr
sem (Inh_MExpr LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (MExpr
_lhsOcopy, Region
_lhsOmtokenPos, T_MExpr_1
sem_1) = T_MExpr
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_MExpr_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle
    in
      (MExpr
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Maybe MToken
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_MExpr
Syn_MExpr MExpr
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Bool
_lhsOisSimpleExpression Maybe MToken
_lhsOisSingleVar Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_MExpr_MExpr
  :: T_Region
  -> T_Expr
  -> T_MExpr
sem_MExpr_MExpr :: T_Region -> T_Expr -> T_MExpr
sem_MExpr_MExpr T_Region
pos_ T_Expr
expr_ =
  ( case (T_Expr
expr_) of
      (Expr
_exprIcopy, T_Expr_1
expr_1) ->
        ( case (T_Region
pos_) of
            (Region
_posIcopy, String
_posIidentifier, [String -> LintMessage]
_posIwarnings) ->
              ( case ( ( Region -> Expr -> MExpr
MExpr Region
_posIcopy Expr
_exprIcopy
                       )
                     ) of
                  MExpr
_copy ->
                    ( case ( ( MExpr
_copy
                             )
                           ) of
                        MExpr
_lhsOcopy ->
                          ( case ( ( Region
_posIcopy
                                   )
                                 ) of
                              Region
_lhsOmtokenPos ->
                                ( case ( ( let
                                            sem_MExpr_MExpr_1 :: T_MExpr_1
                                            sem_MExpr_MExpr_1 :: T_MExpr_1
sem_MExpr_MExpr_1 =
                                              ( \LintSettings
_lhsIconfig
                                                 String
_lhsIfuncName
                                                 Map String [Region]
_lhsIglobalDefinitions
                                                 Bool
_lhsIinParentheses
                                                 Bool
_lhsIisInModule
                                                 Bool
_lhsIisMeta
                                                 Bool
_lhsIisNegation
                                                 Int
_lhsIloopLevel
                                                 Region
_lhsImtokenPos
                                                 Int
_lhsIscopeLevel
                                                 [Map String (Bool, Region)]
_lhsIscopes
                                                 Bool
_lhsItopLevel
                                                 Maybe MToken
_lhsIvarBeingDefined
                                                 DeterminedVariableStyle
_lhsIvariableStyle ->
                                                    ( case ( ( Maybe MToken
_lhsIvarBeingDefined
                                                             )
                                                           ) of
                                                        Maybe MToken
_exprOvarBeingDefined ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_exprOscopes ->
                                                                ( case ( ( Bool
_lhsIisMeta
                                                                         )
                                                                       ) of
                                                                    Bool
_exprOisMeta ->
                                                                      ( case ( ( Bool
_lhsIisInModule
                                                                               )
                                                                             ) of
                                                                          Bool
_exprOisInModule ->
                                                                            ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                     )
                                                                                   ) of
                                                                                Map String [Region]
_exprOglobalDefinitions ->
                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                           )
                                                                                         ) of
                                                                                      LintSettings
_exprOconfig ->
                                                                                        ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                 )
                                                                                               ) of
                                                                                            DeterminedVariableStyle
_exprOvariableStyle ->
                                                                                              ( case ( ( Bool
_lhsItopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Bool
_exprOtopLevel ->
                                                                                                    ( case ( ( Int
_lhsIscopeLevel
                                                                                                             )
                                                                                                           ) of
                                                                                                        Int
_exprOscopeLevel ->
                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Int
_exprOloopLevel ->
                                                                                                                ( case ( ( Bool
_lhsIisNegation
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_exprOisNegation ->
                                                                                                                      ( case ( ( Bool
_lhsIinParentheses
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_exprOinParentheses ->
                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                String
_exprOfuncName ->
                                                                                                                                  ( case ( ( Region
_posIcopy
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Region
_exprOmtokenPos ->
                                                                                                                                        ( case (T_Expr_1
expr_1 LintSettings
_exprOconfig String
_exprOfuncName Map String [Region]
_exprOglobalDefinitions Bool
_exprOinParentheses Bool
_exprOisInModule Bool
_exprOisMeta Bool
_exprOisNegation Int
_exprOloopLevel Region
_exprOmtokenPos Int
_exprOscopeLevel [Map String (Bool, Region)]
_exprOscopes Bool
_exprOtopLevel Maybe MToken
_exprOvarBeingDefined DeterminedVariableStyle
_exprOvariableStyle) of
                                                                                                                                            (Map String [Region]
_exprIglobalDefinitions, String
_exprIidentifier, Bool
_exprIisInModule, Bool
_exprIisSimpleExpression, Maybe MToken
_exprIisSingleVar, Region
_exprImtokenPos, [Map String (Bool, Region)]
_exprIscopes, DeterminedVariableStyle
_exprIvariableStyle, [String -> LintMessage]
_exprIwarnings) ->
                                                                                                                                              ( case ( ( Map String [Region]
_exprIglobalDefinitions
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                    ( case ( ( (forall a b. a -> b -> a
const String
_posIidentifier String
_exprIidentifier)
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        String
_lhsOidentifier ->
                                                                                                                                                          ( case ( ( Bool
_exprIisInModule
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_lhsOisInModule ->
                                                                                                                                                                ( case ( ( Bool
_exprIisSimpleExpression
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                      ( case ( ( Maybe MToken
_exprIisSingleVar
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_exprIscopes
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                  ( case ( ( DeterminedVariableStyle
_exprIvariableStyle
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                        ( case ( ( [String -> LintMessage]
_posIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_exprIwarnings
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                              (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                           in
                                            T_MExpr_1
sem_MExpr_MExpr_1
                                         )
                                       ) of
                                    (T_MExpr_1
sem_MExpr_1) ->
                                      (MExpr
_lhsOcopy, Region
_lhsOmtokenPos, T_MExpr_1
sem_MExpr_1)
                                )
                          )
                    )
              )
        )
  )

-- MExprList ---------------------------------------------------
-- cata
sem_MExprList
  :: MExprList
  -> T_MExprList
sem_MExprList :: MExprList -> T_MExprList
sem_MExprList MExprList
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_MExpr -> T_MExprList -> T_MExprList
sem_MExprList_Cons T_MExprList
sem_MExprList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map MExpr -> T_MExpr
sem_MExpr MExprList
list))

-- semantic domain
type T_MExprList = (MExprList, T_MExprList_1)
type T_MExprList_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> Bool
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_MExprList = Inh_MExprList {Inh_MExprList -> LintSettings
config_Inh_MExprList :: LintSettings, Inh_MExprList -> String
funcName_Inh_MExprList :: String, Inh_MExprList -> Map String [Region]
globalDefinitions_Inh_MExprList :: (M.Map String [Region]), Inh_MExprList -> Bool
inParentheses_Inh_MExprList :: Bool, Inh_MExprList -> Bool
isInModule_Inh_MExprList :: Bool, Inh_MExprList -> Bool
isMeta_Inh_MExprList :: Bool, Inh_MExprList -> Int
loopLevel_Inh_MExprList :: Int, Inh_MExprList -> Region
mtokenPos_Inh_MExprList :: Region, Inh_MExprList -> Int
scopeLevel_Inh_MExprList :: Int, Inh_MExprList -> [Map String (Bool, Region)]
scopes_Inh_MExprList :: ([M.Map String (Bool, Region)]), Inh_MExprList -> Bool
topLevel_Inh_MExprList :: Bool, Inh_MExprList -> DeterminedVariableStyle
variableStyle_Inh_MExprList :: DeterminedVariableStyle}
data Syn_MExprList = Syn_MExprList {Syn_MExprList -> MExprList
copy_Syn_MExprList :: MExprList, Syn_MExprList -> Map String [Region]
globalDefinitions_Syn_MExprList :: (M.Map String [Region]), Syn_MExprList -> String
identifier_Syn_MExprList :: String, Syn_MExprList -> Bool
isInModule_Syn_MExprList :: Bool, Syn_MExprList -> Region
mtokenPos_Syn_MExprList :: Region, Syn_MExprList -> [Map String (Bool, Region)]
scopes_Syn_MExprList :: ([M.Map String (Bool, Region)]), Syn_MExprList -> DeterminedVariableStyle
variableStyle_Syn_MExprList :: DeterminedVariableStyle, Syn_MExprList -> [String -> LintMessage]
warnings_Syn_MExprList :: ([String -> LintMessage])}
wrap_MExprList
  :: T_MExprList
  -> Inh_MExprList
  -> Syn_MExprList
wrap_MExprList :: T_MExprList -> Inh_MExprList -> Syn_MExprList
wrap_MExprList T_MExprList
sem (Inh_MExprList LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (MExprList
_lhsOcopy, T_MExprList_1
sem_1) = T_MExprList
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_MExprList_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel DeterminedVariableStyle
_lhsIvariableStyle
    in
      (MExprList
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_MExprList
Syn_MExprList MExprList
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_MExprList_Cons
  :: T_MExpr
  -> T_MExprList
  -> T_MExprList
sem_MExprList_Cons :: T_MExpr -> T_MExprList -> T_MExprList
sem_MExprList_Cons T_MExpr
hd_ T_MExprList
tl_ =
  ( case (T_MExprList
tl_) of
      (MExprList
_tlIcopy, T_MExprList_1
tl_1) ->
        ( case (T_MExpr
hd_) of
            (MExpr
_hdIcopy, Region
_hdImtokenPos, T_MExpr_1
hd_1) ->
              ( case ( ( (:) MExpr
_hdIcopy MExprList
_tlIcopy
                       )
                     ) of
                  MExprList
_copy ->
                    ( case ( ( MExprList
_copy
                             )
                           ) of
                        MExprList
_lhsOcopy ->
                          ( case ( ( let
                                      sem_MExprList_Cons_1 :: T_MExprList_1
                                      sem_MExprList_Cons_1 :: T_MExprList_1
sem_MExprList_Cons_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIinParentheses
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           Bool
_lhsItopLevel
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_hdOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_hdOisMeta ->
                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                   )
                                                                 ) of
                                                              LintSettings
_hdOconfig ->
                                                                ( case ( ( forall a. Maybe a
Nothing
                                                                         )
                                                                       ) of
                                                                    Maybe MToken
_hdOvarBeingDefined ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_hdOvariableStyle ->
                                                                            ( case ( ( Bool
_lhsItopLevel
                                                                                     )
                                                                                   ) of
                                                                                Bool
_hdOtopLevel ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_hdOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_hdOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_hdOloopLevel ->
                                                                                                    ( case ( ( Bool
_lhsIisInModule
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_hdOisInModule ->
                                                                                                          ( case ( ( Bool
_lhsIinParentheses
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_hdOinParentheses ->
                                                                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_hdOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_lhsIfuncName
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_hdOfuncName ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_hdOisNegation ->
                                                                                                                                  ( case (T_MExpr_1
hd_1 LintSettings
_hdOconfig String
_hdOfuncName Map String [Region]
_hdOglobalDefinitions Bool
_hdOinParentheses Bool
_hdOisInModule Bool
_hdOisMeta Bool
_hdOisNegation Int
_hdOloopLevel Region
_hdOmtokenPos Int
_hdOscopeLevel [Map String (Bool, Region)]
_hdOscopes Bool
_hdOtopLevel Maybe MToken
_hdOvarBeingDefined DeterminedVariableStyle
_hdOvariableStyle) of
                                                                                                                                      (Map String [Region]
_hdIglobalDefinitions, String
_hdIidentifier, Bool
_hdIisInModule, Bool
_hdIisSimpleExpression, Maybe MToken
_hdIisSingleVar, [Map String (Bool, Region)]
_hdIscopes, DeterminedVariableStyle
_hdIvariableStyle, [String -> LintMessage]
_hdIwarnings) ->
                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_hdIscopes
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            [Map String (Bool, Region)]
_tlOscopes ->
                                                                                                                                              ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Bool
_tlOisMeta ->
                                                                                                                                                    ( case ( ( Bool
_hdIisInModule
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Bool
_tlOisInModule ->
                                                                                                                                                          ( case ( ( Map String [Region]
_hdIglobalDefinitions
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Map String [Region]
_tlOglobalDefinitions ->
                                                                                                                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    LintSettings
_tlOconfig ->
                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_hdIvariableStyle
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          DeterminedVariableStyle
_tlOvariableStyle ->
                                                                                                                                                                            ( case ( ( Bool
_lhsItopLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Bool
_tlOtopLevel ->
                                                                                                                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Int
_tlOscopeLevel ->
                                                                                                                                                                                        ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Region
_tlOmtokenPos ->
                                                                                                                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Int
_tlOloopLevel ->
                                                                                                                                                                                                    ( case ( ( Bool
_lhsIinParentheses
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_tlOinParentheses ->
                                                                                                                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              String
_tlOfuncName ->
                                                                                                                                                                                                                ( case (T_MExprList_1
tl_1 LintSettings
_tlOconfig String
_tlOfuncName Map String [Region]
_tlOglobalDefinitions Bool
_tlOinParentheses Bool
_tlOisInModule Bool
_tlOisMeta Int
_tlOloopLevel Region
_tlOmtokenPos Int
_tlOscopeLevel [Map String (Bool, Region)]
_tlOscopes Bool
_tlOtopLevel DeterminedVariableStyle
_tlOvariableStyle) of
                                                                                                                                                                                                                    (Map String [Region]
_tlIglobalDefinitions, String
_tlIidentifier, Bool
_tlIisInModule, Region
_tlImtokenPos, [Map String (Bool, Region)]
_tlIscopes, DeterminedVariableStyle
_tlIvariableStyle, [String -> LintMessage]
_tlIwarnings) ->
                                                                                                                                                                                                                      ( case ( ( Map String [Region]
_tlIglobalDefinitions
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                            ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                String
_lhsOidentifier ->
                                                                                                                                                                                                                                  ( case ( ( Bool
_tlIisInModule
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                        ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_tlIscopes
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_tlIvariableStyle
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_MExprList_1
sem_MExprList_Cons_1
                                   )
                                 ) of
                              (T_MExprList_1
sem_MExprList_1) ->
                                (MExprList
_lhsOcopy, T_MExprList_1
sem_MExprList_1)
                          )
                    )
              )
        )
  )
sem_MExprList_Nil :: T_MExprList
sem_MExprList_Nil :: T_MExprList
sem_MExprList_Nil =
  ( case ( ( []
           )
         ) of
      MExprList
_copy ->
        ( case ( ( MExprList
_copy
                 )
               ) of
            MExprList
_lhsOcopy ->
              ( case ( ( let
                          sem_MExprList_Nil_1 :: T_MExprList_1
                          sem_MExprList_Nil_1 :: T_MExprList_1
sem_MExprList_Nil_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIinParentheses
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               Bool
_lhsItopLevel
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_MExprList_1
sem_MExprList_Nil_1
                       )
                     ) of
                  (T_MExprList_1
sem_MExprList_1) ->
                    (MExprList
_lhsOcopy, T_MExprList_1
sem_MExprList_1)
              )
        )
  )

-- MStat -------------------------------------------------------
-- cata
sem_MStat
  :: MStat
  -> T_MStat
sem_MStat :: MStat -> T_MStat
sem_MStat (MStat Region
_pos Stat
_stat) =
  (T_Region -> T_Stat -> T_MStat
sem_MStat_MStat (Region -> T_Region
sem_Region Region
_pos) (Stat -> T_Stat
sem_Stat Stat
_stat))

-- semantic domain
type T_MStat = (MStat, T_MStat_1)
type T_MStat_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, Region, ([M.Map String (Bool, Region)]), Int, DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_MStat = Inh_MStat {Inh_MStat -> LintSettings
config_Inh_MStat :: LintSettings, Inh_MStat -> String
funcName_Inh_MStat :: String, Inh_MStat -> Map String [Region]
globalDefinitions_Inh_MStat :: (M.Map String [Region]), Inh_MStat -> Bool
isInModule_Inh_MStat :: Bool, Inh_MStat -> Bool
isMeta_Inh_MStat :: Bool, Inh_MStat -> Int
loopLevel_Inh_MStat :: Int, Inh_MStat -> Region
mtokenPos_Inh_MStat :: Region, Inh_MStat -> Int
scopeLevel_Inh_MStat :: Int, Inh_MStat -> [Map String (Bool, Region)]
scopes_Inh_MStat :: ([M.Map String (Bool, Region)]), Inh_MStat -> DeterminedVariableStyle
variableStyle_Inh_MStat :: DeterminedVariableStyle}
data Syn_MStat = Syn_MStat {Syn_MStat -> MStat
copy_Syn_MStat :: MStat, Syn_MStat -> Map String [Region]
globalDefinitions_Syn_MStat :: (M.Map String [Region]), Syn_MStat -> String
identifier_Syn_MStat :: String, Syn_MStat -> Bool
isIfStatement_Syn_MStat :: Bool, Syn_MStat -> Bool
isInModule_Syn_MStat :: Bool, Syn_MStat -> Region
mtokenPos_Syn_MStat :: Region, Syn_MStat -> [Map String (Bool, Region)]
scopes_Syn_MStat :: ([M.Map String (Bool, Region)]), Syn_MStat -> Int
statementCount_Syn_MStat :: Int, Syn_MStat -> DeterminedVariableStyle
variableStyle_Syn_MStat :: DeterminedVariableStyle, Syn_MStat -> [String -> LintMessage]
warnings_Syn_MStat :: ([String -> LintMessage])}
wrap_MStat
  :: T_MStat
  -> Inh_MStat
  -> Syn_MStat
wrap_MStat :: T_MStat -> Inh_MStat -> Syn_MStat
wrap_MStat T_MStat
sem (Inh_MStat LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (MStat
_lhsOcopy, T_MStatList_1
sem_1) = T_MStat
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_MStatList_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (MStat
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> Int
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_MStat
Syn_MStat MStat
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisIfStatement Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes Int
_lhsOstatementCount DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_MStat_MStat
  :: T_Region
  -> T_Stat
  -> T_MStat
sem_MStat_MStat :: T_Region -> T_Stat -> T_MStat
sem_MStat_MStat T_Region
pos_ T_Stat
stat_ =
  ( case (T_Stat
stat_) of
      (Stat
_statIcopy, T_UnOp_1
stat_1) ->
        ( case (T_Region
pos_) of
            (Region
_posIcopy, String
_posIidentifier, [String -> LintMessage]
_posIwarnings) ->
              ( case ( ( Region -> Stat -> MStat
MStat Region
_posIcopy Stat
_statIcopy
                       )
                     ) of
                  MStat
_copy ->
                    ( case ( ( MStat
_copy
                             )
                           ) of
                        MStat
_lhsOcopy ->
                          ( case ( ( let
                                      sem_MStat_MStat_1 :: T_MStat_1
                                      sem_MStat_MStat_1 :: T_MStatList_1
sem_MStat_MStat_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_statOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_statOisMeta ->
                                                          ( case ( ( Bool
_lhsIisInModule
                                                                   )
                                                                 ) of
                                                              Bool
_statOisInModule ->
                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                         )
                                                                       ) of
                                                                    Map String [Region]
_statOglobalDefinitions ->
                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                               )
                                                                             ) of
                                                                          LintSettings
_statOconfig ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_statOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_statOscopeLevel ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_statOloopLevel ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_statOfuncName ->
                                                                                                    ( case ( ( Region
_posIcopy
                                                                                                             )
                                                                                                           ) of
                                                                                                        Region
_statOmtokenPos ->
                                                                                                          ( case (T_UnOp_1
stat_1 LintSettings
_statOconfig String
_statOfuncName Map String [Region]
_statOglobalDefinitions Bool
_statOisInModule Bool
_statOisMeta Int
_statOloopLevel Region
_statOmtokenPos Int
_statOscopeLevel [Map String (Bool, Region)]
_statOscopes DeterminedVariableStyle
_statOvariableStyle) of
                                                                                                              (Map String [Region]
_statIglobalDefinitions, String
_statIidentifier, Bool
_statIisIfStatement, Bool
_statIisInModule, Region
_statImtokenPos, [Map String (Bool, Region)]
_statIscopes, DeterminedVariableStyle
_statIvariableStyle, [String -> LintMessage]
_statIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_statIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_posIidentifier String
_statIidentifier)
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
_statIisIfStatement
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                  ( case ( ( Bool
_statIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                        ( case ( ( Region
_posIcopy
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_statIscopes
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                    ( case ( ( Int
1
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Int
_lhsOstatementCount ->
                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_statIvariableStyle
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                ( case ( ( [String -> LintMessage]
_posIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_statIwarnings
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_MStatList_1
sem_MStat_MStat_1
                                   )
                                 ) of
                              (T_MStatList_1
sem_MStat_1) ->
                                (MStat
_lhsOcopy, T_MStatList_1
sem_MStat_1)
                          )
                    )
              )
        )
  )

-- MStatList ---------------------------------------------------
-- cata
sem_MStatList
  :: MStatList
  -> T_MStatList
sem_MStatList :: MStatList -> T_MStatList
sem_MStatList MStatList
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_MStat -> T_MStatList -> T_MStatList
sem_MStatList_Cons T_MStatList
sem_MStatList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map MStat -> T_MStat
sem_MStat MStatList
list))

-- semantic domain
type T_MStatList = (MStatList, T_MStatList_1)
type T_MStatList_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, Region, ([M.Map String (Bool, Region)]), Int, DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_MStatList = Inh_MStatList {Inh_MStatList -> LintSettings
config_Inh_MStatList :: LintSettings, Inh_MStatList -> String
funcName_Inh_MStatList :: String, Inh_MStatList -> Map String [Region]
globalDefinitions_Inh_MStatList :: (M.Map String [Region]), Inh_MStatList -> Bool
isInModule_Inh_MStatList :: Bool, Inh_MStatList -> Bool
isMeta_Inh_MStatList :: Bool, Inh_MStatList -> Int
loopLevel_Inh_MStatList :: Int, Inh_MStatList -> Region
mtokenPos_Inh_MStatList :: Region, Inh_MStatList -> Int
scopeLevel_Inh_MStatList :: Int, Inh_MStatList -> [Map String (Bool, Region)]
scopes_Inh_MStatList :: ([M.Map String (Bool, Region)]), Inh_MStatList -> DeterminedVariableStyle
variableStyle_Inh_MStatList :: DeterminedVariableStyle}
data Syn_MStatList = Syn_MStatList {Syn_MStatList -> MStatList
copy_Syn_MStatList :: MStatList, Syn_MStatList -> Map String [Region]
globalDefinitions_Syn_MStatList :: (M.Map String [Region]), Syn_MStatList -> String
identifier_Syn_MStatList :: String, Syn_MStatList -> Bool
isIfStatement_Syn_MStatList :: Bool, Syn_MStatList -> Bool
isInModule_Syn_MStatList :: Bool, Syn_MStatList -> Region
mtokenPos_Syn_MStatList :: Region, Syn_MStatList -> [Map String (Bool, Region)]
scopes_Syn_MStatList :: ([M.Map String (Bool, Region)]), Syn_MStatList -> Int
statementCount_Syn_MStatList :: Int, Syn_MStatList -> DeterminedVariableStyle
variableStyle_Syn_MStatList :: DeterminedVariableStyle, Syn_MStatList -> [String -> LintMessage]
warnings_Syn_MStatList :: ([String -> LintMessage])}
wrap_MStatList
  :: T_MStatList
  -> Inh_MStatList
  -> Syn_MStatList
wrap_MStatList :: T_MStatList -> Inh_MStatList -> Syn_MStatList
wrap_MStatList T_MStatList
sem (Inh_MStatList LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (MStatList
_lhsOcopy, T_MStatList_1
sem_1) = T_MStatList
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_MStatList_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (MStatList
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> Int
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_MStatList
Syn_MStatList MStatList
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisIfStatement Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes Int
_lhsOstatementCount DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_MStatList_Cons
  :: T_MStat
  -> T_MStatList
  -> T_MStatList
sem_MStatList_Cons :: T_MStat -> T_MStatList -> T_MStatList
sem_MStatList_Cons T_MStat
hd_ T_MStatList
tl_ =
  ( case (T_MStatList
tl_) of
      (MStatList
_tlIcopy, T_MStatList_1
tl_1) ->
        ( case (T_MStat
hd_) of
            (MStat
_hdIcopy, T_MStatList_1
hd_1) ->
              ( case ( ( (:) MStat
_hdIcopy MStatList
_tlIcopy
                       )
                     ) of
                  MStatList
_copy ->
                    ( case ( ( MStatList
_copy
                             )
                           ) of
                        MStatList
_lhsOcopy ->
                          ( case ( ( let
                                      sem_MStatList_Cons_1 :: T_MStatList_1
                                      sem_MStatList_Cons_1 :: T_MStatList_1
sem_MStatList_Cons_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_hdOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_hdOisMeta ->
                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                   )
                                                                 ) of
                                                              LintSettings
_hdOconfig ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_hdOvariableStyle ->
                                                                      ( case ( ( Int
_lhsIscopeLevel
                                                                               )
                                                                             ) of
                                                                          Int
_hdOscopeLevel ->
                                                                            ( case ( ( Region
_lhsImtokenPos
                                                                                     )
                                                                                   ) of
                                                                                Region
_hdOmtokenPos ->
                                                                                  ( case ( ( Int
_lhsIloopLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_hdOloopLevel ->
                                                                                        ( case ( ( Bool
_lhsIisInModule
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_hdOisInModule ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_hdOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_hdOfuncName ->
                                                                                                          ( case (T_MStatList_1
hd_1 LintSettings
_hdOconfig String
_hdOfuncName Map String [Region]
_hdOglobalDefinitions Bool
_hdOisInModule Bool
_hdOisMeta Int
_hdOloopLevel Region
_hdOmtokenPos Int
_hdOscopeLevel [Map String (Bool, Region)]
_hdOscopes DeterminedVariableStyle
_hdOvariableStyle) of
                                                                                                              (Map String [Region]
_hdIglobalDefinitions, String
_hdIidentifier, Bool
_hdIisIfStatement, Bool
_hdIisInModule, Region
_hdImtokenPos, [Map String (Bool, Region)]
_hdIscopes, Int
_hdIstatementCount, DeterminedVariableStyle
_hdIvariableStyle, [String -> LintMessage]
_hdIwarnings) ->
                                                                                                                ( case ( ( [Map String (Bool, Region)]
_hdIscopes
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    [Map String (Bool, Region)]
_tlOscopes ->
                                                                                                                      ( case ( ( Bool
_lhsIisMeta
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_tlOisMeta ->
                                                                                                                            ( case ( ( Bool
_hdIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_tlOisInModule ->
                                                                                                                                  ( case ( ( Map String [Region]
_hdIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_tlOglobalDefinitions ->
                                                                                                                                        ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            LintSettings
_tlOconfig ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_hdIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_tlOvariableStyle ->
                                                                                                                                                    ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Int
_tlOscopeLevel ->
                                                                                                                                                          ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Region
_tlOmtokenPos ->
                                                                                                                                                                ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_tlOloopLevel ->
                                                                                                                                                                      ( case ( ( String
_lhsIfuncName
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          String
_tlOfuncName ->
                                                                                                                                                                            ( case (T_MStatList_1
tl_1 LintSettings
_tlOconfig String
_tlOfuncName Map String [Region]
_tlOglobalDefinitions Bool
_tlOisInModule Bool
_tlOisMeta Int
_tlOloopLevel Region
_tlOmtokenPos Int
_tlOscopeLevel [Map String (Bool, Region)]
_tlOscopes DeterminedVariableStyle
_tlOvariableStyle) of
                                                                                                                                                                                (Map String [Region]
_tlIglobalDefinitions, String
_tlIidentifier, Bool
_tlIisIfStatement, Bool
_tlIisInModule, Region
_tlImtokenPos, [Map String (Bool, Region)]
_tlIscopes, Int
_tlIstatementCount, DeterminedVariableStyle
_tlIvariableStyle, [String -> LintMessage]
_tlIwarnings) ->
                                                                                                                                                                                  ( case ( ( Map String [Region]
_tlIglobalDefinitions
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                        ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            String
_lhsOidentifier ->
                                                                                                                                                                                              ( case ( ( Bool
_hdIisIfStatement Bool -> Bool -> Bool
|| Bool
_tlIisIfStatement
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                    ( case ( ( Bool
_tlIisInModule
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_lhsOisInModule ->
                                                                                                                                                                                                          ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                ( case ( ( [Map String (Bool, Region)]
_tlIscopes
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                      ( case ( ( Int
_hdIstatementCount forall a. Num a => a -> a -> a
+ Int
_tlIstatementCount
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Int
_lhsOstatementCount ->
                                                                                                                                                                                                                            ( case ( ( DeterminedVariableStyle
_tlIvariableStyle
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                  ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_MStatList_1
sem_MStatList_Cons_1
                                   )
                                 ) of
                              (T_MStatList_1
sem_MStatList_1) ->
                                (MStatList
_lhsOcopy, T_MStatList_1
sem_MStatList_1)
                          )
                    )
              )
        )
  )
sem_MStatList_Nil :: T_MStatList
sem_MStatList_Nil :: T_MStatList
sem_MStatList_Nil =
  ( case ( ( []
           )
         ) of
      MStatList
_copy ->
        ( case ( ( MStatList
_copy
                 )
               ) of
            MStatList
_lhsOcopy ->
              ( case ( ( let
                          sem_MStatList_Nil_1 :: T_MStatList_1
                          sem_MStatList_Nil_1 :: T_MStatList_1
sem_MStatList_Nil_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
False
                                                       )
                                                     ) of
                                                  Bool
_lhsOisIfStatement ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_lhsOisInModule ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( Int
0
                                                                               )
                                                                             ) of
                                                                          Int
_lhsOstatementCount ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                  ( case ( ( []
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, Int
_lhsOstatementCount, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_MStatList_1
sem_MStatList_Nil_1
                       )
                     ) of
                  (T_MStatList_1
sem_MStatList_1) ->
                    (MStatList
_lhsOcopy, T_MStatList_1
sem_MStatList_1)
              )
        )
  )

-- MToken ------------------------------------------------------
-- cata
sem_MToken
  :: MToken
  -> T_MToken
sem_MToken :: MToken -> T_MToken
sem_MToken (MToken Region
_mpos Token
_mtok) =
  (T_Region -> T_Token -> T_MToken
sem_MToken_MToken (Region -> T_Region
sem_Region Region
_mpos) (Token -> T_Token
sem_Token Token
_mtok))

-- semantic domain
type T_MToken = (MToken, Token, Region, T_MToken_1)
type T_MToken_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Region
  -> ([M.Map String (Bool, Region)])
  -> ((M.Map String [Region]), String, Bool, ([M.Map String (Bool, Region)]), ([String -> LintMessage]))
data Inh_MToken = Inh_MToken {Inh_MToken -> LintSettings
config_Inh_MToken :: LintSettings, Inh_MToken -> String
funcName_Inh_MToken :: String, Inh_MToken -> Map String [Region]
globalDefinitions_Inh_MToken :: (M.Map String [Region]), Inh_MToken -> Bool
isInModule_Inh_MToken :: Bool, Inh_MToken -> Bool
isMeta_Inh_MToken :: Bool, Inh_MToken -> Region
mtokenPos_Inh_MToken :: Region, Inh_MToken -> [Map String (Bool, Region)]
scopes_Inh_MToken :: ([M.Map String (Bool, Region)])}
data Syn_MToken = Syn_MToken {Syn_MToken -> MToken
copy_Syn_MToken :: MToken, Syn_MToken -> Map String [Region]
globalDefinitions_Syn_MToken :: (M.Map String [Region]), Syn_MToken -> String
identifier_Syn_MToken :: String, Syn_MToken -> Bool
isInModule_Syn_MToken :: Bool, Syn_MToken -> Token
mtok_Syn_MToken :: Token, Syn_MToken -> Region
mtokenPos_Syn_MToken :: Region, Syn_MToken -> [Map String (Bool, Region)]
scopes_Syn_MToken :: ([M.Map String (Bool, Region)]), Syn_MToken -> [String -> LintMessage]
warnings_Syn_MToken :: ([String -> LintMessage])}
wrap_MToken
  :: T_MToken
  -> Inh_MToken
  -> Syn_MToken
wrap_MToken :: T_MToken -> Inh_MToken -> Syn_MToken
wrap_MToken T_MToken
sem (Inh_MToken LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Region
_lhsImtokenPos [Map String (Bool, Region)]
_lhsIscopes) =
  ( let
      (MToken
_lhsOcopy, Token
_lhsOmtok, Region
_lhsOmtokenPos, T_MToken_1
sem_1) = T_MToken
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, [Map String (Bool, Region)]
_lhsOscopes, [String -> LintMessage]
_lhsOwarnings) = T_MToken_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Region
_lhsImtokenPos [Map String (Bool, Region)]
_lhsIscopes
    in
      (MToken
-> Map String [Region]
-> String
-> Bool
-> Token
-> Region
-> [Map String (Bool, Region)]
-> [String -> LintMessage]
-> Syn_MToken
Syn_MToken MToken
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Token
_lhsOmtok Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes [String -> LintMessage]
_lhsOwarnings)
  )
sem_MToken_MToken
  :: T_Region
  -> T_Token
  -> T_MToken
sem_MToken_MToken :: T_Region -> T_Token -> T_MToken
sem_MToken_MToken T_Region
mpos_ T_Token
mtok_ =
  ( case (T_Token
mtok_) of
      (Token
_mtokIcopy, String
_mtokIidentifier, [String -> LintMessage]
_mtokIwarnings) ->
        ( case (T_Region
mpos_) of
            (Region
_mposIcopy, String
_mposIidentifier, [String -> LintMessage]
_mposIwarnings) ->
              ( case ( ( Region -> Token -> MToken
MToken Region
_mposIcopy Token
_mtokIcopy
                       )
                     ) of
                  MToken
_copy ->
                    ( case ( ( MToken
_copy
                             )
                           ) of
                        MToken
_lhsOcopy ->
                          ( case ( ( Token
_mtokIcopy
                                   )
                                 ) of
                              Token
_lhsOmtok ->
                                ( case ( ( Region
_mposIcopy
                                         )
                                       ) of
                                    Region
_lhsOmtokenPos ->
                                      ( case ( ( let
                                                  sem_MToken_MToken_1 :: T_MToken_1
                                                  sem_MToken_MToken_1 :: T_MToken_1
sem_MToken_MToken_1 =
                                                    ( \LintSettings
_lhsIconfig
                                                       String
_lhsIfuncName
                                                       Map String [Region]
_lhsIglobalDefinitions
                                                       Bool
_lhsIisInModule
                                                       Bool
_lhsIisMeta
                                                       Region
_lhsImtokenPos
                                                       [Map String (Bool, Region)]
_lhsIscopes ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_lhsOglobalDefinitions ->
                                                                ( case ( ( String
_mtokIidentifier
                                                                         )
                                                                       ) of
                                                                    String
_lhsOidentifier ->
                                                                      ( case ( ( Bool
_lhsIisInModule
                                                                               )
                                                                             ) of
                                                                          Bool
_lhsOisInModule ->
                                                                            ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                                     )
                                                                                   ) of
                                                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                  ( case ( ( [String -> LintMessage]
_mposIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_mtokIwarnings
                                                                                           )
                                                                                         ) of
                                                                                      [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                        ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_goto_identifier LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| String
_mtokIidentifier forall a. Eq a => a -> a -> Bool
/= String
"goto"
                                                                                                    then forall a. a -> a
id
                                                                                                    else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_mposIcopy Issue
GotoAsIdentifier
                                                                                                 )
                                                                                               ) of
                                                                                            [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                              ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                       )
                                                                                                     ) of
                                                                                                  [String -> LintMessage]
_lhsOwarnings ->
                                                                                                    (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, [Map String (Bool, Region)]
_lhsOscopes, [String -> LintMessage]
_lhsOwarnings)
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                                 in
                                                  T_MToken_1
sem_MToken_MToken_1
                                               )
                                             ) of
                                          (T_MToken_1
sem_MToken_1) ->
                                            (MToken
_lhsOcopy, Token
_lhsOmtok, Region
_lhsOmtokenPos, T_MToken_1
sem_MToken_1)
                                      )
                                )
                          )
                    )
              )
        )
  )

-- MTokenList --------------------------------------------------
-- cata
sem_MTokenList
  :: MTokenList
  -> T_MTokenList
sem_MTokenList :: [MToken] -> T_MTokenList
sem_MTokenList [MToken]
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_MToken -> T_MTokenList -> T_MTokenList
sem_MTokenList_Cons T_MTokenList
sem_MTokenList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map MToken -> T_MToken
sem_MToken [MToken]
list))

-- semantic domain
type T_MTokenList =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Region
  -> ([M.Map String (Bool, Region)])
  -> (MTokenList, (M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), ([String -> LintMessage]))
data Inh_MTokenList = Inh_MTokenList {Inh_MTokenList -> LintSettings
config_Inh_MTokenList :: LintSettings, Inh_MTokenList -> String
funcName_Inh_MTokenList :: String, Inh_MTokenList -> Map String [Region]
globalDefinitions_Inh_MTokenList :: (M.Map String [Region]), Inh_MTokenList -> Bool
isInModule_Inh_MTokenList :: Bool, Inh_MTokenList -> Bool
isMeta_Inh_MTokenList :: Bool, Inh_MTokenList -> Region
mtokenPos_Inh_MTokenList :: Region, Inh_MTokenList -> [Map String (Bool, Region)]
scopes_Inh_MTokenList :: ([M.Map String (Bool, Region)])}
data Syn_MTokenList = Syn_MTokenList {Syn_MTokenList -> [MToken]
copy_Syn_MTokenList :: MTokenList, Syn_MTokenList -> Map String [Region]
globalDefinitions_Syn_MTokenList :: (M.Map String [Region]), Syn_MTokenList -> String
identifier_Syn_MTokenList :: String, Syn_MTokenList -> Bool
isInModule_Syn_MTokenList :: Bool, Syn_MTokenList -> Region
mtokenPos_Syn_MTokenList :: Region, Syn_MTokenList -> [Map String (Bool, Region)]
scopes_Syn_MTokenList :: ([M.Map String (Bool, Region)]), Syn_MTokenList -> [String -> LintMessage]
warnings_Syn_MTokenList :: ([String -> LintMessage])}
wrap_MTokenList
  :: T_MTokenList
  -> Inh_MTokenList
  -> Syn_MTokenList
wrap_MTokenList :: T_MTokenList -> Inh_MTokenList -> Syn_MTokenList
wrap_MTokenList T_MTokenList
sem (Inh_MTokenList LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Region
_lhsImtokenPos [Map String (Bool, Region)]
_lhsIscopes) =
  ( let
      ([MToken]
_lhsOcopy, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, [String -> LintMessage]
_lhsOwarnings) = T_MTokenList
sem LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Region
_lhsImtokenPos [Map String (Bool, Region)]
_lhsIscopes
    in
      ([MToken]
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> [String -> LintMessage]
-> Syn_MTokenList
Syn_MTokenList [MToken]
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes [String -> LintMessage]
_lhsOwarnings)
  )
sem_MTokenList_Cons
  :: T_MToken
  -> T_MTokenList
  -> T_MTokenList
sem_MTokenList_Cons :: T_MToken -> T_MTokenList -> T_MTokenList
sem_MTokenList_Cons T_MToken
hd_ T_MTokenList
tl_ =
  ( \LintSettings
_lhsIconfig
     String
_lhsIfuncName
     Map String [Region]
_lhsIglobalDefinitions
     Bool
_lhsIisInModule
     Bool
_lhsIisMeta
     Region
_lhsImtokenPos
     [Map String (Bool, Region)]
_lhsIscopes ->
        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                 )
               ) of
            [Map String (Bool, Region)]
_hdOscopes ->
              ( case (T_MToken
hd_) of
                  (MToken
_hdIcopy, Token
_hdImtok, Region
_hdImtokenPos, T_MToken_1
hd_1) ->
                    ( case ( ( Region
_lhsImtokenPos
                             )
                           ) of
                        Region
_hdOmtokenPos ->
                          ( case ( ( Bool
_lhsIisMeta
                                   )
                                 ) of
                              Bool
_hdOisMeta ->
                                ( case ( ( Bool
_lhsIisInModule
                                         )
                                       ) of
                                    Bool
_hdOisInModule ->
                                      ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                               )
                                             ) of
                                          Map String [Region]
_hdOglobalDefinitions ->
                                            ( case ( ( String
_lhsIfuncName
                                                     )
                                                   ) of
                                                String
_hdOfuncName ->
                                                  ( case ( ( LintSettings
_lhsIconfig
                                                           )
                                                         ) of
                                                      LintSettings
_hdOconfig ->
                                                        ( case (T_MToken_1
hd_1 LintSettings
_hdOconfig String
_hdOfuncName Map String [Region]
_hdOglobalDefinitions Bool
_hdOisInModule Bool
_hdOisMeta Region
_hdOmtokenPos [Map String (Bool, Region)]
_hdOscopes) of
                                                            (Map String [Region]
_hdIglobalDefinitions, String
_hdIidentifier, Bool
_hdIisInModule, [Map String (Bool, Region)]
_hdIscopes, [String -> LintMessage]
_hdIwarnings) ->
                                                              ( case ( ( [Map String (Bool, Region)]
_hdIscopes
                                                                       )
                                                                     ) of
                                                                  [Map String (Bool, Region)]
_tlOscopes ->
                                                                    ( case ( ( Region
_hdImtokenPos
                                                                             )
                                                                           ) of
                                                                        Region
_tlOmtokenPos ->
                                                                          ( case ( ( Bool
_lhsIisMeta
                                                                                   )
                                                                                 ) of
                                                                              Bool
_tlOisMeta ->
                                                                                ( case ( ( Bool
_hdIisInModule
                                                                                         )
                                                                                       ) of
                                                                                    Bool
_tlOisInModule ->
                                                                                      ( case ( ( Map String [Region]
_hdIglobalDefinitions
                                                                                               )
                                                                                             ) of
                                                                                          Map String [Region]
_tlOglobalDefinitions ->
                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                     )
                                                                                                   ) of
                                                                                                String
_tlOfuncName ->
                                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                                           )
                                                                                                         ) of
                                                                                                      LintSettings
_tlOconfig ->
                                                                                                        ( case (T_MTokenList
tl_ LintSettings
_tlOconfig String
_tlOfuncName Map String [Region]
_tlOglobalDefinitions Bool
_tlOisInModule Bool
_tlOisMeta Region
_tlOmtokenPos [Map String (Bool, Region)]
_tlOscopes) of
                                                                                                            ([MToken]
_tlIcopy, Map String [Region]
_tlIglobalDefinitions, String
_tlIidentifier, Bool
_tlIisInModule, Region
_tlImtokenPos, [Map String (Bool, Region)]
_tlIscopes, [String -> LintMessage]
_tlIwarnings) ->
                                                                                                              ( case ( ( (:) MToken
_hdIcopy [MToken]
_tlIcopy
                                                                                                                       )
                                                                                                                     ) of
                                                                                                                  [MToken]
_copy ->
                                                                                                                    ( case ( ( [MToken]
_copy
                                                                                                                             )
                                                                                                                           ) of
                                                                                                                        [MToken]
_lhsOcopy ->
                                                                                                                          ( case ( ( Map String [Region]
_tlIglobalDefinitions
                                                                                                                                   )
                                                                                                                                 ) of
                                                                                                                              Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                                                                                                                         )
                                                                                                                                       ) of
                                                                                                                                    String
_lhsOidentifier ->
                                                                                                                                      ( case ( ( Bool
_tlIisInModule
                                                                                                                                               )
                                                                                                                                             ) of
                                                                                                                                          Bool
_lhsOisInModule ->
                                                                                                                                            ( case ( ( Region
_hdImtokenPos
                                                                                                                                                     )
                                                                                                                                                   ) of
                                                                                                                                                Region
_lhsOmtokenPos ->
                                                                                                                                                  ( case ( ( [Map String (Bool, Region)]
_tlIscopes
                                                                                                                                                           )
                                                                                                                                                         ) of
                                                                                                                                                      [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                        ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                                                                                                                                                 )
                                                                                                                                                               ) of
                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                              ([MToken]
_lhsOcopy, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                        )
                                                                                                                                                  )
                                                                                                                                            )
                                                                                                                                      )
                                                                                                                                )
                                                                                                                          )
                                                                                                                    )
                                                                                                              )
                                                                                                        )
                                                                                                  )
                                                                                            )
                                                                                      )
                                                                                )
                                                                          )
                                                                    )
                                                              )
                                                        )
                                                  )
                                            )
                                      )
                                )
                          )
                    )
              )
        )
  )
sem_MTokenList_Nil :: T_MTokenList
sem_MTokenList_Nil :: T_MTokenList
sem_MTokenList_Nil =
  ( \LintSettings
_lhsIconfig
     String
_lhsIfuncName
     Map String [Region]
_lhsIglobalDefinitions
     Bool
_lhsIisInModule
     Bool
_lhsIisMeta
     Region
_lhsImtokenPos
     [Map String (Bool, Region)]
_lhsIscopes ->
        ( case ( ( []
                 )
               ) of
            [MToken]
_copy ->
              ( case ( ( [MToken]
_copy
                       )
                     ) of
                  [MToken]
_lhsOcopy ->
                    ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                             )
                           ) of
                        Map String [Region]
_lhsOglobalDefinitions ->
                          ( case ( ( String
unknownIdentifier
                                   )
                                 ) of
                              String
_lhsOidentifier ->
                                ( case ( ( Bool
_lhsIisInModule
                                         )
                                       ) of
                                    Bool
_lhsOisInModule ->
                                      ( case ( ( Region
_lhsImtokenPos
                                               )
                                             ) of
                                          Region
_lhsOmtokenPos ->
                                            ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                     )
                                                   ) of
                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                  ( case ( ( []
                                                           )
                                                         ) of
                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                        ([MToken]
_lhsOcopy, Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, [String -> LintMessage]
_lhsOwarnings)
                                                  )
                                            )
                                      )
                                )
                          )
                    )
              )
        )
  )

-- MaybeMExpr --------------------------------------------------
-- cata
sem_MaybeMExpr
  :: MaybeMExpr
  -> T_MaybeMExpr
sem_MaybeMExpr :: MaybeMExpr -> T_MaybeMExpr
sem_MaybeMExpr (Prelude.Just MExpr
x) =
  (T_MExpr -> T_MaybeMExpr
sem_MaybeMExpr_Just (MExpr -> T_MExpr
sem_MExpr MExpr
x))
sem_MaybeMExpr MaybeMExpr
Prelude.Nothing =
  T_MaybeMExpr
sem_MaybeMExpr_Nothing

-- semantic domain
type T_MaybeMExpr = (MaybeMExpr, T_MaybeMExpr_1)
type T_MaybeMExpr_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> (Maybe MToken)
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, (Maybe MToken), Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_MaybeMExpr = Inh_MaybeMExpr {Inh_MaybeMExpr -> LintSettings
config_Inh_MaybeMExpr :: LintSettings, Inh_MaybeMExpr -> String
funcName_Inh_MaybeMExpr :: String, Inh_MaybeMExpr -> Map String [Region]
globalDefinitions_Inh_MaybeMExpr :: (M.Map String [Region]), Inh_MaybeMExpr -> Bool
isInModule_Inh_MaybeMExpr :: Bool, Inh_MaybeMExpr -> Bool
isMeta_Inh_MaybeMExpr :: Bool, Inh_MaybeMExpr -> Bool
isNegation_Inh_MaybeMExpr :: Bool, Inh_MaybeMExpr -> Int
loopLevel_Inh_MaybeMExpr :: Int, Inh_MaybeMExpr -> Region
mtokenPos_Inh_MaybeMExpr :: Region, Inh_MaybeMExpr -> Int
scopeLevel_Inh_MaybeMExpr :: Int, Inh_MaybeMExpr -> [Map String (Bool, Region)]
scopes_Inh_MaybeMExpr :: ([M.Map String (Bool, Region)]), Inh_MaybeMExpr -> Maybe MToken
varBeingDefined_Inh_MaybeMExpr :: (Maybe MToken), Inh_MaybeMExpr -> DeterminedVariableStyle
variableStyle_Inh_MaybeMExpr :: DeterminedVariableStyle}
data Syn_MaybeMExpr = Syn_MaybeMExpr {Syn_MaybeMExpr -> MaybeMExpr
copy_Syn_MaybeMExpr :: MaybeMExpr, Syn_MaybeMExpr -> Map String [Region]
globalDefinitions_Syn_MaybeMExpr :: (M.Map String [Region]), Syn_MaybeMExpr -> String
identifier_Syn_MaybeMExpr :: String, Syn_MaybeMExpr -> Bool
isInModule_Syn_MaybeMExpr :: Bool, Syn_MaybeMExpr -> Maybe MToken
isSingleVar_Syn_MaybeMExpr :: (Maybe MToken), Syn_MaybeMExpr -> Region
mtokenPos_Syn_MaybeMExpr :: Region, Syn_MaybeMExpr -> [Map String (Bool, Region)]
scopes_Syn_MaybeMExpr :: ([M.Map String (Bool, Region)]), Syn_MaybeMExpr -> DeterminedVariableStyle
variableStyle_Syn_MaybeMExpr :: DeterminedVariableStyle, Syn_MaybeMExpr -> [String -> LintMessage]
warnings_Syn_MaybeMExpr :: ([String -> LintMessage])}
wrap_MaybeMExpr
  :: T_MaybeMExpr
  -> Inh_MaybeMExpr
  -> Syn_MaybeMExpr
wrap_MaybeMExpr :: T_MaybeMExpr -> Inh_MaybeMExpr -> Syn_MaybeMExpr
wrap_MaybeMExpr T_MaybeMExpr
sem (Inh_MaybeMExpr LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (MaybeMExpr
_lhsOcopy, T_MaybeMExpr_1
sem_1) = T_MaybeMExpr
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_MaybeMExpr_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle
    in
      (MaybeMExpr
-> Map String [Region]
-> String
-> Bool
-> Maybe MToken
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_MaybeMExpr
Syn_MaybeMExpr MaybeMExpr
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Maybe MToken
_lhsOisSingleVar Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_MaybeMExpr_Just
  :: T_MExpr
  -> T_MaybeMExpr
sem_MaybeMExpr_Just :: T_MExpr -> T_MaybeMExpr
sem_MaybeMExpr_Just T_MExpr
just_ =
  ( case (T_MExpr
just_) of
      (MExpr
_justIcopy, Region
_justImtokenPos, T_MExpr_1
just_1) ->
        ( case ( ( forall a. a -> Maybe a
Just MExpr
_justIcopy
                 )
               ) of
            MaybeMExpr
_copy ->
              ( case ( ( MaybeMExpr
_copy
                       )
                     ) of
                  MaybeMExpr
_lhsOcopy ->
                    ( case ( ( let
                                sem_MaybeMExpr_Just_1 :: T_MaybeMExpr_1
                                sem_MaybeMExpr_Just_1 :: T_MaybeMExpr_1
sem_MaybeMExpr_Just_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Bool
_lhsIisNegation
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     Maybe MToken
_lhsIvarBeingDefined
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Maybe MToken
_lhsIvarBeingDefined
                                                 )
                                               ) of
                                            Maybe MToken
_justOvarBeingDefined ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_justOscopes ->
                                                    ( case ( ( Bool
_lhsIisMeta
                                                             )
                                                           ) of
                                                        Bool
_justOisMeta ->
                                                          ( case ( ( Bool
_lhsIisInModule
                                                                   )
                                                                 ) of
                                                              Bool
_justOisInModule ->
                                                                ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                         )
                                                                       ) of
                                                                    Map String [Region]
_justOglobalDefinitions ->
                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                               )
                                                                             ) of
                                                                          LintSettings
_justOconfig ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_justOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_justOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_justOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_justOloopLevel ->
                                                                                                    ( case ( ( Bool
_lhsIisNegation
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_justOisNegation ->
                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              String
_justOfuncName ->
                                                                                                                ( case ( ( Bool
False
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_justOtopLevel ->
                                                                                                                      ( case ( ( Bool
False
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_justOinParentheses ->
                                                                                                                            ( case (T_MExpr_1
just_1 LintSettings
_justOconfig String
_justOfuncName Map String [Region]
_justOglobalDefinitions Bool
_justOinParentheses Bool
_justOisInModule Bool
_justOisMeta Bool
_justOisNegation Int
_justOloopLevel Region
_justOmtokenPos Int
_justOscopeLevel [Map String (Bool, Region)]
_justOscopes Bool
_justOtopLevel Maybe MToken
_justOvarBeingDefined DeterminedVariableStyle
_justOvariableStyle) of
                                                                                                                                (Map String [Region]
_justIglobalDefinitions, String
_justIidentifier, Bool
_justIisInModule, Bool
_justIisSimpleExpression, Maybe MToken
_justIisSingleVar, [Map String (Bool, Region)]
_justIscopes, DeterminedVariableStyle
_justIvariableStyle, [String -> LintMessage]
_justIwarnings) ->
                                                                                                                                  ( case ( ( Map String [Region]
_justIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                        ( case ( ( String
_justIidentifier
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            String
_lhsOidentifier ->
                                                                                                                                              ( case ( ( Bool
_justIisInModule
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Bool
_lhsOisInModule ->
                                                                                                                                                    ( case ( ( Maybe MToken
_justIisSingleVar
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                          ( case ( ( Region
_justImtokenPos
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Region
_lhsOmtokenPos ->
                                                                                                                                                                ( case ( ( [Map String (Bool, Region)]
_justIscopes
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_justIvariableStyle
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                            ( case ( ( [String -> LintMessage]
_justIwarnings
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_MaybeMExpr_1
sem_MaybeMExpr_Just_1
                             )
                           ) of
                        (T_MaybeMExpr_1
sem_MaybeMExpr_1) ->
                          (MaybeMExpr
_lhsOcopy, T_MaybeMExpr_1
sem_MaybeMExpr_1)
                    )
              )
        )
  )
sem_MaybeMExpr_Nothing :: T_MaybeMExpr
sem_MaybeMExpr_Nothing :: T_MaybeMExpr
sem_MaybeMExpr_Nothing =
  ( case ( ( forall a. Maybe a
Nothing
           )
         ) of
      MaybeMExpr
_copy ->
        ( case ( ( MaybeMExpr
_copy
                 )
               ) of
            MaybeMExpr
_lhsOcopy ->
              ( case ( ( let
                          sem_MaybeMExpr_Nothing_1 :: T_MaybeMExpr_1
                          sem_MaybeMExpr_Nothing_1 :: T_MaybeMExpr_1
sem_MaybeMExpr_Nothing_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Bool
_lhsIisNegation
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               Maybe MToken
_lhsIvarBeingDefined
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( forall a. Maybe a
Nothing
                                                             )
                                                           ) of
                                                        Maybe MToken
_lhsOisSingleVar ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Maybe MToken
_lhsOisSingleVar, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_MaybeMExpr_1
sem_MaybeMExpr_Nothing_1
                       )
                     ) of
                  (T_MaybeMExpr_1
sem_MaybeMExpr_1) ->
                    (MaybeMExpr
_lhsOcopy, T_MaybeMExpr_1
sem_MaybeMExpr_1)
              )
        )
  )

-- PFExprSuffix ------------------------------------------------
-- cata
sem_PFExprSuffix
  :: PFExprSuffix
  -> T_PFExprSuffix
sem_PFExprSuffix :: PFExprSuffix -> T_PFExprSuffix
sem_PFExprSuffix (Call Args
_args) =
  (T_Args -> T_PFExprSuffix
sem_PFExprSuffix_Call (Args -> T_Args
sem_Args Args
_args))
sem_PFExprSuffix (MetaCall MToken
_fn Args
_args) =
  (T_MToken -> T_Args -> T_PFExprSuffix
sem_PFExprSuffix_MetaCall (MToken -> T_MToken
sem_MToken MToken
_fn) (Args -> T_Args
sem_Args Args
_args))
sem_PFExprSuffix (ExprIndex MExpr
_index) =
  (T_MExpr -> T_PFExprSuffix
sem_PFExprSuffix_ExprIndex (MExpr -> T_MExpr
sem_MExpr MExpr
_index))
sem_PFExprSuffix (DotIndex MToken
_index) =
  (T_MToken -> T_PFExprSuffix
sem_PFExprSuffix_DotIndex (MToken -> T_MToken
sem_MToken MToken
_index))

-- semantic domain
type T_PFExprSuffix = (PFExprSuffix, T_PFExprSuffix_1)
type T_PFExprSuffix_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_PFExprSuffix = Inh_PFExprSuffix {Inh_PFExprSuffix -> LintSettings
config_Inh_PFExprSuffix :: LintSettings, Inh_PFExprSuffix -> String
funcName_Inh_PFExprSuffix :: String, Inh_PFExprSuffix -> Map String [Region]
globalDefinitions_Inh_PFExprSuffix :: (M.Map String [Region]), Inh_PFExprSuffix -> Bool
isInModule_Inh_PFExprSuffix :: Bool, Inh_PFExprSuffix -> Bool
isMeta_Inh_PFExprSuffix :: Bool, Inh_PFExprSuffix -> Int
loopLevel_Inh_PFExprSuffix :: Int, Inh_PFExprSuffix -> Region
mtokenPos_Inh_PFExprSuffix :: Region, Inh_PFExprSuffix -> Int
scopeLevel_Inh_PFExprSuffix :: Int, Inh_PFExprSuffix -> [Map String (Bool, Region)]
scopes_Inh_PFExprSuffix :: ([M.Map String (Bool, Region)]), Inh_PFExprSuffix -> DeterminedVariableStyle
variableStyle_Inh_PFExprSuffix :: DeterminedVariableStyle}
data Syn_PFExprSuffix = Syn_PFExprSuffix {Syn_PFExprSuffix -> PFExprSuffix
copy_Syn_PFExprSuffix :: PFExprSuffix, Syn_PFExprSuffix -> Map String [Region]
globalDefinitions_Syn_PFExprSuffix :: (M.Map String [Region]), Syn_PFExprSuffix -> String
identifier_Syn_PFExprSuffix :: String, Syn_PFExprSuffix -> Bool
isInModule_Syn_PFExprSuffix :: Bool, Syn_PFExprSuffix -> Bool
isSimpleExpression_Syn_PFExprSuffix :: Bool, Syn_PFExprSuffix -> Region
mtokenPos_Syn_PFExprSuffix :: Region, Syn_PFExprSuffix -> [Map String (Bool, Region)]
scopes_Syn_PFExprSuffix :: ([M.Map String (Bool, Region)]), Syn_PFExprSuffix -> DeterminedVariableStyle
variableStyle_Syn_PFExprSuffix :: DeterminedVariableStyle, Syn_PFExprSuffix -> [String -> LintMessage]
warnings_Syn_PFExprSuffix :: ([String -> LintMessage])}
wrap_PFExprSuffix
  :: T_PFExprSuffix
  -> Inh_PFExprSuffix
  -> Syn_PFExprSuffix
wrap_PFExprSuffix :: T_PFExprSuffix -> Inh_PFExprSuffix -> Syn_PFExprSuffix
wrap_PFExprSuffix T_PFExprSuffix
sem (Inh_PFExprSuffix LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (PFExprSuffix
_lhsOcopy, T_UnOp_1
sem_1) = T_PFExprSuffix
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_UnOp_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (PFExprSuffix
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_PFExprSuffix
Syn_PFExprSuffix PFExprSuffix
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Bool
_lhsOisSimpleExpression Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_PFExprSuffix_Call
  :: T_Args
  -> T_PFExprSuffix
sem_PFExprSuffix_Call :: T_Args -> T_PFExprSuffix
sem_PFExprSuffix_Call T_Args
args_ =
  ( case (T_Args
args_) of
      (Args
_argsIcopy, T_Args_1
args_1) ->
        ( case ( ( Args -> PFExprSuffix
Call Args
_argsIcopy
                 )
               ) of
            PFExprSuffix
_copy ->
              ( case ( ( PFExprSuffix
_copy
                       )
                     ) of
                  PFExprSuffix
_lhsOcopy ->
                    ( case ( ( let
                                sem_PFExprSuffix_Call_1 :: T_PFExprSuffix_1
                                sem_PFExprSuffix_Call_1 :: T_UnOp_1
sem_PFExprSuffix_Call_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_argsOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_argsOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_argsOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_argsOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_argsOconfig ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_argsOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_argsOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_argsOmtokenPos ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_argsOloopLevel ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_argsOfuncName ->
                                                                                                    ( case (T_Args_1
args_1 LintSettings
_argsOconfig String
_argsOfuncName Map String [Region]
_argsOglobalDefinitions Bool
_argsOisInModule Bool
_argsOisMeta Int
_argsOloopLevel Region
_argsOmtokenPos Int
_argsOscopeLevel [Map String (Bool, Region)]
_argsOscopes DeterminedVariableStyle
_argsOvariableStyle) of
                                                                                                        (Map String [Region]
_argsIglobalDefinitions, String
_argsIidentifier, Bool
_argsIisInModule, Region
_argsImtokenPos, [Map String (Bool, Region)]
_argsIscopes, DeterminedVariableStyle
_argsIvariableStyle, [String -> LintMessage]
_argsIwarnings) ->
                                                                                                          ( case ( ( Map String [Region]
_argsIglobalDefinitions
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                ( case ( ( String
_argsIidentifier
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    String
_lhsOidentifier ->
                                                                                                                      ( case ( ( Bool
_argsIisInModule
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_lhsOisInModule ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisSimpleExpression ->
                                                                                                                                  ( case ( ( Region
_argsImtokenPos
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_argsIscopes
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                              ( case ( ( DeterminedVariableStyle
_argsIvariableStyle
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                    ( case ( ( [String -> LintMessage]
_argsIwarnings
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                          (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_PFExprSuffix_Call_1
                             )
                           ) of
                        (T_UnOp_1
sem_PFExprSuffix_1) ->
                          (PFExprSuffix
_lhsOcopy, T_UnOp_1
sem_PFExprSuffix_1)
                    )
              )
        )
  )
sem_PFExprSuffix_MetaCall
  :: T_MToken
  -> T_Args
  -> T_PFExprSuffix
sem_PFExprSuffix_MetaCall :: T_MToken -> T_Args -> T_PFExprSuffix
sem_PFExprSuffix_MetaCall T_MToken
fn_ T_Args
args_ =
  ( case (T_Args
args_) of
      (Args
_argsIcopy, T_Args_1
args_1) ->
        ( case (T_MToken
fn_) of
            (MToken
_fnIcopy, Token
_fnImtok, Region
_fnImtokenPos, T_MToken_1
fn_1) ->
              ( case ( ( MToken -> Args -> PFExprSuffix
MetaCall MToken
_fnIcopy Args
_argsIcopy
                       )
                     ) of
                  PFExprSuffix
_copy ->
                    ( case ( ( PFExprSuffix
_copy
                             )
                           ) of
                        PFExprSuffix
_lhsOcopy ->
                          ( case ( ( let
                                      sem_PFExprSuffix_MetaCall_1 :: T_PFExprSuffix_1
                                      sem_PFExprSuffix_MetaCall_1 :: T_UnOp_1
sem_PFExprSuffix_MetaCall_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_fnOscopes ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_fnOmtokenPos ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_fnOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_fnOisInModule ->
                                                                      ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                               )
                                                                             ) of
                                                                          Map String [Region]
_fnOglobalDefinitions ->
                                                                            ( case ( ( String
_lhsIfuncName
                                                                                     )
                                                                                   ) of
                                                                                String
_fnOfuncName ->
                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                           )
                                                                                         ) of
                                                                                      LintSettings
_fnOconfig ->
                                                                                        ( case (T_MToken_1
fn_1 LintSettings
_fnOconfig String
_fnOfuncName Map String [Region]
_fnOglobalDefinitions Bool
_fnOisInModule Bool
_fnOisMeta Region
_fnOmtokenPos [Map String (Bool, Region)]
_fnOscopes) of
                                                                                            (Map String [Region]
_fnIglobalDefinitions, String
_fnIidentifier, Bool
_fnIisInModule, [Map String (Bool, Region)]
_fnIscopes, [String -> LintMessage]
_fnIwarnings) ->
                                                                                              ( case ( ( [Map String (Bool, Region)]
_fnIscopes
                                                                                                       )
                                                                                                     ) of
                                                                                                  [Map String (Bool, Region)]
_argsOscopes ->
                                                                                                    ( case ( ( Bool
_lhsIisMeta
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_argsOisMeta ->
                                                                                                          ( case ( ( Bool
_fnIisInModule
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_argsOisInModule ->
                                                                                                                ( case ( ( Map String [Region]
_fnIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_argsOglobalDefinitions ->
                                                                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          LintSettings
_argsOconfig ->
                                                                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                DeterminedVariableStyle
_argsOvariableStyle ->
                                                                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Int
_argsOscopeLevel ->
                                                                                                                                        ( case ( ( Region
_fnImtokenPos
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Region
_argsOmtokenPos ->
                                                                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Int
_argsOloopLevel ->
                                                                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        String
_argsOfuncName ->
                                                                                                                                                          ( case (T_Args_1
args_1 LintSettings
_argsOconfig String
_argsOfuncName Map String [Region]
_argsOglobalDefinitions Bool
_argsOisInModule Bool
_argsOisMeta Int
_argsOloopLevel Region
_argsOmtokenPos Int
_argsOscopeLevel [Map String (Bool, Region)]
_argsOscopes DeterminedVariableStyle
_argsOvariableStyle) of
                                                                                                                                                              (Map String [Region]
_argsIglobalDefinitions, String
_argsIidentifier, Bool
_argsIisInModule, Region
_argsImtokenPos, [Map String (Bool, Region)]
_argsIscopes, DeterminedVariableStyle
_argsIvariableStyle, [String -> LintMessage]
_argsIwarnings) ->
                                                                                                                                                                ( case ( ( Map String [Region]
_argsIglobalDefinitions
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_fnIidentifier String
_argsIidentifier)
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                            ( case ( ( Bool
_argsIisInModule
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                                        ( case ( ( Region
_argsImtokenPos
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_argsIscopes
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_argsIvariableStyle
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_fnIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_argsIwarnings
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_UnOp_1
sem_PFExprSuffix_MetaCall_1
                                   )
                                 ) of
                              (T_UnOp_1
sem_PFExprSuffix_1) ->
                                (PFExprSuffix
_lhsOcopy, T_UnOp_1
sem_PFExprSuffix_1)
                          )
                    )
              )
        )
  )
sem_PFExprSuffix_ExprIndex
  :: T_MExpr
  -> T_PFExprSuffix
sem_PFExprSuffix_ExprIndex :: T_MExpr -> T_PFExprSuffix
sem_PFExprSuffix_ExprIndex T_MExpr
index_ =
  ( case (T_MExpr
index_) of
      (MExpr
_indexIcopy, Region
_indexImtokenPos, T_MExpr_1
index_1) ->
        ( case ( ( MExpr -> PFExprSuffix
ExprIndex MExpr
_indexIcopy
                 )
               ) of
            PFExprSuffix
_copy ->
              ( case ( ( PFExprSuffix
_copy
                       )
                     ) of
                  PFExprSuffix
_lhsOcopy ->
                    ( case ( ( let
                                sem_PFExprSuffix_ExprIndex_1 :: T_PFExprSuffix_1
                                sem_PFExprSuffix_ExprIndex_1 :: T_UnOp_1
sem_PFExprSuffix_ExprIndex_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_indexOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_indexOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_indexOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_indexOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_indexOconfig ->
                                                                      ( case ( ( forall a. Maybe a
Nothing
                                                                               )
                                                                             ) of
                                                                          Maybe MToken
_indexOvarBeingDefined ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_indexOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_indexOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_indexOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_indexOloopLevel ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_indexOfuncName ->
                                                                                                          ( case ( ( Bool
True
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_indexOtopLevel ->
                                                                                                                ( case ( ( Bool
True
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_indexOinParentheses ->
                                                                                                                      ( case ( ( Bool
False
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_indexOisNegation ->
                                                                                                                            ( case (T_MExpr_1
index_1 LintSettings
_indexOconfig String
_indexOfuncName Map String [Region]
_indexOglobalDefinitions Bool
_indexOinParentheses Bool
_indexOisInModule Bool
_indexOisMeta Bool
_indexOisNegation Int
_indexOloopLevel Region
_indexOmtokenPos Int
_indexOscopeLevel [Map String (Bool, Region)]
_indexOscopes Bool
_indexOtopLevel Maybe MToken
_indexOvarBeingDefined DeterminedVariableStyle
_indexOvariableStyle) of
                                                                                                                                (Map String [Region]
_indexIglobalDefinitions, String
_indexIidentifier, Bool
_indexIisInModule, Bool
_indexIisSimpleExpression, Maybe MToken
_indexIisSingleVar, [Map String (Bool, Region)]
_indexIscopes, DeterminedVariableStyle
_indexIvariableStyle, [String -> LintMessage]
_indexIwarnings) ->
                                                                                                                                  ( case ( ( Map String [Region]
_indexIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                        ( case ( ( String
_indexIidentifier
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            String
_lhsOidentifier ->
                                                                                                                                              ( case ( ( Bool
_indexIisInModule
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Bool
_lhsOisInModule ->
                                                                                                                                                    ( case ( ( Bool
_indexIisSimpleExpression
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Bool
_lhsOisSimpleExpression ->
                                                                                                                                                          ( case ( ( Region
_indexImtokenPos
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Region
_lhsOmtokenPos ->
                                                                                                                                                                ( case ( ( [Map String (Bool, Region)]
_indexIscopes
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_indexIvariableStyle
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                            ( case ( ( [String -> LintMessage]
_indexIwarnings
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_PFExprSuffix_ExprIndex_1
                             )
                           ) of
                        (T_UnOp_1
sem_PFExprSuffix_1) ->
                          (PFExprSuffix
_lhsOcopy, T_UnOp_1
sem_PFExprSuffix_1)
                    )
              )
        )
  )
sem_PFExprSuffix_DotIndex
  :: T_MToken
  -> T_PFExprSuffix
sem_PFExprSuffix_DotIndex :: T_MToken -> T_PFExprSuffix
sem_PFExprSuffix_DotIndex T_MToken
index_ =
  ( case (T_MToken
index_) of
      (MToken
_indexIcopy, Token
_indexImtok, Region
_indexImtokenPos, T_MToken_1
index_1) ->
        ( case ( ( MToken -> PFExprSuffix
DotIndex MToken
_indexIcopy
                 )
               ) of
            PFExprSuffix
_copy ->
              ( case ( ( PFExprSuffix
_copy
                       )
                     ) of
                  PFExprSuffix
_lhsOcopy ->
                    ( case ( ( let
                                sem_PFExprSuffix_DotIndex_1 :: T_PFExprSuffix_1
                                sem_PFExprSuffix_DotIndex_1 :: T_UnOp_1
sem_PFExprSuffix_DotIndex_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_indexOglobalDefinitions ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_indexOscopes ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_indexOmtokenPos ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_indexOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_indexOisInModule ->
                                                                      ( case ( ( String
_lhsIfuncName
                                                                               )
                                                                             ) of
                                                                          String
_indexOfuncName ->
                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                     )
                                                                                   ) of
                                                                                LintSettings
_indexOconfig ->
                                                                                  ( case (T_MToken_1
index_1 LintSettings
_indexOconfig String
_indexOfuncName Map String [Region]
_indexOglobalDefinitions Bool
_indexOisInModule Bool
_indexOisMeta Region
_indexOmtokenPos [Map String (Bool, Region)]
_indexOscopes) of
                                                                                      (Map String [Region]
_indexIglobalDefinitions, String
_indexIidentifier, Bool
_indexIisInModule, [Map String (Bool, Region)]
_indexIscopes, [String -> LintMessage]
_indexIwarnings) ->
                                                                                        ( case ( ( Map String [Region]
_indexIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                              ( case ( ( String
_indexIidentifier
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_lhsOidentifier ->
                                                                                                    ( case ( ( Bool
_indexIisInModule
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_lhsOisInModule ->
                                                                                                          ( case ( ( Bool
True
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_lhsOisSimpleExpression ->
                                                                                                                ( case ( ( Region
_indexImtokenPos
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Region
_lhsOmtokenPos ->
                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_indexIscopes
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                  ( case ( ( [String -> LintMessage]
_indexIwarnings
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_PFExprSuffix_DotIndex_1
                             )
                           ) of
                        (T_UnOp_1
sem_PFExprSuffix_1) ->
                          (PFExprSuffix
_lhsOcopy, T_UnOp_1
sem_PFExprSuffix_1)
                    )
              )
        )
  )

-- PrefixExp ---------------------------------------------------
-- cata
sem_PrefixExp
  :: PrefixExp
  -> T_PrefixExp
sem_PrefixExp :: PrefixExp -> T_PrefixExp
sem_PrefixExp (PFVar MToken
_name ExprSuffixList
_suffixes) =
  (T_MToken -> T_ExprSuffixList -> T_PrefixExp
sem_PrefixExp_PFVar (MToken -> T_MToken
sem_MToken MToken
_name) (ExprSuffixList -> T_ExprSuffixList
sem_ExprSuffixList ExprSuffixList
_suffixes))
sem_PrefixExp (ExprVar MExpr
_expr ExprSuffixList
_suffixes) =
  (T_MExpr -> T_ExprSuffixList -> T_PrefixExp
sem_PrefixExp_ExprVar (MExpr -> T_MExpr
sem_MExpr MExpr
_expr) (ExprSuffixList -> T_ExprSuffixList
sem_ExprSuffixList ExprSuffixList
_suffixes))

-- semantic domain
type T_PrefixExp = (PrefixExp, Bool, Region, (Maybe MToken), T_PrefixExp_1)
type T_PrefixExp_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Bool
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> Bool
  -> (Maybe MToken)
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, (Maybe MToken), ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_PrefixExp = Inh_PrefixExp {Inh_PrefixExp -> LintSettings
config_Inh_PrefixExp :: LintSettings, Inh_PrefixExp -> String
funcName_Inh_PrefixExp :: String, Inh_PrefixExp -> Map String [Region]
globalDefinitions_Inh_PrefixExp :: (M.Map String [Region]), Inh_PrefixExp -> Bool
inParentheses_Inh_PrefixExp :: Bool, Inh_PrefixExp -> Bool
isInModule_Inh_PrefixExp :: Bool, Inh_PrefixExp -> Bool
isMeta_Inh_PrefixExp :: Bool, Inh_PrefixExp -> Bool
isNegation_Inh_PrefixExp :: Bool, Inh_PrefixExp -> Int
loopLevel_Inh_PrefixExp :: Int, Inh_PrefixExp -> Region
mtokenPos_Inh_PrefixExp :: Region, Inh_PrefixExp -> Bool
registerVarUse_Inh_PrefixExp :: Bool, Inh_PrefixExp -> Int
scopeLevel_Inh_PrefixExp :: Int, Inh_PrefixExp -> [Map String (Bool, Region)]
scopes_Inh_PrefixExp :: ([M.Map String (Bool, Region)]), Inh_PrefixExp -> Bool
topLevel_Inh_PrefixExp :: Bool, Inh_PrefixExp -> Maybe MToken
varBeingDefined_Inh_PrefixExp :: (Maybe MToken), Inh_PrefixExp -> DeterminedVariableStyle
variableStyle_Inh_PrefixExp :: DeterminedVariableStyle}
data Syn_PrefixExp = Syn_PrefixExp {Syn_PrefixExp -> PrefixExp
copy_Syn_PrefixExp :: PrefixExp, Syn_PrefixExp -> Map String [Region]
globalDefinitions_Syn_PrefixExp :: (M.Map String [Region]), Syn_PrefixExp -> Bool
hasSuffixes_Syn_PrefixExp :: Bool, Syn_PrefixExp -> String
identifier_Syn_PrefixExp :: String, Syn_PrefixExp -> Bool
isInModule_Syn_PrefixExp :: Bool, Syn_PrefixExp -> Bool
isSimpleExpression_Syn_PrefixExp :: Bool, Syn_PrefixExp -> Maybe MToken
isSingleVar_Syn_PrefixExp :: (Maybe MToken), Syn_PrefixExp -> Region
mtokenPos_Syn_PrefixExp :: Region, Syn_PrefixExp -> [Map String (Bool, Region)]
scopes_Syn_PrefixExp :: ([M.Map String (Bool, Region)]), Syn_PrefixExp -> Maybe MToken
varName_Syn_PrefixExp :: (Maybe MToken), Syn_PrefixExp -> DeterminedVariableStyle
variableStyle_Syn_PrefixExp :: DeterminedVariableStyle, Syn_PrefixExp -> [String -> LintMessage]
warnings_Syn_PrefixExp :: ([String -> LintMessage])}
wrap_PrefixExp
  :: T_PrefixExp
  -> Inh_PrefixExp
  -> Syn_PrefixExp
wrap_PrefixExp :: T_PrefixExp -> Inh_PrefixExp -> Syn_PrefixExp
wrap_PrefixExp T_PrefixExp
sem (Inh_PrefixExp LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Bool
_lhsIregisterVarUse Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (PrefixExp
_lhsOcopy, Bool
_lhsOhasSuffixes, Region
_lhsOmtokenPos, Maybe MToken
_lhsOvarName, T_PrefixExp_1
sem_1) = T_PrefixExp
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_PrefixExp_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIinParentheses Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIisNegation Int
_lhsIloopLevel Region
_lhsImtokenPos Bool
_lhsIregisterVarUse Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes Bool
_lhsItopLevel Maybe MToken
_lhsIvarBeingDefined DeterminedVariableStyle
_lhsIvariableStyle
    in
      (PrefixExp
-> Map String [Region]
-> Bool
-> String
-> Bool
-> Bool
-> Maybe MToken
-> Region
-> [Map String (Bool, Region)]
-> Maybe MToken
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_PrefixExp
Syn_PrefixExp PrefixExp
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions Bool
_lhsOhasSuffixes String
_lhsOidentifier Bool
_lhsOisInModule Bool
_lhsOisSimpleExpression Maybe MToken
_lhsOisSingleVar Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes Maybe MToken
_lhsOvarName DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_PrefixExp_PFVar
  :: T_MToken
  -> T_ExprSuffixList
  -> T_PrefixExp
sem_PrefixExp_PFVar :: T_MToken -> T_ExprSuffixList -> T_PrefixExp
sem_PrefixExp_PFVar T_MToken
name_ T_ExprSuffixList
suffixes_ =
  ( case (T_ExprSuffixList
suffixes_) of
      (ExprSuffixList
_suffixesIcopy, T_UnOp_1
suffixes_1) ->
        ( case (T_MToken
name_) of
            (MToken
_nameIcopy, Token
_nameImtok, Region
_nameImtokenPos, T_MToken_1
name_1) ->
              ( case ( ( MToken -> ExprSuffixList -> PrefixExp
PFVar MToken
_nameIcopy ExprSuffixList
_suffixesIcopy
                       )
                     ) of
                  PrefixExp
_copy ->
                    ( case ( ( PrefixExp
_copy
                             )
                           ) of
                        PrefixExp
_lhsOcopy ->
                          ( case ( ( Bool -> Bool
not forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall (t :: * -> *) a. Foldable t => t a -> Bool
null forall a b. (a -> b) -> a -> b
$ ExprSuffixList
_suffixesIcopy
                                   )
                                 ) of
                              Bool
_lhsOhasSuffixes ->
                                ( case ( ( Region
_nameImtokenPos
                                         )
                                       ) of
                                    Region
_lhsOmtokenPos ->
                                      ( case ( ( forall a. a -> Maybe a
Just MToken
_nameIcopy
                                               )
                                             ) of
                                          Maybe MToken
_varName ->
                                            ( case ( ( Maybe MToken
_varName
                                                     )
                                                   ) of
                                                Maybe MToken
_lhsOvarName ->
                                                  ( case ( ( let
                                                              sem_PrefixExp_PFVar_1 :: T_PrefixExp_1
                                                              sem_PrefixExp_PFVar_1 :: T_PrefixExp_1
sem_PrefixExp_PFVar_1 =
                                                                ( \LintSettings
_lhsIconfig
                                                                   String
_lhsIfuncName
                                                                   Map String [Region]
_lhsIglobalDefinitions
                                                                   Bool
_lhsIinParentheses
                                                                   Bool
_lhsIisInModule
                                                                   Bool
_lhsIisMeta
                                                                   Bool
_lhsIisNegation
                                                                   Int
_lhsIloopLevel
                                                                   Region
_lhsImtokenPos
                                                                   Bool
_lhsIregisterVarUse
                                                                   Int
_lhsIscopeLevel
                                                                   [Map String (Bool, Region)]
_lhsIscopes
                                                                   Bool
_lhsItopLevel
                                                                   Maybe MToken
_lhsIvarBeingDefined
                                                                   DeterminedVariableStyle
_lhsIvariableStyle ->
                                                                      ( case ( ( if forall a. Maybe a -> Bool
isJust Maybe MToken
_lhsIvarBeingDefined Bool -> Bool -> Bool
&& Maybe MToken
_lhsIvarBeingDefined forall a. Eq a => a -> a -> Bool
== Maybe MToken
_varName
                                                                                  then case [Map String (Bool, Region)]
_lhsIscopes of
                                                                                    Map String (Bool, Region)
deepestScope : [Map String (Bool, Region)]
otherScopes -> Map String (Bool, Region)
deepestScope forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
-> Region -> String -> Bool -> [Map String (Bool, Region)]
registerVariable [Map String (Bool, Region)]
otherScopes Region
_nameImtokenPos (forall a. Show a => a -> String
show Token
_nameImtok) Bool
_lhsIregisterVarUse
                                                                                    [Map String (Bool, Region)]
noScopes -> [Map String (Bool, Region)]
noScopes
                                                                                  else [Map String (Bool, Region)]
-> Region -> String -> Bool -> [Map String (Bool, Region)]
registerVariable [Map String (Bool, Region)]
_lhsIscopes Region
_nameImtokenPos (forall a. Show a => a -> String
show Token
_nameImtok) Bool
_lhsIregisterVarUse
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_foundVars ->
                                                                            ( case ( ( [Map String (Bool, Region)]
_foundVars
                                                                                     )
                                                                                   ) of
                                                                                [Map String (Bool, Region)]
_nameOscopes ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_nameOmtokenPos ->
                                                                                        ( case ( ( Bool
_lhsIisMeta
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_nameOisMeta ->
                                                                                              ( case ( ( Bool
_lhsIisInModule
                                                                                                       )
                                                                                                     ) of
                                                                                                  Bool
_nameOisInModule ->
                                                                                                    ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                             )
                                                                                                           ) of
                                                                                                        Map String [Region]
_nameOglobalDefinitions ->
                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              String
_nameOfuncName ->
                                                                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    LintSettings
_nameOconfig ->
                                                                                                                      ( case (T_MToken_1
name_1 LintSettings
_nameOconfig String
_nameOfuncName Map String [Region]
_nameOglobalDefinitions Bool
_nameOisInModule Bool
_nameOisMeta Region
_nameOmtokenPos [Map String (Bool, Region)]
_nameOscopes) of
                                                                                                                          (Map String [Region]
_nameIglobalDefinitions, String
_nameIidentifier, Bool
_nameIisInModule, [Map String (Bool, Region)]
_nameIscopes, [String -> LintMessage]
_nameIwarnings) ->
                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_nameIscopes
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                [Map String (Bool, Region)]
_suffixesOscopes ->
                                                                                                                                  ( case ( ( Bool
_lhsIisMeta
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_suffixesOisMeta ->
                                                                                                                                        ( case ( ( Bool
_nameIisInModule
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_suffixesOisInModule ->
                                                                                                                                              ( case ( ( Map String [Region]
_nameIglobalDefinitions
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Map String [Region]
_suffixesOglobalDefinitions ->
                                                                                                                                                    ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        LintSettings
_suffixesOconfig ->
                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              DeterminedVariableStyle
_suffixesOvariableStyle ->
                                                                                                                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_suffixesOscopeLevel ->
                                                                                                                                                                      ( case ( ( Region
_nameImtokenPos
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Region
_suffixesOmtokenPos ->
                                                                                                                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Int
_suffixesOloopLevel ->
                                                                                                                                                                                  ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      String
_suffixesOfuncName ->
                                                                                                                                                                                        ( case (T_UnOp_1
suffixes_1 LintSettings
_suffixesOconfig String
_suffixesOfuncName Map String [Region]
_suffixesOglobalDefinitions Bool
_suffixesOisInModule Bool
_suffixesOisMeta Int
_suffixesOloopLevel Region
_suffixesOmtokenPos Int
_suffixesOscopeLevel [Map String (Bool, Region)]
_suffixesOscopes DeterminedVariableStyle
_suffixesOvariableStyle) of
                                                                                                                                                                                            (Map String [Region]
_suffixesIglobalDefinitions, String
_suffixesIidentifier, Bool
_suffixesIisInModule, Bool
_suffixesIisSimpleExpression, Region
_suffixesImtokenPos, [Map String (Bool, Region)]
_suffixesIscopes, DeterminedVariableStyle
_suffixesIvariableStyle, [String -> LintMessage]
_suffixesIwarnings) ->
                                                                                                                                                                                              ( case ( ( Map String [Region]
_suffixesIglobalDefinitions
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                    ( case ( ( (forall a b. a -> b -> a
const String
_nameIidentifier String
_suffixesIidentifier)
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        String
_lhsOidentifier ->
                                                                                                                                                                                                          ( case ( ( Bool
_suffixesIisInModule
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Bool
_lhsOisInModule ->
                                                                                                                                                                                                                ( case ( ( Bool
_suffixesIisSimpleExpression
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                                                                      ( case ( ( if forall (t :: * -> *) a. Foldable t => t a -> Bool
null ExprSuffixList
_suffixesIcopy then Maybe MToken
_varName else forall a. Maybe a
Nothing
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_suffixesIscopes
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                  ( case ( ( DeterminedVariableStyle
_suffixesIvariableStyle
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                        ( case ( ( [String -> LintMessage]
_nameIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_suffixesIwarnings
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                              ( case ( ( MToken -> String
tokenLabel MToken
_nameIcopy
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  String
_name ->
                                                                                                                                                                                                                                                    ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_beginnerMistakes LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Bool
_lhsIisMeta Bool -> Bool -> Bool
|| String
_name forall a. Eq a => a -> a -> Bool
/= String
"self"
                                                                                                                                                                                                                                                                then forall a. a -> a
id
                                                                                                                                                                                                                                                                else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_nameImtokenPos Issue
SelfInNonMeta
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f3 ->
                                                                                                                                                                                                                                                          ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_beginnerMistakes LintSettings
_lhsIconfig)
                                                                                                                                                                                                                                                                      Bool -> Bool -> Bool
|| Bool -> Bool
not Bool
_lhsIisMeta
                                                                                                                                                                                                                                                                      Bool -> Bool -> Bool
|| String
_name forall a. Eq a => a -> a -> Bool
/= String
"self"
                                                                                                                                                                                                                                                                      Bool -> Bool -> Bool
|| String
_lhsIfuncName forall a. Eq a => a -> a -> Bool
/= String
"ENT"
                                                                                                                                                                                                                                                                      Bool -> Bool -> Bool
|| String
_suffixesIidentifier forall a. Eq a => a -> a -> Bool
/= String
"Entity"
                                                                                                                                                                                                                                                                      then forall a. a -> a
id
                                                                                                                                                                                                                                                                      else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_nameImtokenPos Issue
SelfEntity
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2 ->
                                                                                                                                                                                                                                                                ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_beginnerMistakes LintSettings
_lhsIconfig)
                                                                                                                                                                                                                                                                            Bool -> Bool -> Bool
|| Bool -> Bool
not Bool
_lhsIisMeta
                                                                                                                                                                                                                                                                            Bool -> Bool -> Bool
|| String
_name forall a. Eq a => a -> a -> Bool
/= String
"self"
                                                                                                                                                                                                                                                                            Bool -> Bool -> Bool
|| String
_lhsIfuncName forall a. Eq a => a -> a -> Bool
/= String
"SWEP"
                                                                                                                                                                                                                                                                            Bool -> Bool -> Bool
|| String
_suffixesIidentifier forall a. Eq a => a -> a -> Bool
/= String
"Weapon"
                                                                                                                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                                                                                                                            else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_nameImtokenPos Issue
SelfWeapon
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f3]
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                             in
                                                              T_PrefixExp_1
sem_PrefixExp_PFVar_1
                                                           )
                                                         ) of
                                                      (T_PrefixExp_1
sem_PrefixExp_1) ->
                                                        (PrefixExp
_lhsOcopy, Bool
_lhsOhasSuffixes, Region
_lhsOmtokenPos, Maybe MToken
_lhsOvarName, T_PrefixExp_1
sem_PrefixExp_1)
                                                  )
                                            )
                                      )
                                )
                          )
                    )
              )
        )
  )
sem_PrefixExp_ExprVar
  :: T_MExpr
  -> T_ExprSuffixList
  -> T_PrefixExp
sem_PrefixExp_ExprVar :: T_MExpr -> T_ExprSuffixList -> T_PrefixExp
sem_PrefixExp_ExprVar T_MExpr
expr_ T_ExprSuffixList
suffixes_ =
  ( case (T_ExprSuffixList
suffixes_) of
      (ExprSuffixList
_suffixesIcopy, T_UnOp_1
suffixes_1) ->
        ( case (T_MExpr
expr_) of
            (MExpr
_exprIcopy, Region
_exprImtokenPos, T_MExpr_1
expr_1) ->
              ( case ( ( MExpr -> ExprSuffixList -> PrefixExp
ExprVar MExpr
_exprIcopy ExprSuffixList
_suffixesIcopy
                       )
                     ) of
                  PrefixExp
_copy ->
                    ( case ( ( PrefixExp
_copy
                             )
                           ) of
                        PrefixExp
_lhsOcopy ->
                          ( case ( ( Bool
False
                                   )
                                 ) of
                              Bool
_lhsOhasSuffixes ->
                                ( case ( ( Region
_exprImtokenPos
                                         )
                                       ) of
                                    Region
_lhsOmtokenPos ->
                                      ( case ( ( forall a. Maybe a
Nothing
                                               )
                                             ) of
                                          Maybe MToken
_lhsOvarName ->
                                            ( case ( ( let
                                                        sem_PrefixExp_ExprVar_1 :: T_PrefixExp_1
                                                        sem_PrefixExp_ExprVar_1 :: T_PrefixExp_1
sem_PrefixExp_ExprVar_1 =
                                                          ( \LintSettings
_lhsIconfig
                                                             String
_lhsIfuncName
                                                             Map String [Region]
_lhsIglobalDefinitions
                                                             Bool
_lhsIinParentheses
                                                             Bool
_lhsIisInModule
                                                             Bool
_lhsIisMeta
                                                             Bool
_lhsIisNegation
                                                             Int
_lhsIloopLevel
                                                             Region
_lhsImtokenPos
                                                             Bool
_lhsIregisterVarUse
                                                             Int
_lhsIscopeLevel
                                                             [Map String (Bool, Region)]
_lhsIscopes
                                                             Bool
_lhsItopLevel
                                                             Maybe MToken
_lhsIvarBeingDefined
                                                             DeterminedVariableStyle
_lhsIvariableStyle ->
                                                                ( case ( ( Maybe MToken
_lhsIvarBeingDefined
                                                                         )
                                                                       ) of
                                                                    Maybe MToken
_exprOvarBeingDefined ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_exprOscopes ->
                                                                            ( case ( ( Bool
_lhsIisMeta
                                                                                     )
                                                                                   ) of
                                                                                Bool
_exprOisMeta ->
                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                           )
                                                                                         ) of
                                                                                      LintSettings
_exprOconfig ->
                                                                                        ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                 )
                                                                                               ) of
                                                                                            DeterminedVariableStyle
_exprOvariableStyle ->
                                                                                              ( case ( ( Int
_lhsIscopeLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_exprOscopeLevel ->
                                                                                                    ( case ( ( Region
_lhsImtokenPos
                                                                                                             )
                                                                                                           ) of
                                                                                                        Region
_exprOmtokenPos ->
                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Int
_exprOloopLevel ->
                                                                                                                ( case ( ( Bool
_lhsIisNegation
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_exprOisNegation ->
                                                                                                                      ( case ( ( Bool
_lhsIisInModule
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_exprOisInModule ->
                                                                                                                            ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Map String [Region]
_exprOglobalDefinitions ->
                                                                                                                                  ( case ( ( String
_lhsIfuncName
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      String
_exprOfuncName ->
                                                                                                                                        ( case ( ( Bool
True
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_exprOtopLevel ->
                                                                                                                                              ( case ( ( Bool
True
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Bool
_exprOinParentheses ->
                                                                                                                                                    ( case (T_MExpr_1
expr_1 LintSettings
_exprOconfig String
_exprOfuncName Map String [Region]
_exprOglobalDefinitions Bool
_exprOinParentheses Bool
_exprOisInModule Bool
_exprOisMeta Bool
_exprOisNegation Int
_exprOloopLevel Region
_exprOmtokenPos Int
_exprOscopeLevel [Map String (Bool, Region)]
_exprOscopes Bool
_exprOtopLevel Maybe MToken
_exprOvarBeingDefined DeterminedVariableStyle
_exprOvariableStyle) of
                                                                                                                                                        (Map String [Region]
_exprIglobalDefinitions, String
_exprIidentifier, Bool
_exprIisInModule, Bool
_exprIisSimpleExpression, Maybe MToken
_exprIisSingleVar, [Map String (Bool, Region)]
_exprIscopes, DeterminedVariableStyle
_exprIvariableStyle, [String -> LintMessage]
_exprIwarnings) ->
                                                                                                                                                          ( case ( ( [Map String (Bool, Region)]
_exprIscopes
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [Map String (Bool, Region)]
_suffixesOscopes ->
                                                                                                                                                                ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Bool
_suffixesOisMeta ->
                                                                                                                                                                      ( case ( ( Bool
_exprIisInModule
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Bool
_suffixesOisInModule ->
                                                                                                                                                                            ( case ( ( Map String [Region]
_exprIglobalDefinitions
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Map String [Region]
_suffixesOglobalDefinitions ->
                                                                                                                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      LintSettings
_suffixesOconfig ->
                                                                                                                                                                                        ( case ( ( DeterminedVariableStyle
_exprIvariableStyle
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            DeterminedVariableStyle
_suffixesOvariableStyle ->
                                                                                                                                                                                              ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Int
_suffixesOscopeLevel ->
                                                                                                                                                                                                    ( case ( ( Region
_exprImtokenPos
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Region
_suffixesOmtokenPos ->
                                                                                                                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Int
_suffixesOloopLevel ->
                                                                                                                                                                                                                ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    String
_suffixesOfuncName ->
                                                                                                                                                                                                                      ( case (T_UnOp_1
suffixes_1 LintSettings
_suffixesOconfig String
_suffixesOfuncName Map String [Region]
_suffixesOglobalDefinitions Bool
_suffixesOisInModule Bool
_suffixesOisMeta Int
_suffixesOloopLevel Region
_suffixesOmtokenPos Int
_suffixesOscopeLevel [Map String (Bool, Region)]
_suffixesOscopes DeterminedVariableStyle
_suffixesOvariableStyle) of
                                                                                                                                                                                                                          (Map String [Region]
_suffixesIglobalDefinitions, String
_suffixesIidentifier, Bool
_suffixesIisInModule, Bool
_suffixesIisSimpleExpression, Region
_suffixesImtokenPos, [Map String (Bool, Region)]
_suffixesIscopes, DeterminedVariableStyle
_suffixesIvariableStyle, [String -> LintMessage]
_suffixesIwarnings) ->
                                                                                                                                                                                                                            ( case ( ( Map String [Region]
_suffixesIglobalDefinitions
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                                  ( case ( ( (forall a b. a -> b -> a
const String
_exprIidentifier String
_suffixesIidentifier)
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      String
_lhsOidentifier ->
                                                                                                                                                                                                                                        ( case ( ( Bool
_suffixesIisInModule
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                              ( case ( ( Bool
_exprIisSimpleExpression Bool -> Bool -> Bool
&& Bool
_suffixesIisSimpleExpression
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Bool
_lhsOisSimpleExpression ->
                                                                                                                                                                                                                                                    ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        Maybe MToken
_lhsOisSingleVar ->
                                                                                                                                                                                                                                                          ( case ( ( [Map String (Bool, Region)]
_suffixesIscopes
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_suffixesIvariableStyle
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                      ( case ( ( [String -> LintMessage]
_exprIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_suffixesIwarnings
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                            ( case ( ( if LintSettings -> Bool
lint_redundantParentheses LintSettings
_lhsIconfig Bool -> Bool -> Bool
&& forall (t :: * -> *) a. Foldable t => t a -> Bool
null ExprSuffixList
_suffixesIcopy Bool -> Bool -> Bool
&& (Bool
_lhsIinParentheses Bool -> Bool -> Bool
|| (Bool -> Bool
not Bool
_lhsItopLevel Bool -> Bool -> Bool
&& Bool
_exprIisSimpleExpression))
                                                                                                                                                                                                                                                                                        then (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lhsImtokenPos Issue
UnnecessaryParentheses
                                                                                                                                                                                                                                                                                        else forall a. a -> a
id
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                                  ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisSimpleExpression, Maybe MToken
_lhsOisSingleVar, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                       in
                                                        T_PrefixExp_1
sem_PrefixExp_ExprVar_1
                                                     )
                                                   ) of
                                                (T_PrefixExp_1
sem_PrefixExp_1) ->
                                                  (PrefixExp
_lhsOcopy, Bool
_lhsOhasSuffixes, Region
_lhsOmtokenPos, Maybe MToken
_lhsOvarName, T_PrefixExp_1
sem_PrefixExp_1)
                                            )
                                      )
                                )
                          )
                    )
              )
        )
  )

-- Region ------------------------------------------------------
-- cata
sem_Region
  :: Region
  -> T_Region
sem_Region :: Region -> T_Region
sem_Region (Region LineColPos
_start LineColPos
_end) =
  (LineColPos -> LineColPos -> T_Region
sem_Region_Region LineColPos
_start LineColPos
_end)

-- semantic domain
type T_Region = (Region, String, ([String -> LintMessage]))
data Inh_Region = Inh_Region {}
data Syn_Region = Syn_Region {Syn_Region -> Region
copy_Syn_Region :: Region, Syn_Region -> String
identifier_Syn_Region :: String, Syn_Region -> [String -> LintMessage]
warnings_Syn_Region :: ([String -> LintMessage])}
wrap_Region
  :: T_Region
  -> Inh_Region
  -> Syn_Region
wrap_Region :: T_Region -> Inh_Region -> Syn_Region
wrap_Region T_Region
sem (Inh_Region
Inh_Region) =
  ( let
      (Region
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings) = T_Region
sem
    in
      (Region -> String -> [String -> LintMessage] -> Syn_Region
Syn_Region Region
_lhsOcopy String
_lhsOidentifier [String -> LintMessage]
_lhsOwarnings)
  )
sem_Region_Region
  :: LineColPos
  -> LineColPos
  -> T_Region
sem_Region_Region :: LineColPos -> LineColPos -> T_Region
sem_Region_Region LineColPos
start_ LineColPos
end_ =
  ( case ( ( LineColPos -> LineColPos -> Region
Region LineColPos
start_ LineColPos
end_
           )
         ) of
      Region
_copy ->
        ( case ( ( Region
_copy
                 )
               ) of
            Region
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Region
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )

-- Stat --------------------------------------------------------
-- cata
sem_Stat
  :: Stat
  -> T_Stat
sem_Stat :: Stat -> T_Stat
sem_Stat (Def VarsList
_vars) =
  (T_VarsList -> T_Stat
sem_Stat_Def (VarsList -> T_VarsList
sem_VarsList VarsList
_vars))
sem_Stat (LocDef VarsList
_vars) =
  (T_VarsList -> T_Stat
sem_Stat_LocDef (VarsList -> T_VarsList
sem_VarsList VarsList
_vars))
sem_Stat (AFuncCall PrefixExp
_fn) =
  (T_PrefixExp -> T_Stat
sem_Stat_AFuncCall (PrefixExp -> T_PrefixExp
sem_PrefixExp PrefixExp
_fn))
sem_Stat (ALabel MToken
_lbl) =
  (T_MToken -> T_Stat
sem_Stat_ALabel (MToken -> T_MToken
sem_MToken MToken
_lbl))
sem_Stat (Stat
ABreak) =
  (T_Stat
sem_Stat_ABreak)
sem_Stat (Stat
AContinue) =
  (T_Stat
sem_Stat_AContinue)
sem_Stat (AGoto MToken
_lbl) =
  (T_MToken -> T_Stat
sem_Stat_AGoto (MToken -> T_MToken
sem_MToken MToken
_lbl))
sem_Stat (ADo Block
_body) =
  (T_Block -> T_Stat
sem_Stat_ADo (Block -> T_Block
sem_Block Block
_body))
sem_Stat (AWhile MExpr
_cond Block
_body) =
  (T_MExpr -> T_Block -> T_Stat
sem_Stat_AWhile (MExpr -> T_MExpr
sem_MExpr MExpr
_cond) (Block -> T_Block
sem_Block Block
_body))
sem_Stat (ARepeat Block
_body MExpr
_cond) =
  (T_Block -> T_MExpr -> T_Stat
sem_Stat_ARepeat (Block -> T_Block
sem_Block Block
_body) (MExpr -> T_MExpr
sem_MExpr MExpr
_cond))
sem_Stat (AIf MExpr
_cond Block
_body ElseIfList
_elifs Else
_els) =
  (T_MExpr -> T_Block -> T_ElseIfList -> T_Else -> T_Stat
sem_Stat_AIf (MExpr -> T_MExpr
sem_MExpr MExpr
_cond) (Block -> T_Block
sem_Block Block
_body) (ElseIfList -> T_ElseIfList
sem_ElseIfList ElseIfList
_elifs) (Else -> T_Else
sem_Else Else
_els))
sem_Stat (ANFor MToken
_var MExpr
_val MExpr
_to MExpr
_step Block
_body) =
  (T_MToken -> T_MExpr -> T_MExpr -> T_MExpr -> T_Block -> T_Stat
sem_Stat_ANFor (MToken -> T_MToken
sem_MToken MToken
_var) (MExpr -> T_MExpr
sem_MExpr MExpr
_val) (MExpr -> T_MExpr
sem_MExpr MExpr
_to) (MExpr -> T_MExpr
sem_MExpr MExpr
_step) (Block -> T_Block
sem_Block Block
_body))
sem_Stat (AGFor [MToken]
_vars MExprList
_vals Block
_body) =
  ([MToken] -> T_MExprList -> T_Block -> T_Stat
sem_Stat_AGFor [MToken]
_vars (MExprList -> T_MExprList
sem_MExprList MExprList
_vals) (Block -> T_Block
sem_Block Block
_body))
sem_Stat (AFunc FuncName
_name [MToken]
_args Block
_body) =
  (T_FuncName -> [MToken] -> T_Block -> T_Stat
sem_Stat_AFunc (FuncName -> T_FuncName
sem_FuncName FuncName
_name) [MToken]
_args (Block -> T_Block
sem_Block Block
_body))
sem_Stat (ALocFunc FuncName
_name [MToken]
_args Block
_body) =
  (T_FuncName -> [MToken] -> T_Block -> T_Stat
sem_Stat_ALocFunc (FuncName -> T_FuncName
sem_FuncName FuncName
_name) [MToken]
_args (Block -> T_Block
sem_Block Block
_body))

-- semantic domain
type T_Stat = (Stat, T_Stat_1)
type T_Stat_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_Stat = Inh_Stat {Inh_Stat -> LintSettings
config_Inh_Stat :: LintSettings, Inh_Stat -> String
funcName_Inh_Stat :: String, Inh_Stat -> Map String [Region]
globalDefinitions_Inh_Stat :: (M.Map String [Region]), Inh_Stat -> Bool
isInModule_Inh_Stat :: Bool, Inh_Stat -> Bool
isMeta_Inh_Stat :: Bool, Inh_Stat -> Int
loopLevel_Inh_Stat :: Int, Inh_Stat -> Region
mtokenPos_Inh_Stat :: Region, Inh_Stat -> Int
scopeLevel_Inh_Stat :: Int, Inh_Stat -> [Map String (Bool, Region)]
scopes_Inh_Stat :: ([M.Map String (Bool, Region)]), Inh_Stat -> DeterminedVariableStyle
variableStyle_Inh_Stat :: DeterminedVariableStyle}
data Syn_Stat = Syn_Stat {Syn_Stat -> Stat
copy_Syn_Stat :: Stat, Syn_Stat -> Map String [Region]
globalDefinitions_Syn_Stat :: (M.Map String [Region]), Syn_Stat -> String
identifier_Syn_Stat :: String, Syn_Stat -> Bool
isIfStatement_Syn_Stat :: Bool, Syn_Stat -> Bool
isInModule_Syn_Stat :: Bool, Syn_Stat -> Region
mtokenPos_Syn_Stat :: Region, Syn_Stat -> [Map String (Bool, Region)]
scopes_Syn_Stat :: ([M.Map String (Bool, Region)]), Syn_Stat -> DeterminedVariableStyle
variableStyle_Syn_Stat :: DeterminedVariableStyle, Syn_Stat -> [String -> LintMessage]
warnings_Syn_Stat :: ([String -> LintMessage])}
wrap_Stat
  :: T_Stat
  -> Inh_Stat
  -> Syn_Stat
wrap_Stat :: T_Stat -> Inh_Stat -> Syn_Stat
wrap_Stat T_Stat
sem (Inh_Stat LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (Stat
_lhsOcopy, T_UnOp_1
sem_1) = T_Stat
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_UnOp_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (Stat
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_Stat
Syn_Stat Stat
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisIfStatement Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_Stat_Def
  :: T_VarsList
  -> T_Stat
sem_Stat_Def :: T_VarsList -> T_Stat
sem_Stat_Def T_VarsList
vars_ =
  ( case (T_VarsList
vars_) of
      (VarsList
_varsIcopy, T_Declaration_1
vars_1) ->
        ( case ( ( VarsList -> Stat
Def VarsList
_varsIcopy
                 )
               ) of
            Stat
_copy ->
              ( case ( ( Stat
_copy
                       )
                     ) of
                  Stat
_lhsOcopy ->
                    ( case ( ( let
                                sem_Stat_Def_1 :: T_Stat_1
                                sem_Stat_Def_1 :: T_UnOp_1
sem_Stat_Def_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_varsOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_varsOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_varsOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_varsOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_varsOconfig ->
                                                                      ( case ( ( Bool
False
                                                                               )
                                                                             ) of
                                                                          Bool
_varsOlocalDefinition ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_varsOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_varsOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_varsOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_varsOloopLevel ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_varsOfuncName ->
                                                                                                          ( case (T_Declaration_1
vars_1 LintSettings
_varsOconfig String
_varsOfuncName Map String [Region]
_varsOglobalDefinitions Bool
_varsOisInModule Bool
_varsOisMeta Bool
_varsOlocalDefinition Int
_varsOloopLevel Region
_varsOmtokenPos Int
_varsOscopeLevel [Map String (Bool, Region)]
_varsOscopes DeterminedVariableStyle
_varsOvariableStyle) of
                                                                                                              (Map String [Region]
_varsIglobalDefinitions, String
_varsIidentifier, Bool
_varsIisInModule, Region
_varsImtokenPos, [Map String (Bool, Region)]
_varsIscopes, DeterminedVariableStyle
_varsIvariableStyle, [String -> LintMessage]
_varsIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_varsIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_varsIidentifier
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                  ( case ( ( Bool
_varsIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                        ( case ( ( Region
_varsImtokenPos
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_varsIscopes
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_varsIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                          ( case ( ( [String -> LintMessage]
_varsIwarnings
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_Stat_Def_1
                             )
                           ) of
                        (T_UnOp_1
sem_Stat_1) ->
                          (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                    )
              )
        )
  )
sem_Stat_LocDef
  :: T_VarsList
  -> T_Stat
sem_Stat_LocDef :: T_VarsList -> T_Stat
sem_Stat_LocDef T_VarsList
vars_ =
  ( case (T_VarsList
vars_) of
      (VarsList
_varsIcopy, T_Declaration_1
vars_1) ->
        ( case ( ( VarsList -> Stat
LocDef VarsList
_varsIcopy
                 )
               ) of
            Stat
_copy ->
              ( case ( ( Stat
_copy
                       )
                     ) of
                  Stat
_lhsOcopy ->
                    ( case ( ( let
                                sem_Stat_LocDef_1 :: T_Stat_1
                                sem_Stat_LocDef_1 :: T_UnOp_1
sem_Stat_LocDef_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_varsOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_varsOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_varsOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_varsOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_varsOconfig ->
                                                                      ( case ( ( Bool
True
                                                                               )
                                                                             ) of
                                                                          Bool
_varsOlocalDefinition ->
                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                     )
                                                                                   ) of
                                                                                DeterminedVariableStyle
_varsOvariableStyle ->
                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_varsOscopeLevel ->
                                                                                        ( case ( ( Region
_lhsImtokenPos
                                                                                                 )
                                                                                               ) of
                                                                                            Region
_varsOmtokenPos ->
                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                       )
                                                                                                     ) of
                                                                                                  Int
_varsOloopLevel ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_varsOfuncName ->
                                                                                                          ( case (T_Declaration_1
vars_1 LintSettings
_varsOconfig String
_varsOfuncName Map String [Region]
_varsOglobalDefinitions Bool
_varsOisInModule Bool
_varsOisMeta Bool
_varsOlocalDefinition Int
_varsOloopLevel Region
_varsOmtokenPos Int
_varsOscopeLevel [Map String (Bool, Region)]
_varsOscopes DeterminedVariableStyle
_varsOvariableStyle) of
                                                                                                              (Map String [Region]
_varsIglobalDefinitions, String
_varsIidentifier, Bool
_varsIisInModule, Region
_varsImtokenPos, [Map String (Bool, Region)]
_varsIscopes, DeterminedVariableStyle
_varsIvariableStyle, [String -> LintMessage]
_varsIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_varsIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_varsIidentifier
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                  ( case ( ( Bool
_varsIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                        ( case ( ( Region
_varsImtokenPos
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_varsIscopes
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_varsIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                          ( case ( ( [String -> LintMessage]
_varsIwarnings
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_Stat_LocDef_1
                             )
                           ) of
                        (T_UnOp_1
sem_Stat_1) ->
                          (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                    )
              )
        )
  )
sem_Stat_AFuncCall
  :: T_PrefixExp
  -> T_Stat
sem_Stat_AFuncCall :: T_PrefixExp -> T_Stat
sem_Stat_AFuncCall T_PrefixExp
fn_ =
  ( case (T_PrefixExp
fn_) of
      (PrefixExp
_fnIcopy, Bool
_fnIhasSuffixes, Region
_fnImtokenPos, Maybe MToken
_fnIvarName, T_PrefixExp_1
fn_1) ->
        ( case ( ( PrefixExp -> Stat
AFuncCall PrefixExp
_fnIcopy
                 )
               ) of
            Stat
_copy ->
              ( case ( ( Stat
_copy
                       )
                     ) of
                  Stat
_lhsOcopy ->
                    ( case ( ( let
                                sem_Stat_AFuncCall_1 :: T_Stat_1
                                sem_Stat_AFuncCall_1 :: T_UnOp_1
sem_Stat_AFuncCall_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                 )
                                               ) of
                                            [Map String (Bool, Region)]
_fnOscopes ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_fnOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_fnOisInModule ->
                                                          ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                   )
                                                                 ) of
                                                              Map String [Region]
_fnOglobalDefinitions ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_fnOconfig ->
                                                                      ( case ( ( forall a. Maybe a
Nothing
                                                                               )
                                                                             ) of
                                                                          Maybe MToken
_fnOvarBeingDefined ->
                                                                            ( case ( ( Bool
True
                                                                                     )
                                                                                   ) of
                                                                                Bool
_fnOregisterVarUse ->
                                                                                  ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                           )
                                                                                         ) of
                                                                                      DeterminedVariableStyle
_fnOvariableStyle ->
                                                                                        ( case ( ( Int
_lhsIscopeLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_fnOscopeLevel ->
                                                                                              ( case ( ( Region
_lhsImtokenPos
                                                                                                       )
                                                                                                     ) of
                                                                                                  Region
_fnOmtokenPos ->
                                                                                                    ( case ( ( Int
_lhsIloopLevel
                                                                                                             )
                                                                                                           ) of
                                                                                                        Int
_fnOloopLevel ->
                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              String
_fnOfuncName ->
                                                                                                                ( case ( ( Bool
True
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_fnOtopLevel ->
                                                                                                                      ( case ( ( Bool
False
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_fnOinParentheses ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_fnOisNegation ->
                                                                                                                                  ( case (T_PrefixExp_1
fn_1 LintSettings
_fnOconfig String
_fnOfuncName Map String [Region]
_fnOglobalDefinitions Bool
_fnOinParentheses Bool
_fnOisInModule Bool
_fnOisMeta Bool
_fnOisNegation Int
_fnOloopLevel Region
_fnOmtokenPos Bool
_fnOregisterVarUse Int
_fnOscopeLevel [Map String (Bool, Region)]
_fnOscopes Bool
_fnOtopLevel Maybe MToken
_fnOvarBeingDefined DeterminedVariableStyle
_fnOvariableStyle) of
                                                                                                                                      (Map String [Region]
_fnIglobalDefinitions, String
_fnIidentifier, Bool
_fnIisInModule, Bool
_fnIisSimpleExpression, Maybe MToken
_fnIisSingleVar, [Map String (Bool, Region)]
_fnIscopes, DeterminedVariableStyle
_fnIvariableStyle, [String -> LintMessage]
_fnIwarnings) ->
                                                                                                                                        ( case ( ( Map String [Region]
_fnIglobalDefinitions
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                              ( case ( ( String
_fnIidentifier
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  String
_lhsOidentifier ->
                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Bool
_lhsOisIfStatement ->
                                                                                                                                                          ( case ( ( (MToken -> String
tokenLabel forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Maybe MToken
_fnIvarName) forall a. Eq a => a -> a -> Bool
== forall a. a -> Maybe a
Just String
"module"
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_isModuleCall ->
                                                                                                                                                                ( case ( ( Bool
_lhsIisInModule Bool -> Bool -> Bool
|| Bool
_isModuleCall
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Bool
_lhsOisInModule ->
                                                                                                                                                                      ( case ( ( Region
_fnImtokenPos
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Region
_lhsOmtokenPos ->
                                                                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_fnIscopes
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                  ( case ( ( DeterminedVariableStyle
_fnIvariableStyle
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                        ( case ( ( [String -> LintMessage]
_fnIwarnings
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                              (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_Stat_AFuncCall_1
                             )
                           ) of
                        (T_UnOp_1
sem_Stat_1) ->
                          (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                    )
              )
        )
  )
sem_Stat_ALabel
  :: T_MToken
  -> T_Stat
sem_Stat_ALabel :: T_MToken -> T_Stat
sem_Stat_ALabel T_MToken
lbl_ =
  ( case (T_MToken
lbl_) of
      (MToken
_lblIcopy, Token
_lblImtok, Region
_lblImtokenPos, T_MToken_1
lbl_1) ->
        ( case ( ( MToken -> Stat
ALabel MToken
_lblIcopy
                 )
               ) of
            Stat
_copy ->
              ( case ( ( Stat
_copy
                       )
                     ) of
                  Stat
_lhsOcopy ->
                    ( case ( ( let
                                sem_Stat_ALabel_1 :: T_Stat_1
                                sem_Stat_ALabel_1 :: T_UnOp_1
sem_Stat_ALabel_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_lblOglobalDefinitions ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_lblOscopes ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lblOmtokenPos ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_lblOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_lblOisInModule ->
                                                                      ( case ( ( String
_lhsIfuncName
                                                                               )
                                                                             ) of
                                                                          String
_lblOfuncName ->
                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                     )
                                                                                   ) of
                                                                                LintSettings
_lblOconfig ->
                                                                                  ( case (T_MToken_1
lbl_1 LintSettings
_lblOconfig String
_lblOfuncName Map String [Region]
_lblOglobalDefinitions Bool
_lblOisInModule Bool
_lblOisMeta Region
_lblOmtokenPos [Map String (Bool, Region)]
_lblOscopes) of
                                                                                      (Map String [Region]
_lblIglobalDefinitions, String
_lblIidentifier, Bool
_lblIisInModule, [Map String (Bool, Region)]
_lblIscopes, [String -> LintMessage]
_lblIwarnings) ->
                                                                                        ( case ( ( Map String [Region]
_lblIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                              ( case ( ( String
_lblIidentifier
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_lhsOidentifier ->
                                                                                                    ( case ( ( Bool
False
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_lhsOisIfStatement ->
                                                                                                          ( case ( ( Bool
_lblIisInModule
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_lhsOisInModule ->
                                                                                                                ( case ( ( Region
_lblImtokenPos
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Region
_lhsOmtokenPos ->
                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_lblIscopes
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                  ( case ( ( [String -> LintMessage]
_lblIwarnings
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_Stat_ALabel_1
                             )
                           ) of
                        (T_UnOp_1
sem_Stat_1) ->
                          (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                    )
              )
        )
  )
sem_Stat_ABreak :: T_Stat
sem_Stat_ABreak :: T_Stat
sem_Stat_ABreak =
  ( case ( ( Stat
ABreak
           )
         ) of
      Stat
_copy ->
        ( case ( ( Stat
_copy
                 )
               ) of
            Stat
_lhsOcopy ->
              ( case ( ( let
                          sem_Stat_ABreak_1 :: T_Stat_1
                          sem_Stat_ABreak_1 :: T_UnOp_1
sem_Stat_ABreak_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
False
                                                       )
                                                     ) of
                                                  Bool
_lhsOisIfStatement ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_lhsOisInModule ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_UnOp_1
sem_Stat_ABreak_1
                       )
                     ) of
                  (T_UnOp_1
sem_Stat_1) ->
                    (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
              )
        )
  )
sem_Stat_AContinue :: T_Stat
sem_Stat_AContinue :: T_Stat
sem_Stat_AContinue =
  ( case ( ( Stat
AContinue
           )
         ) of
      Stat
_copy ->
        ( case ( ( Stat
_copy
                 )
               ) of
            Stat
_lhsOcopy ->
              ( case ( ( let
                          sem_Stat_AContinue_1 :: T_Stat_1
                          sem_Stat_AContinue_1 :: T_UnOp_1
sem_Stat_AContinue_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
False
                                                       )
                                                     ) of
                                                  Bool
_lhsOisIfStatement ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_lhsOisInModule ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_UnOp_1
sem_Stat_AContinue_1
                       )
                     ) of
                  (T_UnOp_1
sem_Stat_1) ->
                    (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
              )
        )
  )
sem_Stat_AGoto
  :: T_MToken
  -> T_Stat
sem_Stat_AGoto :: T_MToken -> T_Stat
sem_Stat_AGoto T_MToken
lbl_ =
  ( case (T_MToken
lbl_) of
      (MToken
_lblIcopy, Token
_lblImtok, Region
_lblImtokenPos, T_MToken_1
lbl_1) ->
        ( case ( ( MToken -> Stat
AGoto MToken
_lblIcopy
                 )
               ) of
            Stat
_copy ->
              ( case ( ( Stat
_copy
                       )
                     ) of
                  Stat
_lhsOcopy ->
                    ( case ( ( let
                                sem_Stat_AGoto_1 :: T_Stat_1
                                sem_Stat_AGoto_1 :: T_UnOp_1
sem_Stat_AGoto_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                 )
                                               ) of
                                            Map String [Region]
_lblOglobalDefinitions ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_lblOscopes ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lblOmtokenPos ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_lblOisMeta ->
                                                                ( case ( ( Bool
_lhsIisInModule
                                                                         )
                                                                       ) of
                                                                    Bool
_lblOisInModule ->
                                                                      ( case ( ( String
_lhsIfuncName
                                                                               )
                                                                             ) of
                                                                          String
_lblOfuncName ->
                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                     )
                                                                                   ) of
                                                                                LintSettings
_lblOconfig ->
                                                                                  ( case (T_MToken_1
lbl_1 LintSettings
_lblOconfig String
_lblOfuncName Map String [Region]
_lblOglobalDefinitions Bool
_lblOisInModule Bool
_lblOisMeta Region
_lblOmtokenPos [Map String (Bool, Region)]
_lblOscopes) of
                                                                                      (Map String [Region]
_lblIglobalDefinitions, String
_lblIidentifier, Bool
_lblIisInModule, [Map String (Bool, Region)]
_lblIscopes, [String -> LintMessage]
_lblIwarnings) ->
                                                                                        ( case ( ( Map String [Region]
_lblIglobalDefinitions
                                                                                                 )
                                                                                               ) of
                                                                                            Map String [Region]
_lhsOglobalDefinitions ->
                                                                                              ( case ( ( String
_lblIidentifier
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_lhsOidentifier ->
                                                                                                    ( case ( ( Bool
False
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_lhsOisIfStatement ->
                                                                                                          ( case ( ( Bool
_lblIisInModule
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Bool
_lhsOisInModule ->
                                                                                                                ( case ( ( Region
_lblImtokenPos
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Region
_lhsOmtokenPos ->
                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_lblIscopes
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                  ( case ( ( [String -> LintMessage]
_lblIwarnings
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                        ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_gotos LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_lhsIloopLevel forall a. Ord a => a -> a -> Bool
>= Int
2
                                                                                                                                                    then forall a. a -> a
id
                                                                                                                                                    else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lblImtokenPos Issue
AvoidGoto
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                              ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                    (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_Stat_AGoto_1
                             )
                           ) of
                        (T_UnOp_1
sem_Stat_1) ->
                          (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                    )
              )
        )
  )
sem_Stat_ADo
  :: T_Block
  -> T_Stat
sem_Stat_ADo :: T_Block -> T_Stat
sem_Stat_ADo T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case ( ( Block -> Stat
ADo Block
_bodyIcopy
                 )
               ) of
            Stat
_copy ->
              ( case ( ( Stat
_copy
                       )
                     ) of
                  Stat
_lhsOcopy ->
                    ( case ( ( let
                                sem_Stat_ADo_1 :: T_Stat_1
                                sem_Stat_ADo_1 :: T_UnOp_1
sem_Stat_ADo_1 =
                                  ( \LintSettings
_lhsIconfig
                                     String
_lhsIfuncName
                                     Map String [Region]
_lhsIglobalDefinitions
                                     Bool
_lhsIisInModule
                                     Bool
_lhsIisMeta
                                     Int
_lhsIloopLevel
                                     Region
_lhsImtokenPos
                                     Int
_lhsIscopeLevel
                                     [Map String (Bool, Region)]
_lhsIscopes
                                     DeterminedVariableStyle
_lhsIvariableStyle ->
                                        ( case ( ( Bool
_lhsIisMeta
                                                 )
                                               ) of
                                            Bool
_bodyOisMeta ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_bodyOisInModule ->
                                                    ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                             )
                                                           ) of
                                                        Map String [Region]
_bodyOglobalDefinitions ->
                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                   )
                                                                 ) of
                                                              LintSettings
_bodyOconfig ->
                                                                ( case ( ( forall k a. Map k a
M.empty forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_bodyOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_bodyOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_bodyOmtokenPos ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_bodyOloopLevel ->
                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                       )
                                                                                                     ) of
                                                                                                  String
_bodyOfuncName ->
                                                                                                    ( case ( ( Bool
False
                                                                                                             )
                                                                                                           ) of
                                                                                                        Bool
_bodyOisRepeat ->
                                                                                                          ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                              (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                      ( case ( ( String
_bodyIidentifier
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          String
_lhsOidentifier ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                  ( case ( ( Bool
_bodyIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                        ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                          ( case ( ( [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_bodyIstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                            else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lhsImtokenPos Issue
EmptyDoBlock
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                               in
                                T_UnOp_1
sem_Stat_ADo_1
                             )
                           ) of
                        (T_UnOp_1
sem_Stat_1) ->
                          (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                    )
              )
        )
  )
sem_Stat_AWhile
  :: T_MExpr
  -> T_Block
  -> T_Stat
sem_Stat_AWhile :: T_MExpr -> T_Block -> T_Stat
sem_Stat_AWhile T_MExpr
cond_ T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case (T_MExpr
cond_) of
            (MExpr
_condIcopy, Region
_condImtokenPos, T_MExpr_1
cond_1) ->
              ( case ( ( MExpr -> Block -> Stat
AWhile MExpr
_condIcopy Block
_bodyIcopy
                       )
                     ) of
                  Stat
_copy ->
                    ( case ( ( Stat
_copy
                             )
                           ) of
                        Stat
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Stat_AWhile_1 :: T_Stat_1
                                      sem_Stat_AWhile_1 :: T_UnOp_1
sem_Stat_AWhile_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_bodyOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_condOisInModule ->
                                                          ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                   )
                                                                 ) of
                                                              DeterminedVariableStyle
_condOvariableStyle ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_condOscopes ->
                                                                      ( case ( ( Int
_lhsIscopeLevel
                                                                               )
                                                                             ) of
                                                                          Int
_condOscopeLevel ->
                                                                            ( case ( ( Region
_lhsImtokenPos
                                                                                     )
                                                                                   ) of
                                                                                Region
_condOmtokenPos ->
                                                                                  ( case ( ( Int
_lhsIloopLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_condOloopLevel ->
                                                                                        ( case ( ( Bool
_lhsIisMeta
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_condOisMeta ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_condOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_condOfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_condOconfig ->
                                                                                                                ( case ( ( forall a. Maybe a
Nothing
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Maybe MToken
_condOvarBeingDefined ->
                                                                                                                      ( case ( ( Bool
True
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_condOtopLevel ->
                                                                                                                            ( case ( ( Bool
False
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_condOinParentheses ->
                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_condOisNegation ->
                                                                                                                                        ( case (T_MExpr_1
cond_1 LintSettings
_condOconfig String
_condOfuncName Map String [Region]
_condOglobalDefinitions Bool
_condOinParentheses Bool
_condOisInModule Bool
_condOisMeta Bool
_condOisNegation Int
_condOloopLevel Region
_condOmtokenPos Int
_condOscopeLevel [Map String (Bool, Region)]
_condOscopes Bool
_condOtopLevel Maybe MToken
_condOvarBeingDefined DeterminedVariableStyle
_condOvariableStyle) of
                                                                                                                                            (Map String [Region]
_condIglobalDefinitions, String
_condIidentifier, Bool
_condIisInModule, Bool
_condIisSimpleExpression, Maybe MToken
_condIisSingleVar, [Map String (Bool, Region)]
_condIscopes, DeterminedVariableStyle
_condIvariableStyle, [String -> LintMessage]
_condIwarnings) ->
                                                                                                                                              ( case ( ( Bool
_condIisInModule
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Bool
_bodyOisInModule ->
                                                                                                                                                    ( case ( ( Map String [Region]
_condIglobalDefinitions
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Map String [Region]
_bodyOglobalDefinitions ->
                                                                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              LintSettings
_bodyOconfig ->
                                                                                                                                                                ( case ( ( forall k a. Map k a
M.empty forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_condIscopes
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [Map String (Bool, Region)]
_bodyOscopes ->
                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_condIvariableStyle
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                                                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Int
_bodyOscopeLevel ->
                                                                                                                                                                                  ( case ( ( Region
_condImtokenPos
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Region
_bodyOmtokenPos ->
                                                                                                                                                                                        ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            String
_bodyOfuncName ->
                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_bodyOisRepeat ->
                                                                                                                                                                                                    ( case ( ( Int
_lhsIloopLevel forall a. Num a => a -> a -> a
+ Int
1
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Int
_bodyOloopLevel ->
                                                                                                                                                                                                          ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                                                                                                              (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                                                                                                                ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_condIidentifier String
_bodyIidentifier)
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                                                                            ( case ( ( Bool
False
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                                                  ( case ( ( Bool
_bodyIisInModule
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                        ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_condIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_bodyIstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                                                                                                                            else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lhsImtokenPos Issue
EmptyWhileLoop
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_UnOp_1
sem_Stat_AWhile_1
                                   )
                                 ) of
                              (T_UnOp_1
sem_Stat_1) ->
                                (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                          )
                    )
              )
        )
  )
sem_Stat_ARepeat
  :: T_Block
  -> T_MExpr
  -> T_Stat
sem_Stat_ARepeat :: T_Block -> T_MExpr -> T_Stat
sem_Stat_ARepeat T_Block
body_ T_MExpr
cond_ =
  ( case (T_MExpr
cond_) of
      (MExpr
_condIcopy, Region
_condImtokenPos, T_MExpr_1
cond_1) ->
        ( case (T_Block
body_) of
            (Block
_bodyIcopy, T_Block_1
body_1) ->
              ( case ( ( Block -> MExpr -> Stat
ARepeat Block
_bodyIcopy MExpr
_condIcopy
                       )
                     ) of
                  Stat
_copy ->
                    ( case ( ( Stat
_copy
                             )
                           ) of
                        Stat
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Stat_ARepeat_1 :: T_Stat_1
                                      sem_Stat_ARepeat_1 :: T_UnOp_1
sem_Stat_ARepeat_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_bodyOisMeta ->
                                                    ( case ( ( LintSettings
_lhsIconfig
                                                             )
                                                           ) of
                                                        LintSettings
_bodyOconfig ->
                                                          ( case ( ( forall k a. Map k a
M.empty forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_bodyOscopes ->
                                                                ( case ( ( Bool
True
                                                                         )
                                                                       ) of
                                                                    Bool
_bodyOisRepeat ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_bodyOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_bodyOmtokenPos ->
                                                                                        ( case ( ( Bool
_lhsIisInModule
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_bodyOisInModule ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_bodyOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_bodyOfuncName ->
                                                                                                          ( case ( ( Int
_lhsIloopLevel forall a. Num a => a -> a -> a
+ Int
1
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Int
_bodyOloopLevel ->
                                                                                                                ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                    (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          [Map String (Bool, Region)]
_condOscopes ->
                                                                                                                            ( case ( ( Bool
_lhsIisMeta
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_condOisMeta ->
                                                                                                                                  ( case ( ( Bool
_bodyIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_condOisInModule ->
                                                                                                                                        ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Map String [Region]
_condOglobalDefinitions ->
                                                                                                                                              ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  LintSettings
_condOconfig ->
                                                                                                                                                    ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Maybe MToken
_condOvarBeingDefined ->
                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              DeterminedVariableStyle
_condOvariableStyle ->
                                                                                                                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_condOscopeLevel ->
                                                                                                                                                                      ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Region
_condOmtokenPos ->
                                                                                                                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Int
_condOloopLevel ->
                                                                                                                                                                                  ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      String
_condOfuncName ->
                                                                                                                                                                                        ( case ( ( Bool
True
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Bool
_condOtopLevel ->
                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_condOinParentheses ->
                                                                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_condOisNegation ->
                                                                                                                                                                                                          ( case (T_MExpr_1
cond_1 LintSettings
_condOconfig String
_condOfuncName Map String [Region]
_condOglobalDefinitions Bool
_condOinParentheses Bool
_condOisInModule Bool
_condOisMeta Bool
_condOisNegation Int
_condOloopLevel Region
_condOmtokenPos Int
_condOscopeLevel [Map String (Bool, Region)]
_condOscopes Bool
_condOtopLevel Maybe MToken
_condOvarBeingDefined DeterminedVariableStyle
_condOvariableStyle) of
                                                                                                                                                                                                              (Map String [Region]
_condIglobalDefinitions, String
_condIidentifier, Bool
_condIisInModule, Bool
_condIisSimpleExpression, Maybe MToken
_condIisSingleVar, [Map String (Bool, Region)]
_condIscopes, DeterminedVariableStyle
_condIvariableStyle, [String -> LintMessage]
_condIwarnings) ->
                                                                                                                                                                                                                ( case ( ( Map String [Region]
_condIglobalDefinitions
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_bodyIidentifier String
_condIidentifier)
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                                                                            ( case ( ( Bool
False
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                                                  ( case ( ( Bool
_condIisInModule
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                        ( case ( ( Region
_condImtokenPos
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                              ( case ( ( forall a. [a] -> [a]
tail [Map String (Bool, Region)]
_condIscopes
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_condIvariableStyle
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_bodyIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_condIwarnings
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_bodyIstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                                                                                                                            else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lhsImtokenPos Issue
EmptyRepeat
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_UnOp_1
sem_Stat_ARepeat_1
                                   )
                                 ) of
                              (T_UnOp_1
sem_Stat_1) ->
                                (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                          )
                    )
              )
        )
  )
sem_Stat_AIf
  :: T_MExpr
  -> T_Block
  -> T_ElseIfList
  -> T_Else
  -> T_Stat
sem_Stat_AIf :: T_MExpr -> T_Block -> T_ElseIfList -> T_Else -> T_Stat
sem_Stat_AIf T_MExpr
cond_ T_Block
body_ T_ElseIfList
elifs_ T_Else
els_ =
  ( case (T_Else
els_) of
      (Else
_elsIcopy, T_Else_1
els_1) ->
        ( case (T_ElseIfList
elifs_) of
            (ElseIfList
_elifsIcopy, T_Else_1
elifs_1) ->
              ( case (T_Block
body_) of
                  (Block
_bodyIcopy, T_Block_1
body_1) ->
                    ( case (T_MExpr
cond_) of
                        (MExpr
_condIcopy, Region
_condImtokenPos, T_MExpr_1
cond_1) ->
                          ( case ( ( MExpr -> Block -> ElseIfList -> Else -> Stat
AIf MExpr
_condIcopy Block
_bodyIcopy ElseIfList
_elifsIcopy Else
_elsIcopy
                                   )
                                 ) of
                              Stat
_copy ->
                                ( case ( ( Stat
_copy
                                         )
                                       ) of
                                    Stat
_lhsOcopy ->
                                      ( case ( ( let
                                                  sem_Stat_AIf_1 :: T_Stat_1
                                                  sem_Stat_AIf_1 :: T_UnOp_1
sem_Stat_AIf_1 =
                                                    ( \LintSettings
_lhsIconfig
                                                       String
_lhsIfuncName
                                                       Map String [Region]
_lhsIglobalDefinitions
                                                       Bool
_lhsIisInModule
                                                       Bool
_lhsIisMeta
                                                       Int
_lhsIloopLevel
                                                       Region
_lhsImtokenPos
                                                       Int
_lhsIscopeLevel
                                                       [Map String (Bool, Region)]
_lhsIscopes
                                                       DeterminedVariableStyle
_lhsIvariableStyle ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_bodyOisMeta ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_bodyOconfig ->
                                                                      ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                               )
                                                                             ) of
                                                                          [Map String (Bool, Region)]
_condOscopes ->
                                                                            ( case ( ( Bool
_lhsIisMeta
                                                                                     )
                                                                                   ) of
                                                                                Bool
_condOisMeta ->
                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                           )
                                                                                         ) of
                                                                                      LintSettings
_condOconfig ->
                                                                                        ( case ( ( Bool
False
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_bodyOisRepeat ->
                                                                                              ( case ( ( forall a. Maybe a
Nothing
                                                                                                       )
                                                                                                     ) of
                                                                                                  Maybe MToken
_condOvarBeingDefined ->
                                                                                                    ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                             )
                                                                                                           ) of
                                                                                                        DeterminedVariableStyle
_condOvariableStyle ->
                                                                                                          ( case ( ( Int
_lhsIscopeLevel
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              Int
_condOscopeLevel ->
                                                                                                                ( case ( ( Region
_lhsImtokenPos
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Region
_condOmtokenPos ->
                                                                                                                      ( case ( ( Int
_lhsIloopLevel
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Int
_condOloopLevel ->
                                                                                                                            ( case ( ( Bool
_lhsIisInModule
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_condOisInModule ->
                                                                                                                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Map String [Region]
_condOglobalDefinitions ->
                                                                                                                                        ( case ( ( String
_lhsIfuncName
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            String
_condOfuncName ->
                                                                                                                                              ( case ( ( Bool
True
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Bool
_condOtopLevel ->
                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Bool
_condOinParentheses ->
                                                                                                                                                          ( case ( ( Bool
False
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_condOisNegation ->
                                                                                                                                                                ( case (T_MExpr_1
cond_1 LintSettings
_condOconfig String
_condOfuncName Map String [Region]
_condOglobalDefinitions Bool
_condOinParentheses Bool
_condOisInModule Bool
_condOisMeta Bool
_condOisNegation Int
_condOloopLevel Region
_condOmtokenPos Int
_condOscopeLevel [Map String (Bool, Region)]
_condOscopes Bool
_condOtopLevel Maybe MToken
_condOvarBeingDefined DeterminedVariableStyle
_condOvariableStyle) of
                                                                                                                                                                    (Map String [Region]
_condIglobalDefinitions, String
_condIidentifier, Bool
_condIisInModule, Bool
_condIisSimpleExpression, Maybe MToken
_condIisSingleVar, [Map String (Bool, Region)]
_condIscopes, DeterminedVariableStyle
_condIvariableStyle, [String -> LintMessage]
_condIwarnings) ->
                                                                                                                                                                      ( case ( ( forall k a. Map k a
M.empty forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_condIscopes
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          [Map String (Bool, Region)]
_bodyOscopes ->
                                                                                                                                                                            ( case ( ( DeterminedVariableStyle
_condIvariableStyle
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                                                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Int
_bodyOscopeLevel ->
                                                                                                                                                                                        ( case ( ( Region
_condImtokenPos
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Region
_bodyOmtokenPos ->
                                                                                                                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Int
_bodyOloopLevel ->
                                                                                                                                                                                                    ( case ( ( Bool
_condIisInModule
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_bodyOisInModule ->
                                                                                                                                                                                                          ( case ( ( Map String [Region]
_condIglobalDefinitions
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Map String [Region]
_bodyOglobalDefinitions ->
                                                                                                                                                                                                                ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    String
_bodyOfuncName ->
                                                                                                                                                                                                                      ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                                                                                                                          (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                [Map String (Bool, Region)]
_elifsOscopes ->
                                                                                                                                                                                                                                  ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Bool
_elifsOisMeta ->
                                                                                                                                                                                                                                        ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            LintSettings
_elifsOconfig ->
                                                                                                                                                                                                                                              ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  DeterminedVariableStyle
_elifsOvariableStyle ->
                                                                                                                                                                                                                                                    ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        Int
_elifsOscopeLevel ->
                                                                                                                                                                                                                                                          ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              Int
_elifsOloopLevel ->
                                                                                                                                                                                                                                                                ( case ( ( Bool
_bodyIisInModule
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    Bool
_elifsOisInModule ->
                                                                                                                                                                                                                                                                      ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          Map String [Region]
_elifsOglobalDefinitions ->
                                                                                                                                                                                                                                                                            ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                String
_elifsOfuncName ->
                                                                                                                                                                                                                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      Region
_elifsOmtokenPos ->
                                                                                                                                                                                                                                                                                        ( case (T_Else_1
elifs_1 LintSettings
_elifsOconfig String
_elifsOfuncName Map String [Region]
_elifsOglobalDefinitions Bool
_elifsOisInModule Bool
_elifsOisMeta Int
_elifsOloopLevel Region
_elifsOmtokenPos Int
_elifsOscopeLevel [Map String (Bool, Region)]
_elifsOscopes DeterminedVariableStyle
_elifsOvariableStyle) of
                                                                                                                                                                                                                                                                                            (Bool
_elifsIelseExists, Map String [Region]
_elifsIglobalDefinitions, String
_elifsIidentifier, Bool
_elifsIisInModule, Region
_elifsImtokenPos, [Map String (Bool, Region)]
_elifsIscopes, DeterminedVariableStyle
_elifsIvariableStyle, [String -> LintMessage]
_elifsIwarnings) ->
                                                                                                                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_elifsIscopes
                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_elsOscopes ->
                                                                                                                                                                                                                                                                                                    ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                        Bool
_elsOisMeta ->
                                                                                                                                                                                                                                                                                                          ( case ( ( Bool
_elifsIisInModule
                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                              Bool
_elsOisInModule ->
                                                                                                                                                                                                                                                                                                                ( case ( ( Map String [Region]
_elifsIglobalDefinitions
                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                    Map String [Region]
_elsOglobalDefinitions ->
                                                                                                                                                                                                                                                                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                          LintSettings
_elsOconfig ->
                                                                                                                                                                                                                                                                                                                            ( case ( ( DeterminedVariableStyle
_elifsIvariableStyle
                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                DeterminedVariableStyle
_elsOvariableStyle ->
                                                                                                                                                                                                                                                                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                      Int
_elsOscopeLevel ->
                                                                                                                                                                                                                                                                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                            Int
_elsOloopLevel ->
                                                                                                                                                                                                                                                                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                                                                  String
_elsOfuncName ->
                                                                                                                                                                                                                                                                                                                                                    ( case ( ( Region
_lhsImtokenPos
                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                        Region
_elsOmtokenPos ->
                                                                                                                                                                                                                                                                                                                                                          ( case (T_Else_1
els_1 LintSettings
_elsOconfig String
_elsOfuncName Map String [Region]
_elsOglobalDefinitions Bool
_elsOisInModule Bool
_elsOisMeta Int
_elsOloopLevel Region
_elsOmtokenPos Int
_elsOscopeLevel [Map String (Bool, Region)]
_elsOscopes DeterminedVariableStyle
_elsOvariableStyle) of
                                                                                                                                                                                                                                                                                                                                                              (Bool
_elsIelseExists, Map String [Region]
_elsIglobalDefinitions, String
_elsIidentifier, Bool
_elsIisInModule, Region
_elsImtokenPos, [Map String (Bool, Region)]
_elsIscopes, DeterminedVariableStyle
_elsIvariableStyle, [String -> LintMessage]
_elsIwarnings) ->
                                                                                                                                                                                                                                                                                                                                                                ( case ( ( Map String [Region]
_elsIglobalDefinitions
                                                                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_condIidentifier (forall a b. a -> b -> a
const String
_bodyIidentifier (forall a b. a -> b -> a
const String
_elifsIidentifier String
_elsIidentifier)))
                                                                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                                                                                                                                                                                                                            ( case ( ( Bool -> Bool
not Bool
_elifsIelseExists Bool -> Bool -> Bool
&& Bool -> Bool
not Bool
_elsIelseExists
                                                                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                                                                                                                                                                                                  ( case ( ( Bool
_elsIisInModule
                                                                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                                                                                                                                                                        ( case ( ( Region
_elsImtokenPos
                                                                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_elsIscopes
                                                                                                                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_elsIvariableStyle
                                                                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_condIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_bodyIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_elifsIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_elsIwarnings
                                                                                                                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                                                                                                                              [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                                                                                                                                                                ( case ( ( LineColPos -> LineColPos -> Region
Region (Region -> LineColPos
rgStart Region
_lhsImtokenPos) (LineColPos -> Token -> LineColPos
customAdvanceToken (Region -> LineColPos
rgStart Region
_lhsImtokenPos) Token
If)
                                                                                                                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                                                                                                                    Region
_keywordPos ->
                                                                                                                                                                                                                                                                                                                                                                                                                      ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_bodyIstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                                                                                                                                                                                                                                                                                  then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                                                                                                                                  else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_keywordPos Issue
EmptyIf
                                                                                                                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                                                                                                                          [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2 ->
                                                                                                                                                                                                                                                                                                                                                                                                                            ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_redundantIfStatements LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_bodyIstatementCount forall a. Eq a => a -> a -> Bool
/= Int
1 Bool -> Bool -> Bool
|| Bool -> Bool
not Bool
_bodyIisIfStatement Bool -> Bool -> Bool
|| Bool
_elifsIelseExists Bool -> Bool -> Bool
|| Bool
_elsIelseExists
                                                                                                                                                                                                                                                                                                                                                                                                                                        then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                                                                                                                                        else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_bodyImtokenPos Issue
DoubleIf
                                                                                                                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                                                                                                                                                                                  ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2]
                                                                                                                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                                                                                                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                                 in
                                                  T_UnOp_1
sem_Stat_AIf_1
                                               )
                                             ) of
                                          (T_UnOp_1
sem_Stat_1) ->
                                            (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                                      )
                                )
                          )
                    )
              )
        )
  )
sem_Stat_ANFor
  :: T_MToken
  -> T_MExpr
  -> T_MExpr
  -> T_MExpr
  -> T_Block
  -> T_Stat
sem_Stat_ANFor :: T_MToken -> T_MExpr -> T_MExpr -> T_MExpr -> T_Block -> T_Stat
sem_Stat_ANFor T_MToken
var_ T_MExpr
val_ T_MExpr
to_ T_MExpr
step_ T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case (T_MExpr
step_) of
            (MExpr
_stepIcopy, Region
_stepImtokenPos, T_MExpr_1
step_1) ->
              ( case (T_MExpr
to_) of
                  (MExpr
_toIcopy, Region
_toImtokenPos, T_MExpr_1
to_1) ->
                    ( case (T_MExpr
val_) of
                        (MExpr
_valIcopy, Region
_valImtokenPos, T_MExpr_1
val_1) ->
                          ( case (T_MToken
var_) of
                              (MToken
_varIcopy, Token
_varImtok, Region
_varImtokenPos, T_MToken_1
var_1) ->
                                ( case ( ( MToken -> MExpr -> MExpr -> MExpr -> Block -> Stat
ANFor MToken
_varIcopy MExpr
_valIcopy MExpr
_toIcopy MExpr
_stepIcopy Block
_bodyIcopy
                                         )
                                       ) of
                                    Stat
_copy ->
                                      ( case ( ( Stat
_copy
                                               )
                                             ) of
                                          Stat
_lhsOcopy ->
                                            ( case ( ( let
                                                        sem_Stat_ANFor_1 :: T_Stat_1
                                                        sem_Stat_ANFor_1 :: T_UnOp_1
sem_Stat_ANFor_1 =
                                                          ( \LintSettings
_lhsIconfig
                                                             String
_lhsIfuncName
                                                             Map String [Region]
_lhsIglobalDefinitions
                                                             Bool
_lhsIisInModule
                                                             Bool
_lhsIisMeta
                                                             Int
_lhsIloopLevel
                                                             Region
_lhsImtokenPos
                                                             Int
_lhsIscopeLevel
                                                             [Map String (Bool, Region)]
_lhsIscopes
                                                             DeterminedVariableStyle
_lhsIvariableStyle ->
                                                                ( case ( ( Bool
_lhsIisMeta
                                                                         )
                                                                       ) of
                                                                    Bool
_bodyOisMeta ->
                                                                      ( case ( ( Bool
_lhsIisInModule
                                                                               )
                                                                             ) of
                                                                          Bool
_varOisInModule ->
                                                                            ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                                     )
                                                                                   ) of
                                                                                [Map String (Bool, Region)]
_varOscopes ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_varOmtokenPos ->
                                                                                        ( case ( ( Bool
_lhsIisMeta
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_varOisMeta ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_varOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_varOfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_varOconfig ->
                                                                                                                ( case (T_MToken_1
var_1 LintSettings
_varOconfig String
_varOfuncName Map String [Region]
_varOglobalDefinitions Bool
_varOisInModule Bool
_varOisMeta Region
_varOmtokenPos [Map String (Bool, Region)]
_varOscopes) of
                                                                                                                    (Map String [Region]
_varIglobalDefinitions, String
_varIidentifier, Bool
_varIisInModule, [Map String (Bool, Region)]
_varIscopes, [String -> LintMessage]
_varIwarnings) ->
                                                                                                                      ( case ( ( Bool
_varIisInModule
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_valOisInModule ->
                                                                                                                            ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                DeterminedVariableStyle
_valOvariableStyle ->
                                                                                                                                  ( case ( ( [Map String (Bool, Region)]
_varIscopes
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      [Map String (Bool, Region)]
_valOscopes ->
                                                                                                                                        ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Int
_valOscopeLevel ->
                                                                                                                                              ( case ( ( Region
_varImtokenPos
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Region
_valOmtokenPos ->
                                                                                                                                                    ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Int
_valOloopLevel ->
                                                                                                                                                          ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Bool
_valOisMeta ->
                                                                                                                                                                ( case ( ( Map String [Region]
_varIglobalDefinitions
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Map String [Region]
_valOglobalDefinitions ->
                                                                                                                                                                      ( case ( ( String
_lhsIfuncName
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          String
_valOfuncName ->
                                                                                                                                                                            ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                LintSettings
_valOconfig ->
                                                                                                                                                                                  ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Maybe MToken
_valOvarBeingDefined ->
                                                                                                                                                                                        ( case ( ( Bool
True
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Bool
_valOtopLevel ->
                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_valOinParentheses ->
                                                                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_valOisNegation ->
                                                                                                                                                                                                          ( case (T_MExpr_1
val_1 LintSettings
_valOconfig String
_valOfuncName Map String [Region]
_valOglobalDefinitions Bool
_valOinParentheses Bool
_valOisInModule Bool
_valOisMeta Bool
_valOisNegation Int
_valOloopLevel Region
_valOmtokenPos Int
_valOscopeLevel [Map String (Bool, Region)]
_valOscopes Bool
_valOtopLevel Maybe MToken
_valOvarBeingDefined DeterminedVariableStyle
_valOvariableStyle) of
                                                                                                                                                                                                              (Map String [Region]
_valIglobalDefinitions, String
_valIidentifier, Bool
_valIisInModule, Bool
_valIisSimpleExpression, Maybe MToken
_valIisSingleVar, [Map String (Bool, Region)]
_valIscopes, DeterminedVariableStyle
_valIvariableStyle, [String -> LintMessage]
_valIwarnings) ->
                                                                                                                                                                                                                ( case ( ( Bool
_valIisInModule
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Bool
_toOisInModule ->
                                                                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_valIvariableStyle
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          DeterminedVariableStyle
_toOvariableStyle ->
                                                                                                                                                                                                                            ( case ( ( [Map String (Bool, Region)]
_valIscopes
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                [Map String (Bool, Region)]
_toOscopes ->
                                                                                                                                                                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Int
_toOscopeLevel ->
                                                                                                                                                                                                                                        ( case ( ( Region
_valImtokenPos
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Region
_toOmtokenPos ->
                                                                                                                                                                                                                                              ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Int
_toOloopLevel ->
                                                                                                                                                                                                                                                    ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        Bool
_toOisMeta ->
                                                                                                                                                                                                                                                          ( case ( ( Map String [Region]
_valIglobalDefinitions
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              Map String [Region]
_toOglobalDefinitions ->
                                                                                                                                                                                                                                                                ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    String
_toOfuncName ->
                                                                                                                                                                                                                                                                      ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          LintSettings
_toOconfig ->
                                                                                                                                                                                                                                                                            ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                Maybe MToken
_toOvarBeingDefined ->
                                                                                                                                                                                                                                                                                  ( case ( ( Bool
True
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      Bool
_toOtopLevel ->
                                                                                                                                                                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                            Bool
_toOinParentheses ->
                                                                                                                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                  Bool
_toOisNegation ->
                                                                                                                                                                                                                                                                                                    ( case (T_MExpr_1
to_1 LintSettings
_toOconfig String
_toOfuncName Map String [Region]
_toOglobalDefinitions Bool
_toOinParentheses Bool
_toOisInModule Bool
_toOisMeta Bool
_toOisNegation Int
_toOloopLevel Region
_toOmtokenPos Int
_toOscopeLevel [Map String (Bool, Region)]
_toOscopes Bool
_toOtopLevel Maybe MToken
_toOvarBeingDefined DeterminedVariableStyle
_toOvariableStyle) of
                                                                                                                                                                                                                                                                                                        (Map String [Region]
_toIglobalDefinitions, String
_toIidentifier, Bool
_toIisInModule, Bool
_toIisSimpleExpression, Maybe MToken
_toIisSingleVar, [Map String (Bool, Region)]
_toIscopes, DeterminedVariableStyle
_toIvariableStyle, [String -> LintMessage]
_toIwarnings) ->
                                                                                                                                                                                                                                                                                                          ( case ( ( Bool
_toIisInModule
                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                              Bool
_stepOisInModule ->
                                                                                                                                                                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_toIvariableStyle
                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                    DeterminedVariableStyle
_stepOvariableStyle ->
                                                                                                                                                                                                                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_toIscopes
                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                          [Map String (Bool, Region)]
_stepOscopes ->
                                                                                                                                                                                                                                                                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                Int
_stepOscopeLevel ->
                                                                                                                                                                                                                                                                                                                                  ( case ( ( Region
_toImtokenPos
                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                      Region
_stepOmtokenPos ->
                                                                                                                                                                                                                                                                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                            Int
_stepOloopLevel ->
                                                                                                                                                                                                                                                                                                                                              ( case ( ( Bool
_lhsIisMeta
                                                                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                                                                  Bool
_stepOisMeta ->
                                                                                                                                                                                                                                                                                                                                                    ( case ( ( Map String [Region]
_toIglobalDefinitions
                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                        Map String [Region]
_stepOglobalDefinitions ->
                                                                                                                                                                                                                                                                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                                                                              String
_stepOfuncName ->
                                                                                                                                                                                                                                                                                                                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                                                                    LintSettings
_stepOconfig ->
                                                                                                                                                                                                                                                                                                                                                                      ( case ( ( forall a. Maybe a
Nothing
                                                                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                                                                          Maybe MToken
_stepOvarBeingDefined ->
                                                                                                                                                                                                                                                                                                                                                                            ( case ( ( Bool
True
                                                                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                                                                Bool
_stepOtopLevel ->
                                                                                                                                                                                                                                                                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                                                                      Bool
_stepOinParentheses ->
                                                                                                                                                                                                                                                                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                                                                            Bool
_stepOisNegation ->
                                                                                                                                                                                                                                                                                                                                                                                              ( case (T_MExpr_1
step_1 LintSettings
_stepOconfig String
_stepOfuncName Map String [Region]
_stepOglobalDefinitions Bool
_stepOinParentheses Bool
_stepOisInModule Bool
_stepOisMeta Bool
_stepOisNegation Int
_stepOloopLevel Region
_stepOmtokenPos Int
_stepOscopeLevel [Map String (Bool, Region)]
_stepOscopes Bool
_stepOtopLevel Maybe MToken
_stepOvarBeingDefined DeterminedVariableStyle
_stepOvariableStyle) of
                                                                                                                                                                                                                                                                                                                                                                                                  (Map String [Region]
_stepIglobalDefinitions, String
_stepIidentifier, Bool
_stepIisInModule, Bool
_stepIisSimpleExpression, Maybe MToken
_stepIisSingleVar, [Map String (Bool, Region)]
_stepIscopes, DeterminedVariableStyle
_stepIvariableStyle, [String -> LintMessage]
_stepIwarnings) ->
                                                                                                                                                                                                                                                                                                                                                                                                    ( case ( ( Bool
_stepIisInModule
                                                                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                                                                        Bool
_bodyOisInModule ->
                                                                                                                                                                                                                                                                                                                                                                                                          ( case ( ( Map String [Region]
_stepIglobalDefinitions
                                                                                                                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                                                                                                                              Map String [Region]
_bodyOglobalDefinitions ->
                                                                                                                                                                                                                                                                                                                                                                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                                                                                                                    LintSettings
_bodyOconfig ->
                                                                                                                                                                                                                                                                                                                                                                                                                      ( case ( ( forall k a. k -> a -> Map k a
M.singleton String
_varIidentifier (Bool -> Bool
not (LintSettings -> Bool
lint_unusedLoopVars LintSettings
_lhsIconfig), Region
_varImtokenPos) forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_stepIscopes
                                                                                                                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                                                                                                                          [Map String (Bool, Region)]
_bodyOscopes ->
                                                                                                                                                                                                                                                                                                                                                                                                                            ( case ( ( DeterminedVariableStyle
_stepIvariableStyle
                                                                                                                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                                                                                                                                                                                                                                                                                                                                                                  ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                      Int
_bodyOscopeLevel ->
                                                                                                                                                                                                                                                                                                                                                                                                                                        ( case ( ( Region
_stepImtokenPos
                                                                                                                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                            Region
_bodyOmtokenPos ->
                                                                                                                                                                                                                                                                                                                                                                                                                                              ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                  String
_bodyOfuncName ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                        Bool
_bodyOisRepeat ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                          ( case ( ( Int
_lhsIloopLevel forall a. Num a => a -> a -> a
+ Int
1
                                                                                                                                                                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                              Int
_bodyOloopLevel ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ( case ( ( (forall a b. a -> b -> a
const String
_varIidentifier (forall a b. a -> b -> a
const String
_valIidentifier (forall a b. a -> b -> a
const String
_toIidentifier (forall a b. a -> b -> a
const String
_stepIidentifier String
_bodyIidentifier))))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                String
_lhsOidentifier ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ( case ( ( Bool
_bodyIisInModule
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ( case ( ( [String -> LintMessage]
_varIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_valIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_toIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_stepIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ( case ( ( [Map String (Bool, Region)]
-> MToken -> Maybe (String -> LintMessage)
checkShadows [Map String (Bool, Region)]
_lhsIscopes MToken
_varIcopy
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Maybe (String -> LintMessage)
_shadowWarning ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_shadowing LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| forall a. Maybe a -> Bool
isNothing Maybe (String -> LintMessage)
_shadowWarning
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        else (:) forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. a -> Maybe a -> a
fromMaybe (forall a. HasCallStack => String -> a
error String
"fromMaybe ANFor +warnings") forall a b. (a -> b) -> a -> b
$ Maybe (String -> LintMessage)
_shadowWarning
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2 ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_bodyIstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              then forall a. a -> a
id
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lhsImtokenPos Issue
EmptyFor
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                       in
                                                        T_UnOp_1
sem_Stat_ANFor_1
                                                     )
                                                   ) of
                                                (T_UnOp_1
sem_Stat_1) ->
                                                  (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                                            )
                                      )
                                )
                          )
                    )
              )
        )
  )
sem_Stat_AGFor
  :: ([MToken])
  -> T_MExprList
  -> T_Block
  -> T_Stat
sem_Stat_AGFor :: [MToken] -> T_MExprList -> T_Block -> T_Stat
sem_Stat_AGFor [MToken]
vars_ T_MExprList
vals_ T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case (T_MExprList
vals_) of
            (MExprList
_valsIcopy, T_MExprList_1
vals_1) ->
              ( case ( ( [MToken] -> MExprList -> Block -> Stat
AGFor [MToken]
vars_ MExprList
_valsIcopy Block
_bodyIcopy
                       )
                     ) of
                  Stat
_copy ->
                    ( case ( ( Stat
_copy
                             )
                           ) of
                        Stat
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Stat_AGFor_1 :: T_Stat_1
                                      sem_Stat_AGFor_1 :: T_UnOp_1
sem_Stat_AGFor_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
_lhsIisMeta
                                                       )
                                                     ) of
                                                  Bool
_bodyOisMeta ->
                                                    ( case ( ( Bool
_lhsIisInModule
                                                             )
                                                           ) of
                                                        Bool
_valsOisInModule ->
                                                          ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                   )
                                                                 ) of
                                                              DeterminedVariableStyle
_valsOvariableStyle ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_valsOscopes ->
                                                                      ( case ( ( Int
_lhsIscopeLevel
                                                                               )
                                                                             ) of
                                                                          Int
_valsOscopeLevel ->
                                                                            ( case ( ( Region
_lhsImtokenPos
                                                                                     )
                                                                                   ) of
                                                                                Region
_valsOmtokenPos ->
                                                                                  ( case ( ( Int
_lhsIloopLevel
                                                                                           )
                                                                                         ) of
                                                                                      Int
_valsOloopLevel ->
                                                                                        ( case ( ( Bool
_lhsIisMeta
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_valsOisMeta ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_valsOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_valsOfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_valsOconfig ->
                                                                                                                ( case ( ( Bool
True
                                                                                                                         )
                                                                                                                       ) of
                                                                                                                    Bool
_valsOtopLevel ->
                                                                                                                      ( case ( ( Bool
True
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_valsOinParentheses ->
                                                                                                                            ( case (T_MExprList_1
vals_1 LintSettings
_valsOconfig String
_valsOfuncName Map String [Region]
_valsOglobalDefinitions Bool
_valsOinParentheses Bool
_valsOisInModule Bool
_valsOisMeta Int
_valsOloopLevel Region
_valsOmtokenPos Int
_valsOscopeLevel [Map String (Bool, Region)]
_valsOscopes Bool
_valsOtopLevel DeterminedVariableStyle
_valsOvariableStyle) of
                                                                                                                                (Map String [Region]
_valsIglobalDefinitions, String
_valsIidentifier, Bool
_valsIisInModule, Region
_valsImtokenPos, [Map String (Bool, Region)]
_valsIscopes, DeterminedVariableStyle
_valsIvariableStyle, [String -> LintMessage]
_valsIwarnings) ->
                                                                                                                                  ( case ( ( Bool
_valsIisInModule
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_bodyOisInModule ->
                                                                                                                                        ( case ( ( Map String [Region]
_valsIglobalDefinitions
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Map String [Region]
_bodyOglobalDefinitions ->
                                                                                                                                              ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  LintSettings
_bodyOconfig ->
                                                                                                                                                    ( case ( ( forall k a. Ord k => [(k, a)] -> Map k a
M.fromList forall a b. (a -> b) -> a -> b
$ forall a b. (a -> b) -> [a] -> [b]
map (\MToken
mt -> (MToken -> String
tokenLabel MToken
mt, (Bool -> Bool
not (LintSettings -> Bool
lint_unusedLoopVars LintSettings
_lhsIconfig), MToken -> Region
mpos MToken
mt))) [MToken]
vars_
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Map String (Bool, Region)
_introduces ->
                                                                                                                                                          ( case ( ( Map String (Bool, Region)
_introduces forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_valsIscopes
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [Map String (Bool, Region)]
_bodyOscopes ->
                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_valsIvariableStyle
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                                                                                                      ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Int
_bodyOscopeLevel ->
                                                                                                                                                                            ( case ( ( Region
_valsImtokenPos
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Region
_bodyOmtokenPos ->
                                                                                                                                                                                  ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      String
_bodyOfuncName ->
                                                                                                                                                                                        ( case ( ( Bool
False
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Bool
_bodyOisRepeat ->
                                                                                                                                                                                              ( case ( ( Int
_lhsIloopLevel forall a. Num a => a -> a -> a
+ Int
1
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Int
_bodyOloopLevel ->
                                                                                                                                                                                                    ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                                                                                                        (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                                                                                                          ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                ( case ( ( (forall a b. a -> b -> a
const String
_valsIidentifier String
_bodyIidentifier)
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    String
_lhsOidentifier ->
                                                                                                                                                                                                                      ( case ( ( Bool
False
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                                            ( case ( ( Bool
_bodyIisInModule
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                  ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                        ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                              ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                    ( case ( ( [String -> LintMessage]
_valsIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                          ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_shadowing LintSettings
_lhsIconfig)
                                                                                                                                                                                                                                                                      then forall a. a -> a
id
                                                                                                                                                                                                                                                                      else forall a. [a] -> [a] -> [a]
(++) forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. [Maybe a] -> [a]
catMaybes forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a b. (a -> b) -> [a] -> [b]
map ([Map String (Bool, Region)]
-> MToken -> Maybe (String -> LintMessage)
checkShadows [Map String (Bool, Region)]
_lhsIscopes) forall a b. (a -> b) -> a -> b
$ [MToken]
vars_
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2 ->
                                                                                                                                                                                                                                                                ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_emptyBlocks LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| Int
_bodyIstatementCount forall a. Ord a => a -> a -> Bool
> Int
0
                                                                                                                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                                                                                                                            else (:) forall a b. (a -> b) -> a -> b
$ Region -> Issue -> String -> LintMessage
warn Region
_lhsImtokenPos Issue
EmptyFor
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2]
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_UnOp_1
sem_Stat_AGFor_1
                                   )
                                 ) of
                              (T_UnOp_1
sem_Stat_1) ->
                                (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                          )
                    )
              )
        )
  )
sem_Stat_AFunc
  :: T_FuncName
  -> ([MToken])
  -> T_Block
  -> T_Stat
sem_Stat_AFunc :: T_FuncName -> [MToken] -> T_Block -> T_Stat
sem_Stat_AFunc T_FuncName
name_ [MToken]
args_ T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case (T_FuncName
name_) of
            (FuncName
_nameIcopy, Bool
_nameIisMeta, T_FuncName_1
name_1) ->
              ( case ( ( FuncName -> [MToken] -> Block -> Stat
AFunc FuncName
_nameIcopy [MToken]
args_ Block
_bodyIcopy
                       )
                     ) of
                  Stat
_copy ->
                    ( case ( ( Stat
_copy
                             )
                           ) of
                        Stat
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Stat_AFunc_1 :: T_Stat_1
                                      sem_Stat_AFunc_1 :: T_UnOp_1
sem_Stat_AFunc_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_nameOisInModule ->
                                                    ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                             )
                                                           ) of
                                                        DeterminedVariableStyle
_nameOvariableStyle ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_nameOscopes ->
                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                         )
                                                                       ) of
                                                                    Int
_nameOscopeLevel ->
                                                                      ( case ( ( Region
_lhsImtokenPos
                                                                               )
                                                                             ) of
                                                                          Region
_nameOmtokenPos ->
                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_nameOloopLevel ->
                                                                                  ( case ( ( Bool
_nameIisMeta Bool -> Bool -> Bool
|| [MToken] -> Bool
findSelf [MToken]
args_ Bool -> Bool -> Bool
|| Bool
_lhsIisMeta
                                                                                           )
                                                                                         ) of
                                                                                      Bool
_isMeta ->
                                                                                        ( case ( ( Bool
_isMeta
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_nameOisMeta ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_nameOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_nameOfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_nameOconfig ->
                                                                                                                ( case (T_FuncName_1
name_1 LintSettings
_nameOconfig String
_nameOfuncName Map String [Region]
_nameOglobalDefinitions Bool
_nameOisInModule Bool
_nameOisMeta Int
_nameOloopLevel Region
_nameOmtokenPos Int
_nameOscopeLevel [Map String (Bool, Region)]
_nameOscopes DeterminedVariableStyle
_nameOvariableStyle) of
                                                                                                                    (Map String [Region]
_nameIglobalDefinitions, Bool
_nameIhasSuffixes, String
_nameIidentifier, Bool
_nameIisInModule, Region
_nameImtokenPos, [Map String (Bool, Region)]
_nameIscopes, DeterminedVariableStyle
_nameIvariableStyle, [String -> LintMessage]
_nameIwarnings) ->
                                                                                                                      ( case ( ( Bool
_nameIisInModule
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_bodyOisInModule ->
                                                                                                                            ( case ( ( Map String [Region]
_nameIglobalDefinitions
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Map String [Region]
_bodyOglobalDefinitions ->
                                                                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      LintSettings
_bodyOconfig ->
                                                                                                                                        ( case ( ( Bool
_isMeta
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_bodyOisMeta ->
                                                                                                                                              ( case ( ( forall a. (a -> Bool) -> [a] -> [a]
filter (forall a. Eq a => a -> a -> Bool
/= Region -> Token -> MToken
MToken Region
emptyRg Token
VarArg) forall a b. (a -> b) -> a -> b
$ [MToken]
args_
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [MToken]
_argIdentifiers ->
                                                                                                                                                    ( case ( ( (if Bool
_isMeta then forall k a. Ord k => k -> a -> Map k a -> Map k a
M.insert String
"self" (Bool
True, Region
_nameImtokenPos) else forall a. a -> a
id) forall a b. (a -> b) -> a -> b
$
                                                                                                                                                                forall k a. Ord k => [(k, a)] -> Map k a
M.fromList forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a b. (a -> b) -> [a] -> [b]
map (\MToken
mt -> (MToken -> String
tokenLabel MToken
mt, (Bool -> Bool
not forall b c a. (b -> c) -> (a -> b) -> a -> c
. LintSettings -> Bool
lint_unusedParameters forall a b. (a -> b) -> a -> b
$ LintSettings
_lhsIconfig, MToken -> Region
mpos MToken
mt))) forall a b. (a -> b) -> a -> b
$
                                                                                                                                                                  [MToken]
_argIdentifiers
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        Map String (Bool, Region)
_introduces ->
                                                                                                                                                          ( case ( ( Map String (Bool, Region)
_introduces forall a. a -> [a] -> [a]
: ([Map String (Bool, Region)]
-> Region -> String -> Bool -> [Map String (Bool, Region)]
registerVariable [Map String (Bool, Region)]
_nameIscopes Region
_nameImtokenPos String
_nameIidentifier Bool
True)
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              [Map String (Bool, Region)]
_bodyOscopes ->
                                                                                                                                                                ( case ( ( DeterminedVariableStyle
_nameIvariableStyle
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                                                                                                      ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Int
_bodyOscopeLevel ->
                                                                                                                                                                            ( case ( ( Region
_nameImtokenPos
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Region
_bodyOmtokenPos ->
                                                                                                                                                                                  ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Int
_bodyOloopLevel ->
                                                                                                                                                                                        ( case ( ( String
_nameIidentifier
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            String
_bodyOfuncName ->
                                                                                                                                                                                              ( case ( ( Bool
False
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Bool
_bodyOisRepeat ->
                                                                                                                                                                                                    ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                                                                                                        (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                                                                                                          ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Map String [Region]
_globalDefinitions_augmented_syn ->
                                                                                                                                                                                                                ( case ( ( if Bool
_lhsIisInModule Bool -> Bool -> Bool
|| [Map String (Bool, Region)] -> String -> Bool
isVariableLocal [Map String (Bool, Region)]
_lhsIscopes String
_nameIidentifier Bool -> Bool -> Bool
|| Bool
_nameIisMeta Bool -> Bool -> Bool
|| Bool
_nameIhasSuffixes
                                                                                                                                                                                                                            then forall a. a -> a
id
                                                                                                                                                                                                                            else forall k a. Ord k => (a -> a -> a) -> k -> a -> Map k a -> Map k a
M.insertWith forall a. [a] -> [a] -> [a]
(++) String
_nameIidentifier [Region
_nameImtokenPos]
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Map String [Region] -> Map String [Region]
_globalDefinitions_augmented_f1 ->
                                                                                                                                                                                                                      ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) Map String [Region]
_globalDefinitions_augmented_syn [Map String [Region] -> Map String [Region]
_globalDefinitions_augmented_f1]
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                            ( case ( ( (forall a b. a -> b -> a
const String
_nameIidentifier String
_bodyIidentifier)
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                String
_lhsOidentifier ->
                                                                                                                                                                                                                                  ( case ( ( Bool
False
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                                                        ( case ( ( Bool
_bodyIisInModule
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                              ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                                    ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                                ( case ( ( [String -> LintMessage]
_nameIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                      ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_shadowing LintSettings
_lhsIconfig)
                                                                                                                                                                                                                                                                                  then forall a. a -> a
id
                                                                                                                                                                                                                                                                                  else forall a. [a] -> [a] -> [a]
(++) forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. [Maybe a] -> [a]
catMaybes forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a b. (a -> b) -> [a] -> [b]
map ([Map String (Bool, Region)]
-> MToken -> Maybe (String -> LintMessage)
checkShadows [Map String (Bool, Region)]
_lhsIscopes) forall a b. (a -> b) -> a -> b
$ [MToken]
_argIdentifiers
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                            ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1]
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_UnOp_1
sem_Stat_AFunc_1
                                   )
                                 ) of
                              (T_UnOp_1
sem_Stat_1) ->
                                (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                          )
                    )
              )
        )
  )
sem_Stat_ALocFunc
  :: T_FuncName
  -> ([MToken])
  -> T_Block
  -> T_Stat
sem_Stat_ALocFunc :: T_FuncName -> [MToken] -> T_Block -> T_Stat
sem_Stat_ALocFunc T_FuncName
name_ [MToken]
args_ T_Block
body_ =
  ( case (T_Block
body_) of
      (Block
_bodyIcopy, T_Block_1
body_1) ->
        ( case (T_FuncName
name_) of
            (FuncName
_nameIcopy, Bool
_nameIisMeta, T_FuncName_1
name_1) ->
              ( case ( ( FuncName -> [MToken] -> Block -> Stat
ALocFunc FuncName
_nameIcopy [MToken]
args_ Block
_bodyIcopy
                       )
                     ) of
                  Stat
_copy ->
                    ( case ( ( Stat
_copy
                             )
                           ) of
                        Stat
_lhsOcopy ->
                          ( case ( ( let
                                      sem_Stat_ALocFunc_1 :: T_Stat_1
                                      sem_Stat_ALocFunc_1 :: T_UnOp_1
sem_Stat_ALocFunc_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_nameOisInModule ->
                                                    ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                             )
                                                           ) of
                                                        DeterminedVariableStyle
_nameOvariableStyle ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_nameOscopes ->
                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                         )
                                                                       ) of
                                                                    Int
_nameOscopeLevel ->
                                                                      ( case ( ( Region
_lhsImtokenPos
                                                                               )
                                                                             ) of
                                                                          Region
_nameOmtokenPos ->
                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_nameOloopLevel ->
                                                                                  ( case ( ( [MToken] -> Bool
findSelf [MToken]
args_ Bool -> Bool -> Bool
|| Bool
_lhsIisMeta
                                                                                           )
                                                                                         ) of
                                                                                      Bool
_isMeta ->
                                                                                        ( case ( ( Bool
_isMeta
                                                                                                 )
                                                                                               ) of
                                                                                            Bool
_nameOisMeta ->
                                                                                              ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                       )
                                                                                                     ) of
                                                                                                  Map String [Region]
_nameOglobalDefinitions ->
                                                                                                    ( case ( ( String
_lhsIfuncName
                                                                                                             )
                                                                                                           ) of
                                                                                                        String
_nameOfuncName ->
                                                                                                          ( case ( ( LintSettings
_lhsIconfig
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              LintSettings
_nameOconfig ->
                                                                                                                ( case (T_FuncName_1
name_1 LintSettings
_nameOconfig String
_nameOfuncName Map String [Region]
_nameOglobalDefinitions Bool
_nameOisInModule Bool
_nameOisMeta Int
_nameOloopLevel Region
_nameOmtokenPos Int
_nameOscopeLevel [Map String (Bool, Region)]
_nameOscopes DeterminedVariableStyle
_nameOvariableStyle) of
                                                                                                                    (Map String [Region]
_nameIglobalDefinitions, Bool
_nameIhasSuffixes, String
_nameIidentifier, Bool
_nameIisInModule, Region
_nameImtokenPos, [Map String (Bool, Region)]
_nameIscopes, DeterminedVariableStyle
_nameIvariableStyle, [String -> LintMessage]
_nameIwarnings) ->
                                                                                                                      ( case ( ( Bool
_nameIisInModule
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          Bool
_bodyOisInModule ->
                                                                                                                            ( case ( ( Map String [Region]
_nameIglobalDefinitions
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Map String [Region]
_bodyOglobalDefinitions ->
                                                                                                                                  ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      LintSettings
_bodyOconfig ->
                                                                                                                                        ( case ( ( Bool
_isMeta
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_bodyOisMeta ->
                                                                                                                                              ( case ( ( forall k a. Ord k => k -> a -> Map k a -> Map k a
M.insert String
_nameIidentifier (Bool
False, Region
_nameImtokenPos) (forall a. [a] -> a
head [Map String (Bool, Region)]
_nameIscopes) forall a. a -> [a] -> [a]
: forall a. [a] -> [a]
tail [Map String (Bool, Region)]
_nameIscopes
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  [Map String (Bool, Region)]
_passedScopes ->
                                                                                                                                                    ( case ( ( forall a. (a -> Bool) -> [a] -> [a]
filter (forall a. Eq a => a -> a -> Bool
/= Region -> Token -> MToken
MToken Region
emptyRg Token
VarArg) forall a b. (a -> b) -> a -> b
$ [MToken]
args_
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        [MToken]
_argIdentifiers ->
                                                                                                                                                          ( case ( ( (if Bool
_isMeta then forall k a. Ord k => k -> a -> Map k a -> Map k a
M.insert String
"self" (Bool
True, Region
_nameImtokenPos) else forall a. a -> a
id) forall a b. (a -> b) -> a -> b
$
                                                                                                                                                                      forall k a. Ord k => [(k, a)] -> Map k a
M.fromList forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a b. (a -> b) -> [a] -> [b]
map (\MToken
mt -> (MToken -> String
tokenLabel MToken
mt, (Bool -> Bool
not forall b c a. (b -> c) -> (a -> b) -> a -> c
. LintSettings -> Bool
lint_unusedParameters forall a b. (a -> b) -> a -> b
$ LintSettings
_lhsIconfig, MToken -> Region
mpos MToken
mt))) forall a b. (a -> b) -> a -> b
$
                                                                                                                                                                        [MToken]
_argIdentifiers
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              Map String (Bool, Region)
_introduces ->
                                                                                                                                                                ( case ( ( Map String (Bool, Region)
_introduces forall a. a -> [a] -> [a]
: [Map String (Bool, Region)]
_passedScopes
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    [Map String (Bool, Region)]
_bodyOscopes ->
                                                                                                                                                                      ( case ( ( DeterminedVariableStyle
_nameIvariableStyle
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          DeterminedVariableStyle
_bodyOvariableStyle ->
                                                                                                                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Int
_bodyOscopeLevel ->
                                                                                                                                                                                  ( case ( ( Region
_nameImtokenPos
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      Region
_bodyOmtokenPos ->
                                                                                                                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                                 )
                                                                                                                                                                                               ) of
                                                                                                                                                                                            Int
_bodyOloopLevel ->
                                                                                                                                                                                              ( case ( ( String
_nameIidentifier
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  String
_bodyOfuncName ->
                                                                                                                                                                                                    ( case ( ( Bool
False
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        Bool
_bodyOisRepeat ->
                                                                                                                                                                                                          ( case (T_Block_1
body_1 LintSettings
_bodyOconfig String
_bodyOfuncName Map String [Region]
_bodyOglobalDefinitions Bool
_bodyOisInModule Bool
_bodyOisMeta Bool
_bodyOisRepeat Int
_bodyOloopLevel Region
_bodyOmtokenPos Int
_bodyOscopeLevel [Map String (Bool, Region)]
_bodyOscopes DeterminedVariableStyle
_bodyOvariableStyle) of
                                                                                                                                                                                                              (Map String [Region]
_bodyIglobalDefinitions, String
_bodyIidentifier, Bool
_bodyIisIfStatement, Bool
_bodyIisInModule, Region
_bodyImtokenPos, [Map String (Bool, Region)]
_bodyIscopes, Int
_bodyIstatementCount, DeterminedVariableStyle
_bodyIvariableStyle, [String -> LintMessage]
_bodyIwarnings) ->
                                                                                                                                                                                                                ( case ( ( Map String [Region]
_bodyIglobalDefinitions
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                                      ( case ( ( (forall a b. a -> b -> a
const String
_nameIidentifier String
_bodyIidentifier)
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          String
_lhsOidentifier ->
                                                                                                                                                                                                                            ( case ( ( Bool
False
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                Bool
_lhsOisIfStatement ->
                                                                                                                                                                                                                                  ( case ( ( Bool
_bodyIisInModule
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      Bool
_lhsOisInModule ->
                                                                                                                                                                                                                                        ( case ( ( Region
_bodyImtokenPos
                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                            Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                                              ( case ( ( [Map String (Bool, Region)]
_bodyIscopes
                                                                                                                                                                                                                                                       )
                                                                                                                                                                                                                                                     ) of
                                                                                                                                                                                                                                                  [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                                                    ( case ( ( DeterminedVariableStyle
_bodyIvariableStyle
                                                                                                                                                                                                                                                             )
                                                                                                                                                                                                                                                           ) of
                                                                                                                                                                                                                                                        DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                                          ( case ( ( [String -> LintMessage]
_nameIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_bodyIwarnings
                                                                                                                                                                                                                                                                   )
                                                                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                                                                              [String -> LintMessage]
_warnings_augmented_syn ->
                                                                                                                                                                                                                                                                ( case ( ( Region -> Token -> MToken
MToken Region
_nameImtokenPos (String -> Token
Identifier String
_nameIidentifier)
                                                                                                                                                                                                                                                                         )
                                                                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                                                                    MToken
_funcname ->
                                                                                                                                                                                                                                                                      ( case ( ( [Map String (Bool, Region)]
-> MToken -> Maybe (String -> LintMessage)
checkShadows [Map String (Bool, Region)]
_lhsIscopes MToken
_funcname
                                                                                                                                                                                                                                                                               )
                                                                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                                                                          Maybe (String -> LintMessage)
_funcNameShadows ->
                                                                                                                                                                                                                                                                            ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_shadowing LintSettings
_lhsIconfig)
                                                                                                                                                                                                                                                                                        then forall a. a -> a
id
                                                                                                                                                                                                                                                                                        else forall a. [a] -> [a] -> [a]
(++) forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. [Maybe a] -> [a]
catMaybes forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a b. (a -> b) -> [a] -> [b]
map ([Map String (Bool, Region)]
-> MToken -> Maybe (String -> LintMessage)
checkShadows [Map String (Bool, Region)]
_lhsIscopes) forall a b. (a -> b) -> a -> b
$ [MToken]
_argIdentifiers
                                                                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                                                                [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2 ->
                                                                                                                                                                                                                                                                                  ( case ( ( if Bool -> Bool
not (LintSettings -> Bool
lint_shadowing LintSettings
_lhsIconfig) Bool -> Bool -> Bool
|| forall a. Maybe a -> Bool
isNothing Maybe (String -> LintMessage)
_funcNameShadows
                                                                                                                                                                                                                                                                                              then forall a. a -> a
id
                                                                                                                                                                                                                                                                                              else (:) forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. a -> Maybe a -> a
fromMaybe (forall a. HasCallStack => String -> a
error String
"fromMaybe ALocFunc +warnings") forall a b. (a -> b) -> a -> b
$ Maybe (String -> LintMessage)
_funcNameShadows
                                                                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                                                                      [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1 ->
                                                                                                                                                                                                                                                                                        ( case ( ( forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
foldr forall a b. (a -> b) -> a -> b
($) [String -> LintMessage]
_warnings_augmented_syn [[String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f1, [String -> LintMessage] -> [String -> LintMessage]
_warnings_augmented_f2]
                                                                                                                                                                                                                                                                                                 )
                                                                                                                                                                                                                                                                                               ) of
                                                                                                                                                                                                                                                                                            [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                                                                              (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisIfStatement, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                                                                            )
                                                                                                                                                                                                                                                                      )
                                                                                                                                                                                                                                                                )
                                                                                                                                                                                                                                                          )
                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                              )
                                                                                                                                                                                                                                        )
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_UnOp_1
sem_Stat_ALocFunc_1
                                   )
                                 ) of
                              (T_UnOp_1
sem_Stat_1) ->
                                (Stat
_lhsOcopy, T_UnOp_1
sem_Stat_1)
                          )
                    )
              )
        )
  )

-- Token -------------------------------------------------------
-- cata
sem_Token
  :: Token
  -> T_Token
sem_Token :: Token -> T_Token
sem_Token (Whitespace String
_space) =
  (String -> T_Token
sem_Token_Whitespace String
_space)
sem_Token (DashComment String
_comment) =
  (String -> T_Token
sem_Token_DashComment String
_comment)
sem_Token (DashBlockComment Int
_depth String
_comment) =
  (Int -> String -> T_Token
sem_Token_DashBlockComment Int
_depth String
_comment)
sem_Token (SlashComment String
_comment) =
  (String -> T_Token
sem_Token_SlashComment String
_comment)
sem_Token (SlashBlockComment String
_comment) =
  (String -> T_Token
sem_Token_SlashBlockComment String
_comment)
sem_Token (Token
Semicolon) =
  (T_Token
sem_Token_Semicolon)
sem_Token (TNumber String
_num) =
  (String -> T_Token
sem_Token_TNumber String
_num)
sem_Token (DQString String
_str) =
  (String -> T_Token
sem_Token_DQString String
_str)
sem_Token (SQString String
_str) =
  (String -> T_Token
sem_Token_SQString String
_str)
sem_Token (MLString String
_str) =
  (String -> T_Token
sem_Token_MLString String
_str)
sem_Token (Token
TTrue) =
  (T_Token
sem_Token_TTrue)
sem_Token (Token
TFalse) =
  (T_Token
sem_Token_TFalse)
sem_Token (Token
Nil) =
  (T_Token
sem_Token_Nil)
sem_Token (Token
VarArg) =
  (T_Token
sem_Token_VarArg)
sem_Token (Token
Plus) =
  (T_Token
sem_Token_Plus)
sem_Token (Token
Minus) =
  (T_Token
sem_Token_Minus)
sem_Token (Token
Multiply) =
  (T_Token
sem_Token_Multiply)
sem_Token (Token
Divide) =
  (T_Token
sem_Token_Divide)
sem_Token (Token
Modulus) =
  (T_Token
sem_Token_Modulus)
sem_Token (Token
Power) =
  (T_Token
sem_Token_Power)
sem_Token (Token
TEq) =
  (T_Token
sem_Token_TEq)
sem_Token (Token
TNEq) =
  (T_Token
sem_Token_TNEq)
sem_Token (Token
TCNEq) =
  (T_Token
sem_Token_TCNEq)
sem_Token (Token
TLEQ) =
  (T_Token
sem_Token_TLEQ)
sem_Token (Token
TGEQ) =
  (T_Token
sem_Token_TGEQ)
sem_Token (Token
TLT) =
  (T_Token
sem_Token_TLT)
sem_Token (Token
TGT) =
  (T_Token
sem_Token_TGT)
sem_Token (Token
Equals) =
  (T_Token
sem_Token_Equals)
sem_Token (Token
Concatenate) =
  (T_Token
sem_Token_Concatenate)
sem_Token (Token
Colon) =
  (T_Token
sem_Token_Colon)
sem_Token (Token
Dot) =
  (T_Token
sem_Token_Dot)
sem_Token (Token
Comma) =
  (T_Token
sem_Token_Comma)
sem_Token (Token
Hash) =
  (T_Token
sem_Token_Hash)
sem_Token (Token
Not) =
  (T_Token
sem_Token_Not)
sem_Token (Token
CNot) =
  (T_Token
sem_Token_CNot)
sem_Token (Token
And) =
  (T_Token
sem_Token_And)
sem_Token (Token
CAnd) =
  (T_Token
sem_Token_CAnd)
sem_Token (Token
Or) =
  (T_Token
sem_Token_Or)
sem_Token (Token
COr) =
  (T_Token
sem_Token_COr)
sem_Token (Token
Function) =
  (T_Token
sem_Token_Function)
sem_Token (Token
Local) =
  (T_Token
sem_Token_Local)
sem_Token (Token
If) =
  (T_Token
sem_Token_If)
sem_Token (Token
Then) =
  (T_Token
sem_Token_Then)
sem_Token (Token
Elseif) =
  (T_Token
sem_Token_Elseif)
sem_Token (Token
Else) =
  (T_Token
sem_Token_Else)
sem_Token (Token
For) =
  (T_Token
sem_Token_For)
sem_Token (Token
In) =
  (T_Token
sem_Token_In)
sem_Token (Token
Do) =
  (T_Token
sem_Token_Do)
sem_Token (Token
While) =
  (T_Token
sem_Token_While)
sem_Token (Token
Until) =
  (T_Token
sem_Token_Until)
sem_Token (Token
Repeat) =
  (T_Token
sem_Token_Repeat)
sem_Token (Token
Continue) =
  (T_Token
sem_Token_Continue)
sem_Token (Token
Break) =
  (T_Token
sem_Token_Break)
sem_Token (Token
Return) =
  (T_Token
sem_Token_Return)
sem_Token (Token
End) =
  (T_Token
sem_Token_End)
sem_Token (Token
LRound) =
  (T_Token
sem_Token_LRound)
sem_Token (Token
RRound) =
  (T_Token
sem_Token_RRound)
sem_Token (Token
LCurly) =
  (T_Token
sem_Token_LCurly)
sem_Token (Token
RCurly) =
  (T_Token
sem_Token_RCurly)
sem_Token (Token
LSquare) =
  (T_Token
sem_Token_LSquare)
sem_Token (Token
RSquare) =
  (T_Token
sem_Token_RSquare)
sem_Token (Label String
_whitespaceBefore String
_lbl String
_whitespaceAfter) =
  (String -> String -> String -> T_Token
sem_Token_Label String
_whitespaceBefore String
_lbl String
_whitespaceAfter)
sem_Token (Identifier String
_ident) =
  (String -> T_Token
sem_Token_Identifier String
_ident)

-- semantic domain
type T_Token = (Token, String, ([String -> LintMessage]))
data Inh_Token = Inh_Token {}
data Syn_Token = Syn_Token {Syn_Token -> Token
copy_Syn_Token :: Token, Syn_Token -> String
identifier_Syn_Token :: String, Syn_Token -> [String -> LintMessage]
warnings_Syn_Token :: ([String -> LintMessage])}
wrap_Token
  :: T_Token
  -> Inh_Token
  -> Syn_Token
wrap_Token :: T_Token -> Inh_Token -> Syn_Token
wrap_Token T_Token
sem (Inh_Token
Inh_Token) =
  ( let
      (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings) = T_Token
sem
    in
      (Token -> String -> [String -> LintMessage] -> Syn_Token
Syn_Token Token
_lhsOcopy String
_lhsOidentifier [String -> LintMessage]
_lhsOwarnings)
  )
sem_Token_Whitespace
  :: String
  -> T_Token
sem_Token_Whitespace :: String -> T_Token
sem_Token_Whitespace String
space_ =
  ( case ( ( String -> Token
Whitespace String
space_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_DashComment
  :: String
  -> T_Token
sem_Token_DashComment :: String -> T_Token
sem_Token_DashComment String
comment_ =
  ( case ( ( String -> Token
DashComment String
comment_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_DashBlockComment
  :: Int
  -> String
  -> T_Token
sem_Token_DashBlockComment :: Int -> String -> T_Token
sem_Token_DashBlockComment Int
depth_ String
comment_ =
  ( case ( ( Int -> String -> Token
DashBlockComment Int
depth_ String
comment_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_SlashComment
  :: String
  -> T_Token
sem_Token_SlashComment :: String -> T_Token
sem_Token_SlashComment String
comment_ =
  ( case ( ( String -> Token
SlashComment String
comment_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_SlashBlockComment
  :: String
  -> T_Token
sem_Token_SlashBlockComment :: String -> T_Token
sem_Token_SlashBlockComment String
comment_ =
  ( case ( ( String -> Token
SlashBlockComment String
comment_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Semicolon :: T_Token
sem_Token_Semicolon :: T_Token
sem_Token_Semicolon =
  ( case ( ( Token
Semicolon
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TNumber
  :: String
  -> T_Token
sem_Token_TNumber :: String -> T_Token
sem_Token_TNumber String
num_ =
  ( case ( ( String -> Token
TNumber String
num_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_DQString
  :: String
  -> T_Token
sem_Token_DQString :: String -> T_Token
sem_Token_DQString String
str_ =
  ( case ( ( String -> Token
DQString String
str_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_SQString
  :: String
  -> T_Token
sem_Token_SQString :: String -> T_Token
sem_Token_SQString String
str_ =
  ( case ( ( String -> Token
SQString String
str_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_MLString
  :: String
  -> T_Token
sem_Token_MLString :: String -> T_Token
sem_Token_MLString String
str_ =
  ( case ( ( String -> Token
MLString String
str_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TTrue :: T_Token
sem_Token_TTrue :: T_Token
sem_Token_TTrue =
  ( case ( ( Token
TTrue
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TFalse :: T_Token
sem_Token_TFalse :: T_Token
sem_Token_TFalse =
  ( case ( ( Token
TFalse
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Nil :: T_Token
sem_Token_Nil :: T_Token
sem_Token_Nil =
  ( case ( ( Token
Nil
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_VarArg :: T_Token
sem_Token_VarArg :: T_Token
sem_Token_VarArg =
  ( case ( ( Token
VarArg
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Plus :: T_Token
sem_Token_Plus :: T_Token
sem_Token_Plus =
  ( case ( ( Token
Plus
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Minus :: T_Token
sem_Token_Minus :: T_Token
sem_Token_Minus =
  ( case ( ( Token
Minus
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Multiply :: T_Token
sem_Token_Multiply :: T_Token
sem_Token_Multiply =
  ( case ( ( Token
Multiply
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Divide :: T_Token
sem_Token_Divide :: T_Token
sem_Token_Divide =
  ( case ( ( Token
Divide
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Modulus :: T_Token
sem_Token_Modulus :: T_Token
sem_Token_Modulus =
  ( case ( ( Token
Modulus
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Power :: T_Token
sem_Token_Power :: T_Token
sem_Token_Power =
  ( case ( ( Token
Power
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TEq :: T_Token
sem_Token_TEq :: T_Token
sem_Token_TEq =
  ( case ( ( Token
TEq
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TNEq :: T_Token
sem_Token_TNEq :: T_Token
sem_Token_TNEq =
  ( case ( ( Token
TNEq
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TCNEq :: T_Token
sem_Token_TCNEq :: T_Token
sem_Token_TCNEq =
  ( case ( ( Token
TCNEq
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TLEQ :: T_Token
sem_Token_TLEQ :: T_Token
sem_Token_TLEQ =
  ( case ( ( Token
TLEQ
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TGEQ :: T_Token
sem_Token_TGEQ :: T_Token
sem_Token_TGEQ =
  ( case ( ( Token
TGEQ
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TLT :: T_Token
sem_Token_TLT :: T_Token
sem_Token_TLT =
  ( case ( ( Token
TLT
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_TGT :: T_Token
sem_Token_TGT :: T_Token
sem_Token_TGT =
  ( case ( ( Token
TGT
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Equals :: T_Token
sem_Token_Equals :: T_Token
sem_Token_Equals =
  ( case ( ( Token
Equals
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Concatenate :: T_Token
sem_Token_Concatenate :: T_Token
sem_Token_Concatenate =
  ( case ( ( Token
Concatenate
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Colon :: T_Token
sem_Token_Colon :: T_Token
sem_Token_Colon =
  ( case ( ( Token
Colon
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Dot :: T_Token
sem_Token_Dot :: T_Token
sem_Token_Dot =
  ( case ( ( Token
Dot
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Comma :: T_Token
sem_Token_Comma :: T_Token
sem_Token_Comma =
  ( case ( ( Token
Comma
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Hash :: T_Token
sem_Token_Hash :: T_Token
sem_Token_Hash =
  ( case ( ( Token
Hash
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Not :: T_Token
sem_Token_Not :: T_Token
sem_Token_Not =
  ( case ( ( Token
Not
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_CNot :: T_Token
sem_Token_CNot :: T_Token
sem_Token_CNot =
  ( case ( ( Token
CNot
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_And :: T_Token
sem_Token_And :: T_Token
sem_Token_And =
  ( case ( ( Token
And
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_CAnd :: T_Token
sem_Token_CAnd :: T_Token
sem_Token_CAnd =
  ( case ( ( Token
CAnd
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Or :: T_Token
sem_Token_Or :: T_Token
sem_Token_Or =
  ( case ( ( Token
Or
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_COr :: T_Token
sem_Token_COr :: T_Token
sem_Token_COr =
  ( case ( ( Token
COr
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Function :: T_Token
sem_Token_Function :: T_Token
sem_Token_Function =
  ( case ( ( Token
Function
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Local :: T_Token
sem_Token_Local :: T_Token
sem_Token_Local =
  ( case ( ( Token
Local
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_If :: T_Token
sem_Token_If :: T_Token
sem_Token_If =
  ( case ( ( Token
If
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Then :: T_Token
sem_Token_Then :: T_Token
sem_Token_Then =
  ( case ( ( Token
Then
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Elseif :: T_Token
sem_Token_Elseif :: T_Token
sem_Token_Elseif =
  ( case ( ( Token
Elseif
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Else :: T_Token
sem_Token_Else :: T_Token
sem_Token_Else =
  ( case ( ( Token
Else
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_For :: T_Token
sem_Token_For :: T_Token
sem_Token_For =
  ( case ( ( Token
For
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_In :: T_Token
sem_Token_In :: T_Token
sem_Token_In =
  ( case ( ( Token
In
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Do :: T_Token
sem_Token_Do :: T_Token
sem_Token_Do =
  ( case ( ( Token
Do
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_While :: T_Token
sem_Token_While :: T_Token
sem_Token_While =
  ( case ( ( Token
While
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Until :: T_Token
sem_Token_Until :: T_Token
sem_Token_Until =
  ( case ( ( Token
Until
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Repeat :: T_Token
sem_Token_Repeat :: T_Token
sem_Token_Repeat =
  ( case ( ( Token
Repeat
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Continue :: T_Token
sem_Token_Continue :: T_Token
sem_Token_Continue =
  ( case ( ( Token
Continue
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Break :: T_Token
sem_Token_Break :: T_Token
sem_Token_Break =
  ( case ( ( Token
Break
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Return :: T_Token
sem_Token_Return :: T_Token
sem_Token_Return =
  ( case ( ( Token
Return
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_End :: T_Token
sem_Token_End :: T_Token
sem_Token_End =
  ( case ( ( Token
End
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_LRound :: T_Token
sem_Token_LRound :: T_Token
sem_Token_LRound =
  ( case ( ( Token
LRound
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_RRound :: T_Token
sem_Token_RRound :: T_Token
sem_Token_RRound =
  ( case ( ( Token
RRound
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_LCurly :: T_Token
sem_Token_LCurly :: T_Token
sem_Token_LCurly =
  ( case ( ( Token
LCurly
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_RCurly :: T_Token
sem_Token_RCurly :: T_Token
sem_Token_RCurly =
  ( case ( ( Token
RCurly
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_LSquare :: T_Token
sem_Token_LSquare :: T_Token
sem_Token_LSquare =
  ( case ( ( Token
LSquare
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_RSquare :: T_Token
sem_Token_RSquare :: T_Token
sem_Token_RSquare =
  ( case ( ( Token
RSquare
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Label
  :: String
  -> String
  -> String
  -> T_Token
sem_Token_Label :: String -> String -> String -> T_Token
sem_Token_Label String
whitespaceBefore_ String
lbl_ String
whitespaceAfter_ =
  ( case ( ( String -> String -> String -> Token
Label String
whitespaceBefore_ String
lbl_ String
whitespaceAfter_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
lbl_
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )
sem_Token_Identifier
  :: String
  -> T_Token
sem_Token_Identifier :: String -> T_Token
sem_Token_Identifier String
ident_ =
  ( case ( ( String -> Token
Identifier String
ident_
           )
         ) of
      Token
_copy ->
        ( case ( ( Token
_copy
                 )
               ) of
            Token
_lhsOcopy ->
              ( case ( ( String
ident_
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (Token
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )

-- TokenList ---------------------------------------------------
-- cata
sem_TokenList
  :: TokenList
  -> T_TokenList
sem_TokenList :: TokenList -> T_TokenList
sem_TokenList TokenList
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_Token -> T_TokenList -> T_TokenList
sem_TokenList_Cons T_TokenList
sem_TokenList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map Token -> T_Token
sem_Token TokenList
list))

-- semantic domain
type T_TokenList = (TokenList, String, ([String -> LintMessage]))
data Inh_TokenList = Inh_TokenList {}
data Syn_TokenList = Syn_TokenList {Syn_TokenList -> TokenList
copy_Syn_TokenList :: TokenList, Syn_TokenList -> String
identifier_Syn_TokenList :: String, Syn_TokenList -> [String -> LintMessage]
warnings_Syn_TokenList :: ([String -> LintMessage])}
wrap_TokenList
  :: T_TokenList
  -> Inh_TokenList
  -> Syn_TokenList
wrap_TokenList :: T_TokenList -> Inh_TokenList -> Syn_TokenList
wrap_TokenList T_TokenList
sem (Inh_TokenList
Inh_TokenList) =
  ( let
      (TokenList
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings) = T_TokenList
sem
    in
      (TokenList -> String -> [String -> LintMessage] -> Syn_TokenList
Syn_TokenList TokenList
_lhsOcopy String
_lhsOidentifier [String -> LintMessage]
_lhsOwarnings)
  )
sem_TokenList_Cons
  :: T_Token
  -> T_TokenList
  -> T_TokenList
sem_TokenList_Cons :: T_Token -> T_TokenList -> T_TokenList
sem_TokenList_Cons T_Token
hd_ T_TokenList
tl_ =
  ( case (T_TokenList
tl_) of
      (TokenList
_tlIcopy, String
_tlIidentifier, [String -> LintMessage]
_tlIwarnings) ->
        ( case (T_Token
hd_) of
            (Token
_hdIcopy, String
_hdIidentifier, [String -> LintMessage]
_hdIwarnings) ->
              ( case ( ( (:) Token
_hdIcopy TokenList
_tlIcopy
                       )
                     ) of
                  TokenList
_copy ->
                    ( case ( ( TokenList
_copy
                             )
                           ) of
                        TokenList
_lhsOcopy ->
                          ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                   )
                                 ) of
                              String
_lhsOidentifier ->
                                ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                         )
                                       ) of
                                    [String -> LintMessage]
_lhsOwarnings ->
                                      (TokenList
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                                )
                          )
                    )
              )
        )
  )
sem_TokenList_Nil :: T_TokenList
sem_TokenList_Nil :: T_TokenList
sem_TokenList_Nil =
  ( case ( ( []
           )
         ) of
      TokenList
_copy ->
        ( case ( ( TokenList
_copy
                 )
               ) of
            TokenList
_lhsOcopy ->
              ( case ( ( String
unknownIdentifier
                       )
                     ) of
                  String
_lhsOidentifier ->
                    ( case ( ( []
                             )
                           ) of
                        [String -> LintMessage]
_lhsOwarnings ->
                          (TokenList
_lhsOcopy, String
_lhsOidentifier, [String -> LintMessage]
_lhsOwarnings)
                    )
              )
        )
  )

-- UnOp --------------------------------------------------------
-- cata
sem_UnOp
  :: UnOp
  -> T_UnOp
sem_UnOp :: UnOp -> T_UnOp
sem_UnOp (UnOp
UnMinus) =
  (T_UnOp
sem_UnOp_UnMinus)
sem_UnOp (UnOp
ANot) =
  (T_UnOp
sem_UnOp_ANot)
sem_UnOp (UnOp
AHash) =
  (T_UnOp
sem_UnOp_AHash)

-- semantic domain
type T_UnOp = (UnOp, T_UnOp_1)
type T_UnOp_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_UnOp = Inh_UnOp {Inh_UnOp -> LintSettings
config_Inh_UnOp :: LintSettings, Inh_UnOp -> String
funcName_Inh_UnOp :: String, Inh_UnOp -> Map String [Region]
globalDefinitions_Inh_UnOp :: (M.Map String [Region]), Inh_UnOp -> Bool
isInModule_Inh_UnOp :: Bool, Inh_UnOp -> Bool
isMeta_Inh_UnOp :: Bool, Inh_UnOp -> Int
loopLevel_Inh_UnOp :: Int, Inh_UnOp -> Region
mtokenPos_Inh_UnOp :: Region, Inh_UnOp -> Int
scopeLevel_Inh_UnOp :: Int, Inh_UnOp -> [Map String (Bool, Region)]
scopes_Inh_UnOp :: ([M.Map String (Bool, Region)]), Inh_UnOp -> DeterminedVariableStyle
variableStyle_Inh_UnOp :: DeterminedVariableStyle}
data Syn_UnOp = Syn_UnOp {Syn_UnOp -> UnOp
copy_Syn_UnOp :: UnOp, Syn_UnOp -> Map String [Region]
globalDefinitions_Syn_UnOp :: (M.Map String [Region]), Syn_UnOp -> String
identifier_Syn_UnOp :: String, Syn_UnOp -> Bool
isInModule_Syn_UnOp :: Bool, Syn_UnOp -> Bool
isNegation_Syn_UnOp :: Bool, Syn_UnOp -> Region
mtokenPos_Syn_UnOp :: Region, Syn_UnOp -> [Map String (Bool, Region)]
scopes_Syn_UnOp :: ([M.Map String (Bool, Region)]), Syn_UnOp -> DeterminedVariableStyle
variableStyle_Syn_UnOp :: DeterminedVariableStyle, Syn_UnOp -> [String -> LintMessage]
warnings_Syn_UnOp :: ([String -> LintMessage])}
wrap_UnOp
  :: T_UnOp
  -> Inh_UnOp
  -> Syn_UnOp
wrap_UnOp :: T_UnOp -> Inh_UnOp -> Syn_UnOp
wrap_UnOp T_UnOp
sem (Inh_UnOp LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (UnOp
_lhsOcopy, T_UnOp_1
sem_1) = T_UnOp
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisNegation, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_UnOp_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (UnOp
-> Map String [Region]
-> String
-> Bool
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_UnOp
Syn_UnOp UnOp
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Bool
_lhsOisNegation Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_UnOp_UnMinus :: T_UnOp
sem_UnOp_UnMinus :: T_UnOp
sem_UnOp_UnMinus =
  ( case ( ( UnOp
UnMinus
           )
         ) of
      UnOp
_copy ->
        ( case ( ( UnOp
_copy
                 )
               ) of
            UnOp
_lhsOcopy ->
              ( case ( ( let
                          sem_UnOp_UnMinus_1 :: T_UnOp_1
                          sem_UnOp_UnMinus_1 :: T_UnOp_1
sem_UnOp_UnMinus_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
False
                                                             )
                                                           ) of
                                                        Bool
_lhsOisNegation ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisNegation, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_UnOp_1
sem_UnOp_UnMinus_1
                       )
                     ) of
                  (T_UnOp_1
sem_UnOp_1) ->
                    (UnOp
_lhsOcopy, T_UnOp_1
sem_UnOp_1)
              )
        )
  )
sem_UnOp_ANot :: T_UnOp
sem_UnOp_ANot :: T_UnOp
sem_UnOp_ANot =
  ( case ( ( UnOp
ANot
           )
         ) of
      UnOp
_copy ->
        ( case ( ( UnOp
_copy
                 )
               ) of
            UnOp
_lhsOcopy ->
              ( case ( ( let
                          sem_UnOp_ANot_1 :: T_UnOp_1
                          sem_UnOp_ANot_1 :: T_UnOp_1
sem_UnOp_ANot_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
True
                                                             )
                                                           ) of
                                                        Bool
_lhsOisNegation ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisNegation, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_UnOp_1
sem_UnOp_ANot_1
                       )
                     ) of
                  (T_UnOp_1
sem_UnOp_1) ->
                    (UnOp
_lhsOcopy, T_UnOp_1
sem_UnOp_1)
              )
        )
  )
sem_UnOp_AHash :: T_UnOp
sem_UnOp_AHash :: T_UnOp
sem_UnOp_AHash =
  ( case ( ( UnOp
AHash
           )
         ) of
      UnOp
_copy ->
        ( case ( ( UnOp
_copy
                 )
               ) of
            UnOp
_lhsOcopy ->
              ( case ( ( let
                          sem_UnOp_AHash_1 :: T_UnOp_1
                          sem_UnOp_AHash_1 :: T_UnOp_1
sem_UnOp_AHash_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Bool
False
                                                             )
                                                           ) of
                                                        Bool
_lhsOisNegation ->
                                                          ( case ( ( Region
_lhsImtokenPos
                                                                   )
                                                                 ) of
                                                              Region
_lhsOmtokenPos ->
                                                                ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                         )
                                                                       ) of
                                                                    [Map String (Bool, Region)]
_lhsOscopes ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                            ( case ( ( []
                                                                                     )
                                                                                   ) of
                                                                                [String -> LintMessage]
_lhsOwarnings ->
                                                                                  (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Bool
_lhsOisNegation, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_UnOp_1
sem_UnOp_AHash_1
                       )
                     ) of
                  (T_UnOp_1
sem_UnOp_1) ->
                    (UnOp
_lhsOcopy, T_UnOp_1
sem_UnOp_1)
              )
        )
  )

-- VarsList ----------------------------------------------------
-- cata
sem_VarsList
  :: VarsList
  -> T_VarsList
sem_VarsList :: VarsList -> T_VarsList
sem_VarsList VarsList
list =
  (forall (t :: * -> *) a b.
Foldable t =>
(a -> b -> b) -> b -> t a -> b
Prelude.foldr T_Declaration -> T_VarsList -> T_VarsList
sem_VarsList_Cons T_VarsList
sem_VarsList_Nil (forall a b. (a -> b) -> [a] -> [b]
Prelude.map Declaration -> T_Declaration
sem_Declaration VarsList
list))

-- semantic domain
type T_VarsList = (VarsList, T_VarsList_1)
type T_VarsList_1 =
  LintSettings
  -> String
  -> (M.Map String [Region])
  -> Bool
  -> Bool
  -> Bool
  -> Int
  -> Region
  -> Int
  -> ([M.Map String (Bool, Region)])
  -> DeterminedVariableStyle
  -> ((M.Map String [Region]), String, Bool, Region, ([M.Map String (Bool, Region)]), DeterminedVariableStyle, ([String -> LintMessage]))
data Inh_VarsList = Inh_VarsList {Inh_VarsList -> LintSettings
config_Inh_VarsList :: LintSettings, Inh_VarsList -> String
funcName_Inh_VarsList :: String, Inh_VarsList -> Map String [Region]
globalDefinitions_Inh_VarsList :: (M.Map String [Region]), Inh_VarsList -> Bool
isInModule_Inh_VarsList :: Bool, Inh_VarsList -> Bool
isMeta_Inh_VarsList :: Bool, Inh_VarsList -> Bool
localDefinition_Inh_VarsList :: Bool, Inh_VarsList -> Int
loopLevel_Inh_VarsList :: Int, Inh_VarsList -> Region
mtokenPos_Inh_VarsList :: Region, Inh_VarsList -> Int
scopeLevel_Inh_VarsList :: Int, Inh_VarsList -> [Map String (Bool, Region)]
scopes_Inh_VarsList :: ([M.Map String (Bool, Region)]), Inh_VarsList -> DeterminedVariableStyle
variableStyle_Inh_VarsList :: DeterminedVariableStyle}
data Syn_VarsList = Syn_VarsList {Syn_VarsList -> VarsList
copy_Syn_VarsList :: VarsList, Syn_VarsList -> Map String [Region]
globalDefinitions_Syn_VarsList :: (M.Map String [Region]), Syn_VarsList -> String
identifier_Syn_VarsList :: String, Syn_VarsList -> Bool
isInModule_Syn_VarsList :: Bool, Syn_VarsList -> Region
mtokenPos_Syn_VarsList :: Region, Syn_VarsList -> [Map String (Bool, Region)]
scopes_Syn_VarsList :: ([M.Map String (Bool, Region)]), Syn_VarsList -> DeterminedVariableStyle
variableStyle_Syn_VarsList :: DeterminedVariableStyle, Syn_VarsList -> [String -> LintMessage]
warnings_Syn_VarsList :: ([String -> LintMessage])}
wrap_VarsList
  :: T_VarsList
  -> Inh_VarsList
  -> Syn_VarsList
wrap_VarsList :: T_VarsList -> Inh_VarsList -> Syn_VarsList
wrap_VarsList T_VarsList
sem (Inh_VarsList LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIlocalDefinition Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle) =
  ( let
      (VarsList
_lhsOcopy, T_Declaration_1
sem_1) = T_VarsList
sem
      (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings) = T_Declaration_1
sem_1 LintSettings
_lhsIconfig String
_lhsIfuncName Map String [Region]
_lhsIglobalDefinitions Bool
_lhsIisInModule Bool
_lhsIisMeta Bool
_lhsIlocalDefinition Int
_lhsIloopLevel Region
_lhsImtokenPos Int
_lhsIscopeLevel [Map String (Bool, Region)]
_lhsIscopes DeterminedVariableStyle
_lhsIvariableStyle
    in
      (VarsList
-> Map String [Region]
-> String
-> Bool
-> Region
-> [Map String (Bool, Region)]
-> DeterminedVariableStyle
-> [String -> LintMessage]
-> Syn_VarsList
Syn_VarsList VarsList
_lhsOcopy Map String [Region]
_lhsOglobalDefinitions String
_lhsOidentifier Bool
_lhsOisInModule Region
_lhsOmtokenPos [Map String (Bool, Region)]
_lhsOscopes DeterminedVariableStyle
_lhsOvariableStyle [String -> LintMessage]
_lhsOwarnings)
  )
sem_VarsList_Cons
  :: T_Declaration
  -> T_VarsList
  -> T_VarsList
sem_VarsList_Cons :: T_Declaration -> T_VarsList -> T_VarsList
sem_VarsList_Cons T_Declaration
hd_ T_VarsList
tl_ =
  ( case (T_VarsList
tl_) of
      (VarsList
_tlIcopy, T_Declaration_1
tl_1) ->
        ( case (T_Declaration
hd_) of
            (Declaration
_hdIcopy, T_Declaration_1
hd_1) ->
              ( case ( ( (:) Declaration
_hdIcopy VarsList
_tlIcopy
                       )
                     ) of
                  VarsList
_copy ->
                    ( case ( ( VarsList
_copy
                             )
                           ) of
                        VarsList
_lhsOcopy ->
                          ( case ( ( let
                                      sem_VarsList_Cons_1 :: T_VarsList_1
                                      sem_VarsList_Cons_1 :: T_Declaration_1
sem_VarsList_Cons_1 =
                                        ( \LintSettings
_lhsIconfig
                                           String
_lhsIfuncName
                                           Map String [Region]
_lhsIglobalDefinitions
                                           Bool
_lhsIisInModule
                                           Bool
_lhsIisMeta
                                           Bool
_lhsIlocalDefinition
                                           Int
_lhsIloopLevel
                                           Region
_lhsImtokenPos
                                           Int
_lhsIscopeLevel
                                           [Map String (Bool, Region)]
_lhsIscopes
                                           DeterminedVariableStyle
_lhsIvariableStyle ->
                                              ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                       )
                                                     ) of
                                                  [Map String (Bool, Region)]
_hdOscopes ->
                                                    ( case ( ( Bool
_lhsIlocalDefinition
                                                             )
                                                           ) of
                                                        Bool
_hdOlocalDefinition ->
                                                          ( case ( ( Bool
_lhsIisMeta
                                                                   )
                                                                 ) of
                                                              Bool
_hdOisMeta ->
                                                                ( case ( ( LintSettings
_lhsIconfig
                                                                         )
                                                                       ) of
                                                                    LintSettings
_hdOconfig ->
                                                                      ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                               )
                                                                             ) of
                                                                          DeterminedVariableStyle
_hdOvariableStyle ->
                                                                            ( case ( ( Int
_lhsIscopeLevel
                                                                                     )
                                                                                   ) of
                                                                                Int
_hdOscopeLevel ->
                                                                                  ( case ( ( Region
_lhsImtokenPos
                                                                                           )
                                                                                         ) of
                                                                                      Region
_hdOmtokenPos ->
                                                                                        ( case ( ( Int
_lhsIloopLevel
                                                                                                 )
                                                                                               ) of
                                                                                            Int
_hdOloopLevel ->
                                                                                              ( case ( ( Bool
_lhsIisInModule
                                                                                                       )
                                                                                                     ) of
                                                                                                  Bool
_hdOisInModule ->
                                                                                                    ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                                                                                             )
                                                                                                           ) of
                                                                                                        Map String [Region]
_hdOglobalDefinitions ->
                                                                                                          ( case ( ( String
_lhsIfuncName
                                                                                                                   )
                                                                                                                 ) of
                                                                                                              String
_hdOfuncName ->
                                                                                                                ( case (T_Declaration_1
hd_1 LintSettings
_hdOconfig String
_hdOfuncName Map String [Region]
_hdOglobalDefinitions Bool
_hdOisInModule Bool
_hdOisMeta Bool
_hdOlocalDefinition Int
_hdOloopLevel Region
_hdOmtokenPos Int
_hdOscopeLevel [Map String (Bool, Region)]
_hdOscopes DeterminedVariableStyle
_hdOvariableStyle) of
                                                                                                                    (Map String [Region]
_hdIglobalDefinitions, String
_hdIidentifier, Bool
_hdIisInModule, Region
_hdImtokenPos, [Map String (Bool, Region)]
_hdIscopes, DeterminedVariableStyle
_hdIvariableStyle, [String -> LintMessage]
_hdIwarnings) ->
                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_hdIscopes
                                                                                                                               )
                                                                                                                             ) of
                                                                                                                          [Map String (Bool, Region)]
_tlOscopes ->
                                                                                                                            ( case ( ( Bool
_lhsIlocalDefinition
                                                                                                                                     )
                                                                                                                                   ) of
                                                                                                                                Bool
_tlOlocalDefinition ->
                                                                                                                                  ( case ( ( Bool
_lhsIisMeta
                                                                                                                                           )
                                                                                                                                         ) of
                                                                                                                                      Bool
_tlOisMeta ->
                                                                                                                                        ( case ( ( Bool
_hdIisInModule
                                                                                                                                                 )
                                                                                                                                               ) of
                                                                                                                                            Bool
_tlOisInModule ->
                                                                                                                                              ( case ( ( Map String [Region]
_hdIglobalDefinitions
                                                                                                                                                       )
                                                                                                                                                     ) of
                                                                                                                                                  Map String [Region]
_tlOglobalDefinitions ->
                                                                                                                                                    ( case ( ( LintSettings
_lhsIconfig
                                                                                                                                                             )
                                                                                                                                                           ) of
                                                                                                                                                        LintSettings
_tlOconfig ->
                                                                                                                                                          ( case ( ( DeterminedVariableStyle
_hdIvariableStyle
                                                                                                                                                                   )
                                                                                                                                                                 ) of
                                                                                                                                                              DeterminedVariableStyle
_tlOvariableStyle ->
                                                                                                                                                                ( case ( ( Int
_lhsIscopeLevel
                                                                                                                                                                         )
                                                                                                                                                                       ) of
                                                                                                                                                                    Int
_tlOscopeLevel ->
                                                                                                                                                                      ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                               )
                                                                                                                                                                             ) of
                                                                                                                                                                          Region
_tlOmtokenPos ->
                                                                                                                                                                            ( case ( ( Int
_lhsIloopLevel
                                                                                                                                                                                     )
                                                                                                                                                                                   ) of
                                                                                                                                                                                Int
_tlOloopLevel ->
                                                                                                                                                                                  ( case ( ( String
_lhsIfuncName
                                                                                                                                                                                           )
                                                                                                                                                                                         ) of
                                                                                                                                                                                      String
_tlOfuncName ->
                                                                                                                                                                                        ( case (T_Declaration_1
tl_1 LintSettings
_tlOconfig String
_tlOfuncName Map String [Region]
_tlOglobalDefinitions Bool
_tlOisInModule Bool
_tlOisMeta Bool
_tlOlocalDefinition Int
_tlOloopLevel Region
_tlOmtokenPos Int
_tlOscopeLevel [Map String (Bool, Region)]
_tlOscopes DeterminedVariableStyle
_tlOvariableStyle) of
                                                                                                                                                                                            (Map String [Region]
_tlIglobalDefinitions, String
_tlIidentifier, Bool
_tlIisInModule, Region
_tlImtokenPos, [Map String (Bool, Region)]
_tlIscopes, DeterminedVariableStyle
_tlIvariableStyle, [String -> LintMessage]
_tlIwarnings) ->
                                                                                                                                                                                              ( case ( ( Map String [Region]
_tlIglobalDefinitions
                                                                                                                                                                                                       )
                                                                                                                                                                                                     ) of
                                                                                                                                                                                                  Map String [Region]
_lhsOglobalDefinitions ->
                                                                                                                                                                                                    ( case ( ( (forall a b. a -> b -> a
const String
_hdIidentifier String
_tlIidentifier)
                                                                                                                                                                                                             )
                                                                                                                                                                                                           ) of
                                                                                                                                                                                                        String
_lhsOidentifier ->
                                                                                                                                                                                                          ( case ( ( Bool
_tlIisInModule
                                                                                                                                                                                                                   )
                                                                                                                                                                                                                 ) of
                                                                                                                                                                                                              Bool
_lhsOisInModule ->
                                                                                                                                                                                                                ( case ( ( Region
_hdImtokenPos
                                                                                                                                                                                                                         )
                                                                                                                                                                                                                       ) of
                                                                                                                                                                                                                    Region
_lhsOmtokenPos ->
                                                                                                                                                                                                                      ( case ( ( [Map String (Bool, Region)]
_tlIscopes
                                                                                                                                                                                                                               )
                                                                                                                                                                                                                             ) of
                                                                                                                                                                                                                          [Map String (Bool, Region)]
_lhsOscopes ->
                                                                                                                                                                                                                            ( case ( ( DeterminedVariableStyle
_tlIvariableStyle
                                                                                                                                                                                                                                     )
                                                                                                                                                                                                                                   ) of
                                                                                                                                                                                                                                DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                                                                                                                                                                                  ( case ( ( [String -> LintMessage]
_hdIwarnings forall a. [a] -> [a] -> [a]
++ [String -> LintMessage]
_tlIwarnings
                                                                                                                                                                                                                                           )
                                                                                                                                                                                                                                         ) of
                                                                                                                                                                                                                                      [String -> LintMessage]
_lhsOwarnings ->
                                                                                                                                                                                                                                        (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                                                                                                                                                                                  )
                                                                                                                                                                                                                            )
                                                                                                                                                                                                                      )
                                                                                                                                                                                                                )
                                                                                                                                                                                                          )
                                                                                                                                                                                                    )
                                                                                                                                                                                              )
                                                                                                                                                                                        )
                                                                                                                                                                                  )
                                                                                                                                                                            )
                                                                                                                                                                      )
                                                                                                                                                                )
                                                                                                                                                          )
                                                                                                                                                    )
                                                                                                                                              )
                                                                                                                                        )
                                                                                                                                  )
                                                                                                                            )
                                                                                                                      )
                                                                                                                )
                                                                                                          )
                                                                                                    )
                                                                                              )
                                                                                        )
                                                                                  )
                                                                            )
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                     in
                                      T_Declaration_1
sem_VarsList_Cons_1
                                   )
                                 ) of
                              (T_Declaration_1
sem_VarsList_1) ->
                                (VarsList
_lhsOcopy, T_Declaration_1
sem_VarsList_1)
                          )
                    )
              )
        )
  )
sem_VarsList_Nil :: T_VarsList
sem_VarsList_Nil :: T_VarsList
sem_VarsList_Nil =
  ( case ( ( []
           )
         ) of
      VarsList
_copy ->
        ( case ( ( VarsList
_copy
                 )
               ) of
            VarsList
_lhsOcopy ->
              ( case ( ( let
                          sem_VarsList_Nil_1 :: T_VarsList_1
                          sem_VarsList_Nil_1 :: T_Declaration_1
sem_VarsList_Nil_1 =
                            ( \LintSettings
_lhsIconfig
                               String
_lhsIfuncName
                               Map String [Region]
_lhsIglobalDefinitions
                               Bool
_lhsIisInModule
                               Bool
_lhsIisMeta
                               Bool
_lhsIlocalDefinition
                               Int
_lhsIloopLevel
                               Region
_lhsImtokenPos
                               Int
_lhsIscopeLevel
                               [Map String (Bool, Region)]
_lhsIscopes
                               DeterminedVariableStyle
_lhsIvariableStyle ->
                                  ( case ( ( Map String [Region]
_lhsIglobalDefinitions
                                           )
                                         ) of
                                      Map String [Region]
_lhsOglobalDefinitions ->
                                        ( case ( ( String
unknownIdentifier
                                                 )
                                               ) of
                                            String
_lhsOidentifier ->
                                              ( case ( ( Bool
_lhsIisInModule
                                                       )
                                                     ) of
                                                  Bool
_lhsOisInModule ->
                                                    ( case ( ( Region
_lhsImtokenPos
                                                             )
                                                           ) of
                                                        Region
_lhsOmtokenPos ->
                                                          ( case ( ( [Map String (Bool, Region)]
_lhsIscopes
                                                                   )
                                                                 ) of
                                                              [Map String (Bool, Region)]
_lhsOscopes ->
                                                                ( case ( ( DeterminedVariableStyle
_lhsIvariableStyle
                                                                         )
                                                                       ) of
                                                                    DeterminedVariableStyle
_lhsOvariableStyle ->
                                                                      ( case ( ( []
                                                                               )
                                                                             ) of
                                                                          [String -> LintMessage]
_lhsOwarnings ->
                                                                            (Map String [Region]
_lhsOglobalDefinitions, String
_lhsOidentifier, Bool
_lhsOisInModule, Region
_lhsOmtokenPos, [Map String (Bool, Region)]
_lhsOscopes, DeterminedVariableStyle
_lhsOvariableStyle, [String -> LintMessage]
_lhsOwarnings)
                                                                      )
                                                                )
                                                          )
                                                    )
                                              )
                                        )
                                  )
                            )
                         in
                          T_Declaration_1
sem_VarsList_Nil_1
                       )
                     ) of
                  (T_Declaration_1
sem_VarsList_1) ->
                    (VarsList
_lhsOcopy, T_Declaration_1
sem_VarsList_1)
              )
        )
  )