ShellCheck.ASTLib

ShellCheck-0.4.7: Shell script analysis tool

Safe Haskell | None
Language | Haskell98

ShellCheck.ASTLib

# Documentation

isLoop :: Token -> Bool #

willSplit :: Token -> Bool #

isGlob :: Token -> Bool #

isConstant :: Token -> Bool #

isEmpty :: Token -> Bool #

oversimplify :: Token -> [[Char]] #

getFlagsUntil :: ([Char] -> Bool) -> Token -> [(Token, [Char])] #

getAllFlags :: Token -> [(Token, [Char])] #

getLeadingFlags :: Token -> [(Token, [Char])] #

hasFlag :: Token -> [Char] -> Bool #

isFlag :: Token -> Bool #

isUnquotedFlag :: Token -> Bool #

bracedString :: Token -> [Char] #

isArrayExpansion :: Token -> Bool #

mayBecomeMultipleArgs :: Token -> Bool #

willBecomeMultipleArgs :: Token -> Bool #

willConcatInAssignment :: Token -> Bool #

getLiteralString :: Token -> Maybe String #

onlyLiteralString :: Token -> String #

getUnquotedLiteral :: Token -> Maybe [Char] #

getTrailingUnquotedLiteral :: Token -> Maybe Token #

getLeadingUnquotedString :: Token -> Maybe String #

getGlobOrLiteralString :: Token -> Maybe String #

getLiteralStringExt :: (Token -> Maybe String) -> Token -> Maybe String #

isLiteral :: Token -> Bool #

getWordParts :: Token -> [Token] #

braceExpand :: Token -> [Token] #

getCommand :: Token -> Maybe Token #

getCommandName :: Token -> Maybe String #

getCommandNameFromExpansion :: Token -> Maybe String #

getCommandBasename :: Token -> Maybe [Char] #

isAssignment :: Token -> Bool #

isOnlyRedirection :: Token -> Bool #

isFunction :: Token -> Bool #

isBraceExpansion :: Token -> Bool #

getCommandSequences :: Token -> [[Token]] #

getAssociativeArrays :: Token -> [String] #

data PseudoGlob #

Constructors

PGAny |
PGMany |
PGChar Char |

Instances

Eq PseudoGlob # |
Instance details Defined in ShellCheck.ASTLib Methods (==) :: PseudoGlob -> PseudoGlob -> Bool # (/=) :: PseudoGlob -> PseudoGlob -> Bool #
Show PseudoGlob # |
Instance details Defined in ShellCheck.ASTLib Methods showsPrec :: Int -> PseudoGlob -> ShowS # show :: PseudoGlob -> String # showList :: [PseudoGlob] -> ShowS #

wordToPseudoGlob :: Token -> Maybe [PseudoGlob] #

wordToExactPseudoGlob :: Token -> Maybe [PseudoGlob] #

simplifyPseudoGlob :: [PseudoGlob] -> [PseudoGlob] #

pseudoGlobsCanOverlap :: [PseudoGlob] -> [PseudoGlob] -> Bool #

pseudoGlobIsSuperSetof :: [PseudoGlob] -> [PseudoGlob] -> Bool #

wordsCanBeEqual :: Token -> Token -> Bool #