mirror of
https://github.com/apple/pkl.git
synced 2026-03-27 19:41:18 +01:00
Apply pkl formatter to codebase (#1236)
This applies the Pkl formatter to `stdlib/` and `.circleci/`
This commit is contained in:
@@ -45,15 +45,15 @@ class Parser {
|
||||
/// Value converters to apply to parsed values.
|
||||
///
|
||||
/// For further information see [PcfRenderer.converters].
|
||||
converters: Mapping<Class|String(!isEmpty), (unknown) -> unknown>
|
||||
converters: Mapping<Class | String(!isEmpty), (unknown) -> unknown>
|
||||
|
||||
/// Parses [source] as a JSON document.
|
||||
///
|
||||
/// Throws if an error occurs during parsing.
|
||||
///
|
||||
/// If [source] is a [Resource], the resource URI is included in parse error messages.
|
||||
external function parse(source: Resource|String): Value
|
||||
external function parse(source: Resource | String): Value
|
||||
}
|
||||
|
||||
/// Pkl representation of a JSON value.
|
||||
typealias Value = Null|Boolean|Number|String|Listing|Dynamic|Mapping
|
||||
typealias Value = Null | Boolean | Number | String | Listing | Dynamic | Mapping
|
||||
|
||||
Reference in New Issue
Block a user