Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Nov 20, 2023
1 parent 7315909 commit 2da7748
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions pkgs/intl_translation/bin/make_examples_const.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// BSD-style license that can be found in the LICENSE file.

/// Converts the examples parameter for Intl messages to be const.
library;

import 'dart:io';

import 'package:args/args.dart';
Expand Down
2 changes: 2 additions & 0 deletions pkgs/intl_translation/bin/rewrite_intl_messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
/// It takes as input a single source Dart file and rewrites any
/// Intl.message or related calls to automatically include the name and args
/// parameters and writes the result to stdout.
library;

import 'dart:io';

import 'package:args/args.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'message.dart';
/// Abstract class for messages with internal structure, representing the
/// main Intl.message call, plurals, and genders.
abstract class ComplexMessage extends Message {
ComplexMessage(parent) : super(parent);
ComplexMessage(super.parent);

/// When we create these from strings or from AST nodes, we want to look up
/// and set their attributes by string names, so we override the indexing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import 'message.dart';
class CompositeMessage extends Message {
List<Message> pieces;

CompositeMessage.withParent(parent)
: pieces = const [],
super(parent);
CompositeMessage.withParent(super.parent) : pieces = const [];
CompositeMessage(this.pieces, [super.parent]) {
for (var x in pieces) {
x.parent = this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/// extract_message.dart for the files sample_with_messages.dart and
/// part_of_sample_with_messages.dart and writing out hard-coded translations
/// for German and French locales.
library;

import 'dart:convert';
import 'dart:io';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// 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.part of sample;

part of sample;
part of 'sample_with_messages.dart';

class Person {
String name;
Expand Down

0 comments on commit 2da7748

Please sign in to comment.