src/private/FormatScript-Definitions.ps1
# List of token name to string mappings with some unused enums removed # https://msdn.microsoft.com/en-us/library/system.management.automation.language.tokenkind(v=vs.85).aspx $TokenKindDefinitions = @{ 'Ampersand' = '&' 'And' = '-and' 'AndAnd' = '&&' 'As' = '-as' 'AtCurly' = '@{' 'AtParen' = '@(' 'Band' = '-band' 'Begin' = 'Begin' 'Bnot' = '-bnot' 'Bor' = '-bor' 'Break' = 'break' 'Bxor' = '-bxor' 'Catch' = 'catch' 'Ccontains' = '-ccontains' 'Ceq' = '-ceq' 'Cge' = '-cge' 'Cgt' = '-cgt' 'Cin' = '-cin' 'Class' = 'class' 'Cle' = '-cle' 'Clike' = '-clike' 'Clt' = '-clt' 'Cmatch' = '-cmatch' 'Cne' = '-cne' 'Cnotcontains' = '-cnotcontains' 'Cnotin' = '-cnotin' 'Cnotlike' = '-cnotlike' 'Cnotmatch' = '-cnotmatch' 'ColonColon' = '::' 'Comma' = ',' 'Continue' = 'continue' 'Creplace' = '-creplace' 'Csplit' = '-csplit' 'Data' = 'data' 'Define' = 'define' 'Divide' = '/' 'DivideEquals' = '/=' 'Do' = 'do' 'DollarParen' = '$(' 'Dot' = '.' 'DotDot' = '..' 'Dynamicparam' = 'dynamicparam' 'Else' = 'else' 'ElseIf' = 'elseif' 'End' = 'end' 'Enum' = 'enum' 'Equals' = '=' 'Exclaim' = '!' 'Exit' = 'exit' 'Filter' = 'filter' 'Finally' = 'finally' 'For' = 'for' 'Foreach' = 'foreach' 'Format' = '-f' 'From' = 'from' 'Function' = 'function' 'Icontains' = '-contains' 'Ieq' = '-eq' 'If' = 'if' 'Ige' = '-ge' 'Igt' = '-gt' 'Iin' = '-in' 'Ile' = '-le' 'Ilike' = '-like' 'Ilt' = '-lt' 'Imatch' = '-match' 'In' = 'in' 'Ine' = '-ne' 'InlineScript' = 'inlinescript' 'Inotcontains' = '-notcontains' 'Inotin' = '-notin' 'Inotlike' = '-notlike' 'Inotmatch' = '-notmatch' 'Ireplace' = '-replace' 'Is' = '-is' 'IsNot' = '-isnot' 'Isplit' = '-split' 'Join' = '-join' 'LBracket' = '[' 'LCurly' = '{' 'LineContinuation' = '`' 'LParen' = '(' 'Minus' = '-' 'MinusEquals' = '-=' 'MinusMinus' = '--' 'Multiply' = '*' 'MultiplyEquals' = '*=' 'Namespace' = 'namespace' 'NewLine' = '\r\n' 'Not' = '-not' 'Or' = '-or' 'OrOr' = '||' 'Parallel' = 'parallel' 'Param' = 'param' 'Pipe' = '|' 'Plus' = '+' 'PlusEquals' = '+=' 'PlusPlus' = '++' 'PostfixMinusMinus' = '--' 'PostfixPlusPlus' = '++' 'Private' = 'private' 'Process' = 'process' 'Public' = 'public' 'RBracket' = ']' 'RCurly' = '}' 'Rem' = '%' 'RemainderEquals' = '%=' 'Return' = 'return' 'RParen' = ')' 'Semi' = ';' 'Sequence' = 'sequence' 'Shl' = '-shl' 'Shr' = '-shr' 'Static' = 'static' 'Switch' = 'switch' 'Throw' = 'throw' 'Trap' = 'trap' 'Try' = 'try' 'Type' = 'type' 'Until' = 'until' 'While' = 'while' 'Workflow' = 'workflow' 'Xor' = '-xor' } |