Skip to content

dart format support for records #50798

Closed as not planned
Closed as not planned
@dcharkes

Description

@dcharkes
$ dart analyze --enable-experiment=records record.dart
Analyzing record.dart...               0.4s
No issues found!

$ dart format --enable-experiment=records record.dart
Could not find an option named "enable-experiment".

$ dart --enable-experiment=records format record.dart
# and
$ dart format record.dart
# choke on record types.

Snippet that causes issues:

final returnStruct3BytesHomogeneousUint8VariadicLeaf =
    ffiTestFunctions.lookupFunction<
        Struct3BytesHomogeneousUint8 Function(Uint8, VarArgs<(Uint8, Uint8)>),
        Struct3BytesHomogeneousUint8 Function(int, int,
              int)>("ReturnStruct3BytesHomogeneousUint8Variadic", isLeaf: true);

@munificent

Metadata

Metadata

Assignees

Labels

area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.closed-duplicateClosed in favor of an existing reportdart-cli-formatIssues related to the 'dart format' tool

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions