-
Notifications
You must be signed in to change notification settings - Fork 122
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
Treat as
expressions as block-formattable if the subexpression is
#1542
Comments
final buildConfig = BuildConfig.build(
outputDirectory: outputDirectory,
packageName: await _packageName(),
packageRoot: Directory.current.uri,
buildMode: buildMode ?? BuildMode.release,
targetArchitecture: targetArchitecture ?? Architecture.current,
targetOS: targetOS ?? OS.current,
linkModePreference: linkModePreference ?? LinkModePreference.dynamic,
linkingEnabled: linkingEnabled ?? true,
cCompiler: cCompiler,
supportedAssetTypes: supportedAssetTypes,
targetAndroidNdkApi: targetAndroidNdkApi,
targetIOSSdk: targetIOSSdk,
targetIOSVersion: targetIOSVersion,
targetMacOSVersion: targetMacOSVersion,
) as BuildConfigImpl; -> final buildConfig =
BuildConfig.build(
outputDirectory: outputDirectory,
packageName: await _packageName(),
packageRoot: Directory.current.uri,
buildMode: buildMode ?? BuildMode.release,
targetArchitecture: targetArchitecture ?? Architecture.current,
targetOS: targetOS ?? OS.current,
linkModePreference:
linkModePreference ?? LinkModePreference.dynamic,
linkingEnabled: linkingEnabled ?? true,
cCompiler: cCompiler,
supportedAssetTypes: supportedAssetTypes,
targetAndroidNdkApi: targetAndroidNdkApi,
targetIOSSdk: targetIOSSdk,
targetIOSVersion: targetIOSVersion,
targetMacOSVersion: targetMacOSVersion,
)
as BuildConfigImpl; Is this similar as to the Source: https://github.com/dart-lang/native/blob/main/pkgs/native_assets_cli/lib/src/api/test.dart |
dcharkes
changed the title
[tall style] Multi-line variable initializer with await indentation
[tall style] Multi-line variable initializer with Aug 17, 2024
await
or as
indentation
Duplicate: #1531 |
dcharkes
changed the title
[tall style] Multi-line variable initializer with
Treat Aug 22, 2024
await
or as
indentationas
expressions as block-formattable if the subexpression is
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update:
await
s are fixed,as
is not yet.->
I'm not sure why the extra indentation is needed here. I expect this to be indented like it would be without an
await
Is the await significant here? Or is it simply that the formatter deems the expression getting too big?
Source: https://github.com/dart-lang/native/blob/main/pkgs/native_assets_builder/test/build_runner/build_runner_cycle_test.dart
The text was updated successfully, but these errors were encountered: