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ACV,KAAK;IACL,QAAQ;IACR,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,UAAU;IACV,OAAO;IACP,KAAK;IACL,KAAK;IACL,QAAQ;IACR,KAAK;IACL,MAAM;IACN,IAAI;IACJ,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,IAAI;IACJ,OAAO;IACP,MAAM;CACP,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,IAAI,GAAG,CAAC;IACjC,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,UAAU;IACV,SAAS;IACT,OAAO;IACP,MAAM;IACN,aAAa;IACb,KAAK;IACL,MAAM;IACN,IAAI;IACJ,MAAM;IACN,IAAI;IACJ,QAAQ;IACR,WAAW;IACX,KAAK;IACL,SAAS;IACT,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,KAAK;IACL,YAAY;IACZ,MAAM;IACN,OAAO;IACP,MAAM;IACN,KAAK;IACL,QAAQ;IACR,KAAK;IACL,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,YAAY;IACZ,WAAW;IACX,MAAM;IACN,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,MAAM;IACN,KAAK;IACL,KAAK;IACL,KAAK;IACL,QAAQ;IACR,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;IACT,MAAM;IACN,MAAM;IACN,OAAO;IACP,SAAS;CACV,CAAC,CAAC","sourcesContent":["export function isReservedName(name: string): string[] | undefined {\n const reserved = new Array<string>();\n if (CSHARP_RESERVED.has(name)) {\n reserved.push('C#');\n }\n if (JAVA_RESERVED.has(name)) {\n reserved.push('Java');\n }\n if (PYTHON_RESERVED.has(name)) {\n reserved.push('Python');\n }\n\n if (GO_RESERVED.has(name)) {\n reserved.push('Go');\n }\n return reserved.length > 0 ? reserved : undefined;\n}\n\nexport const CSHARP_RESERVED = new Set([\n 'abstract',\n 'as',\n 'base',\n 'bool',\n 'break',\n 'byte',\n 'case',\n 'catch',\n 'char',\n 'checked',\n 'class',\n 'const',\n 'continue',\n 'decimal',\n 'default',\n 'delegate',\n 'do',\n 'double',\n 'else',\n 'enum',\n 'event',\n 'explicit',\n 'extern',\n 'false',\n 'finally',\n 'fixed',\n 'float',\n 'for',\n 'foreach',\n 'goto',\n 'if',\n 'implicit',\n 'in',\n 'int',\n 'interface',\n 'internal',\n 'is',\n 'lock',\n 'long',\n 'namespace',\n 'new',\n 'null',\n 'object',\n 'operator',\n 'out',\n 'override',\n 'params',\n 'private',\n 'protected',\n 'public',\n 'readonly',\n 'ref',\n 'return',\n 'sbyte',\n 'sealed',\n 'short',\n 'sizeof',\n 'stackalloc',\n 'static',\n 'string',\n 'struct',\n 'switch',\n 'this',\n 'throw',\n 'true',\n 'try',\n 'typeof',\n 'uint',\n 'ulong',\n 'unchecked',\n 'unsafe',\n 'ushort',\n 'using',\n 'virtual',\n 'void',\n 'volatile',\n 'while',\n]);\n\nexport const JAVA_RESERVED = new Set([\n 'abstract',\n 'continue',\n 'for',\n 'new',\n 'switch',\n 'assert',\n 'default',\n 'goto',\n 'package',\n 'synchronized',\n 'boolean',\n 'do',\n 'if',\n 'private',\n 'this',\n 'break',\n 'double',\n 'implements',\n 'protected',\n 'throw',\n 'byte',\n 'else',\n 'import',\n 'public',\n 'throws',\n 'case',\n 'enum',\n 'instanceof',\n 'return',\n 'transient',\n 'catch',\n 'extends',\n 'int',\n 'short',\n 'try',\n 'char',\n 'final',\n 'interface',\n 'static',\n 'void',\n 'class',\n 'finally',\n 'long',\n 'strictfp',\n 'volatile',\n 'const',\n 'float',\n 'native',\n 'super',\n 'while',\n 'true',\n 'false',\n 'null',\n]);\n\nexport const PYTHON_RESERVED = new Set([\n 'False',\n 'class',\n 'finally',\n 'is',\n 'return',\n 'None',\n 'continue',\n 'for',\n 'lambda',\n 'try',\n 'True',\n 'def',\n 'from',\n 'nonlocal',\n 'while',\n 'and',\n 'del',\n 'global',\n 'not',\n 'with',\n 'as',\n 'elif',\n 'if',\n 'or',\n 'yield',\n 'assert',\n 'else',\n 'import',\n 'pass',\n 'break',\n 'except',\n 'in',\n 'raise',\n 'self',\n]);\n\nexport const GO_RESERVED = new Set([\n 'break',\n 'case',\n 'chan',\n 'const',\n 'continue',\n 'default',\n 'defer',\n 'else',\n 'fallthrough',\n 'for',\n 'func',\n 'go',\n 'goto',\n 'if',\n 'import',\n 'interface',\n 'map',\n 'package',\n 'range',\n 'return',\n 'select',\n 'struct',\n 'switch',\n 'type',\n 'var',\n // constants\n 'true',\n 'false',\n 'iota',\n 'nil',\n // types\n 'int',\n 'int8',\n 'int16',\n 'int32',\n 'int64',\n 'uint',\n 'uint8',\n 'uint16',\n 'uint32',\n 'uint64',\n 'uintptr',\n 'float32',\n 'float64',\n 'complex128',\n 'complex64',\n 'bool',\n 'rune',\n 'byte',\n 'string',\n 'error',\n // functions\n 'make',\n 'len',\n 'cap',\n 'new',\n 'append',\n 'copy',\n 'close',\n 'delete',\n 'complex',\n 'real',\n 'imag',\n 'panic',\n 'recover',\n]);\n"]} |