-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c6e067
commit 227fef9
Showing
5 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/kotlin/net/theevilreaper/dartpoet/type/TypeNames.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
package net.theevilreaper.dartpoet.type | ||
|
||
/** | ||
* The file contains some common used [ClassName] instances which are used in the library. | ||
* It contains only the primitive types which are supported by Dart. | ||
* @since 1.0.0 | ||
*/ | ||
|
||
// Represents the boolean type in Dart | ||
@JvmField | ||
val BOOLEAN: ClassName = ClassName("bool") | ||
|
||
// Represents the integer type in Dart | ||
@JvmField | ||
val INTEGER: ClassName = ClassName("int") | ||
|
||
// Represents the double type in Dart | ||
@JvmField | ||
val DOUBLE: ClassName = ClassName("double") | ||
|
||
// Represents the string type in Dart | ||
@JvmField | ||
val STRING: ClassName = ClassName("String") | ||
|
||
// Represents the dynamic type in Dart | ||
@JvmField | ||
val DYNAMIC: ClassName = DynamicClassName() |