Skip to content

Commit 8f51bbe

Browse files
committed
Added jsKeywords
1 parent e7848cd commit 8f51bbe

File tree

1 file changed

+9
-0
lines changed
  • utbot-framework/src/main/kotlin/org/utbot/framework/codegen

1 file changed

+9
-0
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/Keywords.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ private val kotlinHardKeywords = setOf(
1616
"val", "var", "when", "while"
1717
)
1818

19+
private val jsKeywords = setOf(
20+
"abstract", "arguments", "await", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue",
21+
"debugger", "default", "delete", "do", "double", "else", "enum", "eval", "export", "extends", "false", "final",
22+
"finally", "float", "for", "function", "goto", "if", "implements", "import", "in", "instanceof", "int", "interface",
23+
"let", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static",
24+
"super", "switch", "synchronized", "this", "throw", "throws", "transient", "true", "try", "typeof", "var", "void",
25+
"volatile", "while", "with", "yield"
26+
)
27+
1928
@Suppress("unused")
2029
private val kotlinSoftKeywords = setOf(
2130
"by", "catch", "constructor", "delegate", "dynamic", "field", "file", "finally", "get", "import", "init",

0 commit comments

Comments
 (0)