kotlin_poet_rs/tokens/
mod.rs1#![doc = include_str!("README.md")]
2
3pub const EMPTY: &str = "";
7pub const SPACE: &str = " ";
9pub const NEW_LINE: &str = "\n";
11pub const NEW_LINE_CH: char = '\n';
13pub const INDENT: &str = " ";
15
16pub const DOT: &str = ".";
19pub const STAR: &str = "*";
21pub const COLON: &str = ":";
23pub const ASSIGN: &str = "=";
25pub const COMMA: &str = ",";
27pub const SEMICOLON: &str = ";";
29pub const QUESTION_MARK: &str = "?";
31pub const AT: &str = "@";
33pub const TICK: &str = "`";
35pub const ANGLE_BRACKET_LEFT: &str = "<";
37pub const ANGLE_BRACKET_RIGHT: &str = ">";
39pub const ARROW: &str = "->";
41pub const CURLY_BRACKET_LEFT: &str = "{";
43pub const CURLY_BRACKET_RIGHT: &str = "}";
45pub const ROUND_BRACKET_LEFT: &str = "(";
47pub const ROUND_BRACKET_RIGHT: &str = ")";
49
50pub const CONV_VAR_VALUE: &str = "value";
54pub const CONV_VAR_FIELD: &str = "field";
56
57
58pub const NAME_ESCAPED_TOKENS: &str = " -!\"#$%^&()*+,-=?@^_{|}~";
60pub const NAME_DISALLOWED_TOKENS: &str = ".:/\\[]<>";
61
62pub const INLINE_COMMENT_START: &str = "//";
66
67pub const BLOCK_COMMENT_START: &str = "/*";
69pub const BLOCK_COMMENT_MIDDLE: &str = " *";
71pub const BLOCK_COMMENT_END: &str = " */";
73
74pub const KDOC_COMMENT_START: &str = "/**";
76pub const KDOC_COMMENT_MIDDLE: &str = " *";
78pub const KDOC_COMMENT_END: &str = " */";
80
81pub mod keyword {
82 pub const CLASS: &str = "class";
83 pub const THIS: &str = "this";
85 pub const AS: &str = "as";
86 pub const OPERATOR: &str = "operator";
87 pub const INLINE: &str = "inline";
88 pub const OVERRIDE: &str = "override";
89 pub const SUSPEND: &str = "suspend";
90 pub const SET: &str = "set";
91 pub const GET: &str = "get";
92 pub const PACKAGE: &str = "package";
93 pub const TYPEALIAS: &str = "typealias";
94 pub const FUN: &str = "fun";
95 pub const VAL: &str = "val";
96 pub const VAR: &str = "var";
97 pub const PUBLIC: &str = "public";
98 pub const INTERNAL: &str = "internal";
99 pub const PRIVATE: &str = "private";
100 pub const PROTECTED: &str = "protected";
101 pub const OPEN: &str = "open";
102 pub const SEALED: &str = "sealed";
103 pub const OBJECT: &str = "object";
104 pub const ENUM: &str = "enum";
105 pub const DATA: &str = "data";
107 pub const INTERFACE: &str = "interface";
108 pub const FINAL: &str = "final";
109 pub const ABSTRACT: &str = "abstract";
110 pub const IMPORT: &str = "import";
111 pub const CONST: &str = "const";
112 pub const BY: &str = "by";
114 pub const CONSTRUCTOR: &str = "constructor";
116 pub const INIT: &str = "init";
118 pub const COMPANION: &str = "companion";
120 pub const INNER: &str = "inner";
122
123 pub const WHERE: &str = "where";
125 pub const IN: &str = "in";
126 pub const OUT: &str = "out";
127
128 pub const FILE: &str = "file";
130 pub const PROPERTY: &str = "property";
131 pub const FIELD: &str = "field";
132 pub const RECEIVER: &str = "receiver";
133 pub const PARAM: &str = "param";
134 pub const SET_PARAM: &str = "setparam";
135 pub const DELEGATE: &str = "delegate";
136}