-
Notifications
You must be signed in to change notification settings - Fork 0
Chore/update prefixes #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,9 +54,11 @@ interface SurfComponentBuilder : TextComponent.Builder, ComponentBuilderColors { | |
| suspend fun appendNewlineAsync(block: suspend SurfComponentBuilder.() -> Unit) = | ||
| appendNewline().appendAsync(block) | ||
|
|
||
| @Deprecated("Use TYPE specific functions") | ||
| fun appendNewPrefixedLine(block: SurfComponentBuilder.() -> Unit) = | ||
| appendNewPrefixedLine().append(block) | ||
|
Comment on lines
+57
to
59
|
||
|
|
||
| @Deprecated("Use TYPE specific functions") | ||
| suspend fun appendNewPrefixedLineAsync(block: suspend SurfComponentBuilder.() -> Unit) = | ||
| appendNewPrefixedLine().appendAsync(block) | ||
|
Comment on lines
+61
to
63
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KDoc for PREFIX_COLOR says it is "applied to all prefixes", but INFO_PREFIX/SUCCESS_PREFIX/WARNING_PREFIX/ERROR_PREFIX now call buildPrefix(INFO/SUCCESS/WARNING/ERROR) instead of PREFIX_COLOR. Either update the KDoc to reflect the per-type coloring, or pass PREFIX_COLOR to buildPrefix for all prefixes if the intent is consistency.