Skip to content

Commit

Permalink
Run dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Nov 20, 2023
1 parent eec8f47 commit be6576f
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 13 deletions.
2 changes: 2 additions & 0 deletions pkgs/intl_translation/lib/src/message_rewriter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/// Code to rewrite Intl.message calls adding the name and args parameters
/// automatically, primarily used by the transformer.
library;

import 'package:analyzer/dart/analysis/utilities.dart';

import '../extract_messages.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Gender extends SubMessage {
/// clauses. Each clause is expected to be a list whose first element is a
/// variable name and whose second element is either a [String] or
/// a list of strings and [Message] or [VariableSubstitution].
Gender.from(String mainArgument, List clauses, [Message? parent])
: super.from(mainArgument, clauses, parent);
Gender.from(super.mainArgument, super.clauses, [Message? super.parent])
: super.from();

Message? female;
Message? male;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import 'submessage.dart';

class Plural extends SubMessage {
Plural() : super.from('', [], null);
Plural.from(String mainArgument, List clauses, [Message? parent])
: super.from(mainArgument, clauses, parent);
Plural.from(super.mainArgument, super.clauses, [Message? super.parent])
: super.from();

Message? zero;
Message? one;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class Select extends SubMessage {
/// clauses. Each clause is expected to be a list whose first element is a
/// variable name and whose second element is either a String or
/// a list of strings and [Message]s or [VariableSubstitution]s.
Select.from(String mainArgument, List clauses, [Message? parent])
: super.from(mainArgument, clauses, parent);
Select.from(super.mainArgument, super.clauses, [Message? super.parent])
: super.from();

Map<String, Message> cases = <String, Message>{};

Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl_translation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >-
repository: https://github.com/dart-lang/i18n/tree/main/pkgs/intl_translation

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: '>=2.19.0 <4.0.0'

dependencies:
analyzer: ^6.3.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

/// An application using the code map messages.
library;

import 'package:intl/intl.dart';
import 'package:test/test.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(seconds: 180))

/// Test for parsing the examples argument from an Intl.message call. Very
/// minimal so far.
library;



@Timeout(Duration(seconds: 180))


import 'dart:io';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(seconds: 180))

/// A test for message extraction and code generation using generated
/// JSON rather than functions
library;



@Timeout(Duration(seconds: 180))


import 'package:test/test.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

@Timeout(Duration(seconds: 180))

/// A test for message extraction and code generation using generated
/// JSON rather than functions
library;



@Timeout(Duration(seconds: 180))


import 'package:test/test.dart';

Expand Down
2 changes: 2 additions & 0 deletions pkgs/intl_translation/test/two_components/component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/// A component which should have its own separate messages, with their own
/// translations.
library;

import 'package:intl/intl.dart';

import 'component_messages_all.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/// This is not actually related to the two components testing, but it's
/// convenient to put it here because there's already a hard-coded
/// message here.
library;

import 'package:intl/intl.dart';
import 'package:test/test.dart';

Expand Down
2 changes: 2 additions & 0 deletions pkgs/intl_translation/test/two_components/main_app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

/// An application using the component
library;

import 'package:intl/intl.dart';
import 'package:test/test.dart';

Expand Down

0 comments on commit be6576f

Please sign in to comment.