0

Kotlin 保留关键词有哪些?

sky created at5 years ago view count: 2459
report
回复
0

    public static final Set<String> KEYWORDS = new HashSet<String>(Arrays.asList(
        "package",
        "as",
        "typealias",
        "class",
        "this",
        "super",
        "val",
        "var",
        "fun",
        "for",
        "null",
        "true",
        "false",
        "is",
        "in",
        "throw",
        "return",
        "break",
        "continue",
        "object",
        "if",
        "try",
        "else",
        "while",
        "do",
        "when",
        "interface",
        "typeof"
    ));
}```
查考:
 https://github.com/JetBrains/kotlin/blob/master/core/descriptors/src/org/jetbrains/kotlin/renderer/KeywordStringsGenerated.java#L27
5 years ago 回复

相关搜索关键词

Recent search keywords