Fix typos

Fix #49864

TEST=ci

Change-Id: I9a7e06d604cd0b4f56f2ac229ab3fc9f01cb9d76
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/256824
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Liam Appelbe <liama@google.com>
Reviewed-by: Mayank Patke <fishythefish@google.com>
This commit is contained in:
Ahmed Ashour 2022-09-16 19:35:00 +00:00 committed by Commit Bot
parent 68ec22b29b
commit 5fe480b788
48 changed files with 228 additions and 227 deletions

View file

@ -549,7 +549,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
: _tree = tree,
_modificationCount = tree._modificationCount,
_splayCount = tree._splayCount {
_findLeftMostDescendent(tree._root);
_findLeftMostDescendant(tree._root);
}
_SoundSplayTreeIterator.startAt(_SoundSplayTree<K, _SoundSplayTreeNode<K>> tree, K startKey)
@ -560,7 +560,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
_splayCount = tree._splayCount;
if (compare < 0) {
// Don't include the root, start at the next element after the root.
_findLeftMostDescendent(tree._root.right);
_findLeftMostDescendant(tree._root.right);
} else {
_workList.add(tree._root);
}
@ -571,7 +571,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
return _getValue(_currentNode);
}
void _findLeftMostDescendent(_SoundSplayTreeNode<K> node) {
void _findLeftMostDescendant(_SoundSplayTreeNode<K> node) {
while (node != null) {
_workList.add(node);
node = node.left;
@ -588,10 +588,10 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
assert(_workList.isNotEmpty);
_workList.clear();
if (currentNode == null) {
_findLeftMostDescendent(_tree._root);
_findLeftMostDescendant(_tree._root);
} else {
_tree._splay(currentNode.key);
_findLeftMostDescendent(_tree._root.right);
_findLeftMostDescendant(_tree._root.right);
assert(_workList.isNotEmpty);
}
}
@ -613,7 +613,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
_rebuildWorkList(_currentNode);
}
_currentNode = _workList.removeLast();
_findLeftMostDescendent(_currentNode.right);
_findLeftMostDescendant(_currentNode.right);
return true;
}

View file

@ -551,7 +551,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
: _tree = tree,
_modificationCount = tree._modificationCount,
_splayCount = tree._splayCount {
_findLeftMostDescendent(tree._root);
_findLeftMostDescendant(tree._root);
}
_SoundSplayTreeIterator.startAt(_SoundSplayTree<K, _SoundSplayTreeNode<K>> tree, K startKey)
@ -562,7 +562,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
_splayCount = tree._splayCount;
if (compare < 0) {
// Don't include the root, start at the next element after the root.
_findLeftMostDescendent(tree._root.right);
_findLeftMostDescendant(tree._root.right);
} else {
_workList.add(tree._root);
}
@ -573,7 +573,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
return _getValue(_currentNode);
}
void _findLeftMostDescendent(_SoundSplayTreeNode<K> node) {
void _findLeftMostDescendant(_SoundSplayTreeNode<K> node) {
while (node != null) {
_workList.add(node);
node = node.left;
@ -590,10 +590,10 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
assert(_workList.isNotEmpty);
_workList.clear();
if (currentNode == null) {
_findLeftMostDescendent(_tree._root);
_findLeftMostDescendant(_tree._root);
} else {
_tree._splay(currentNode.key);
_findLeftMostDescendent(_tree._root.right);
_findLeftMostDescendant(_tree._root.right);
assert(_workList.isNotEmpty);
}
}
@ -615,7 +615,7 @@ abstract class _SoundSplayTreeIterator<inout K, inout T> implements Iterator<T>
_rebuildWorkList(_currentNode);
}
_currentNode = _workList.removeLast();
_findLeftMostDescendent(_currentNode.right);
_findLeftMostDescendant(_currentNode.right);
return true;
}

View file

@ -109,7 +109,8 @@ void checkTypeAnnotation(
void checkParameterDeclaration(
ParameterData expected, ParameterDeclaration declaration, String context) {
expect(expected.name, declaration.identifier.name, '$context.identifer.name');
expect(
expected.name, declaration.identifier.name, '$context.identifier.name');
expect(expected.isNamed, declaration.isNamed, '$context.isNamed');
expect(expected.isRequired, declaration.isRequired, '$context.isRequired');
checkTypeAnnotation(expected.type, declaration.type, '$context.type');

View file

@ -146,7 +146,7 @@ extension DebugCodeString on Code {
}
}
/// Checks if two [Code] objectss are of the same type and all their fields are
/// Checks if two [Code] objects are of the same type and all their fields are
/// equal.
Matcher deepEqualsCode(Code other) => _DeepEqualityMatcher(other);

View file

@ -448,7 +448,7 @@ class JsInteropChecks extends RecursiveVisitor {
return _checkExtensionMember(member, _nativeClasses.containsValue);
}
/// Returns whether given extension [member] is on a class that passses the
/// Returns whether given extension [member] is on a class that passes the
/// given [validateExtensionClass].
bool _checkExtensionMember(Member member, Function validateExtensionClass) {
assert(member.isExtensionMember);

View file

@ -1754,7 +1754,7 @@ a:focus, a:hover {
<p>
A list of objects each containing a path and the additional libraries from which
the client is interested in receiving completion suggestions.
If one configured path is beneath another, the descendent
If one configured path is beneath another, the descendant
will override the ancestors' configured libraries of interest.
</p>
</dd></dl></dd><dt class="request"><a name="request_completion.getSuggestionDetails">completion.getSuggestionDetails</a></dt><dd><div class="box"><pre>request: {

View file

@ -5180,7 +5180,7 @@ class CompletionMode implements Enum {
class CompletionRegisterLibraryPathsParams implements RequestParams {
/// A list of objects each containing a path and the additional libraries
/// from which the client is interested in receiving completion suggestions.
/// If one configured path is beneath another, the descendent will override
/// If one configured path is beneath another, the descendant will override
/// the ancestors' configured libraries of interest.
List<LibraryPathSet> paths;

View file

@ -1086,7 +1086,7 @@ abstract class IntegrationTestMixin {
///
/// A list of objects each containing a path and the additional libraries
/// from which the client is interested in receiving completion
/// suggestions. If one configured path is beneath another, the descendent
/// suggestions. If one configured path is beneath another, the descendant
/// will override the ancestors' configured libraries of interest.
@deprecated
Future sendCompletionRegisterLibraryPaths(List<LibraryPathSet> paths) async {

View file

@ -273,7 +273,7 @@ void f() {
newFile(dotFolderFilePath, 'String a = 1;');
List<Diagnostic>? diagnostics;
// Record if diagnostics are recieved, but since we don't expect them
// Record if diagnostics are received, but since we don't expect them
// don't await them.
unawaited(
waitForDiagnostics(dotFolderFileUri).then((d) => diagnostics = d));

View file

@ -464,7 +464,7 @@ public interface AnalysisServer {
*
* @param paths A list of objects each containing a path and the additional libraries from which
* the client is interested in receiving completion suggestions. If one configured path is
* beneath another, the descendent will override the ancestors' configured libraries of
* beneath another, the descendant will override the ancestors' configured libraries of
* interest.
*
* @deprecated

View file

@ -1640,7 +1640,7 @@
<p>
A list of objects each containing a path and the additional libraries from which
the client is interested in receiving completion suggestions.
If one configured path is beneath another, the descendent
If one configured path is beneath another, the descendant
will override the ancestors' configured libraries of interest.
</p>
</field>

View file

@ -5180,7 +5180,7 @@ class CompletionMode implements Enum {
class CompletionRegisterLibraryPathsParams implements RequestParams {
/// A list of objects each containing a path and the additional libraries
/// from which the client is interested in receiving completion suggestions.
/// If one configured path is beneath another, the descendent will override
/// If one configured path is beneath another, the descendant will override
/// the ancestors' configured libraries of interest.
List<LibraryPathSet> paths;

View file

@ -1777,7 +1777,7 @@ void main() {new A().f^}''');
}
Future<void> test_FieldFormalParameter_in_non_constructor() async {
// SimpleIdentifer FieldFormalParameter FormalParameterList
// SimpleIdentifier FieldFormalParameter FormalParameterList
addTestSource('class A {B(this.^foo) {}}');
await computeSuggestions();
expect(replacementOffset, completionOffset);

View file

@ -25,6 +25,15 @@ class CodegenVisitor extends DartCodegenVisitor with CodeGenerator {
codeGeneratorSettings.languageName = 'dart';
}
/// Generate the given [constant].
void generateConstant(_Constant constant) {
write('const String ');
write(constant.name);
write(' = ');
write(constant.value);
writeln(';');
}
/// Generate all of the constants associated with the [api].
void generateConstants() {
var visitor = _ConstantVisitor(api);
@ -32,19 +41,10 @@ class CodegenVisitor extends DartCodegenVisitor with CodeGenerator {
var constants = visitor.constants;
constants.sort((first, second) => first.name.compareTo(second.name));
for (var constant in constants) {
generateContant(constant);
generateConstant(constant);
}
}
/// Generate the given [constant].
void generateContant(_Constant constant) {
write('const String ');
write(constant.name);
write(' = ');
write(constant.value);
writeln(';');
}
@override
void visitApi() {
outputHeader(year: '2017');

View file

@ -59,7 +59,7 @@ class VerifyTests {
/// May be overridden in a derived class to indicate whether it is ok for
/// a `test_all.dart` file to be missing from [folder].
///
/// Default beahvior is not to allow `test_all.dart` to be missing from any
/// Default behavior is not to allow `test_all.dart` to be missing from any
/// folder.
bool isOkForTestAllToBeMissing(Folder folder) => false;

View file

@ -1,6 +1,6 @@
[comment]: WIP - code is being refactored...
##General code organization of this pacakge
##General code organization of this package
lib/src/
|- ...

View file

@ -20,10 +20,10 @@
/// generates _load lists_: a list of JavaScript files that need to be
/// downloaded for every deferred import in the program.
///
/// Each generated JavaScript file has an initialzation within it. The files can
/// be concatenated together in a bundle without affecting the initialization
/// logic. This is used by customers to reduce the download latency when they
/// know that multiple files will be loaded at once.
/// Each generated JavaScript file has an initialization within it. The files
/// can be concatenated together in a bundle without affecting the
/// initialization logic. This is used by customers to reduce the download
/// latency when they know that multiple files will be loaded at once.
///
/// *The code splitting algorithm*
///
@ -262,7 +262,7 @@
/// into a set containing `{A, B}`.
///
// TODO(joshualitt): update doc above when main is represented by a set
// containing an implict import corresponding to `main`.
// containing an implicit import corresponding to `main`.
// TODO(sigmund): investigate different heuristics for how to select the next
// work item (e.g. we might converge faster if we pick first the update that
// contains a bigger delta.)

View file

@ -120,7 +120,7 @@ class Builder {
}
// 3) Build a graph of [Constraint]s by processing user constraints and
// intializing each [Constraint]'s predecessor / successor members.
// initializing each [Constraint]'s predecessor / successor members.
void createEdge(NamedNode successorNode, NamedNode predecessorNode) {
var successor = nodeToConstraintMap[successorNode]!;
var predecessor = nodeToConstraintMap[predecessorNode]!;

View file

@ -1187,9 +1187,9 @@ abstract class DartTypeSubstitutionVisitor<A>
// C extends D,
// D extends Map<B, F>>(){}
//
// A and B have a cycle but are not changed by the subsitution of F->G. C is
// indirectly changed by the substitution of F. When D is replaced by `D2
// extends Map<B,G>`, C must be replaced by `C2 extends D2`.
// A and B have a cycle but are not changed by the substitution of F->G.
// C is indirectly changed by the substitution of F. When D is replaced by
// `D2 extends Map<B,G>`, C must be replaced by `C2 extends D2`.
List<FunctionTypeVariable?> undecided = List.of(variables, growable: false);
List<FunctionTypeVariable>? newVariables;

View file

@ -83,7 +83,7 @@ class KernelScopeInfo {
String toString() {
StringBuffer sb = StringBuffer();
sb.write('KernelScopeInfo(this=$hasThisLocal,');
sb.write('freeVriables=$freeVariables,');
sb.write('freeVariables=$freeVariables,');
sb.write('localsUsedInTryOrSync={${localsUsedInTryOrSync.join(', ')}}');
String comma = '';
sb.write('freeVariablesForRti={');

View file

@ -401,7 +401,7 @@ class AnnotationsDataImpl implements AnnotationsData {
/// Pragma annotation environments for annotatable places in the Kernel
/// AST. These annotations generated on demand and not precomputed or
/// persisted. This map is a cache of the pragma annotation environment and
/// its enclosing enviroments.
/// its enclosing environments.
// TODO(49475): Periodically clear this map to release references to tree
// nodes.
final Map<ir.Annotatable, DirectivesContext> _nodeToContextMap = {};

View file

@ -263,7 +263,7 @@ class ConstantEmitter extends ModularConstantEmitter {
String className = classElement.name;
if (!identical(classElement, _commonElements.constSetLiteralClass)) {
failedAt(
classElement, "Compiler encoutered unexpected set class $className");
classElement, "Compiler encountered unexpected set class $className");
}
List<jsAst.Expression> arguments = [

View file

@ -58,7 +58,7 @@ class _FieldNamingRegistry {
// number of fields preceding the current field in its classes inheritance
// chain.
//
// The implementation assumes that names are requedsted in order, that is the
// The implementation assumes that names are requested in order, that is the
// name at position i+1 is requested after the name at position i was
// requested.
jsAst.Name getName(int index) {

View file

@ -71,7 +71,7 @@ class CodegenImpactTransformer {
}
if (typeWithoutNullability is InterfaceType &&
_nativeData.isNativeClass(typeWithoutNullability.element)) {
// We will neeed to add the "$is" and "$as" properties on the
// We will need to add the "$is" and "$as" properties on the
// JavaScript object prototype, so we make sure
// [:defineProperty:] is compiled.
_impacts.nativeTypeCheck.registerImpact(transformed, _elementEnvironment);

View file

@ -270,7 +270,7 @@ function tearOffParameters(
#tpIsStatic: isStatic,
#tpIsIntercepted: isIntercepted,
#tpRequiredParameterCount: requiredParameterCount,
#tpOptionalParamaterDefaultValues: optionalParameterDefaultValues,
#tpOptionalParameterDefaultValues: optionalParameterDefaultValues,
#tpCallNames: callNames,
#tpFunctionsOrNames: funsOrNames,
#tpFunctionType: funType,
@ -739,7 +739,7 @@ class FragmentEmitter {
js.string(TearOffParametersPropertyNames.isIntercepted),
'tpRequiredParameterCount':
js.string(TearOffParametersPropertyNames.requiredParameterCount),
'tpOptionalParamaterDefaultValues': js.string(
'tpOptionalParameterDefaultValues': js.string(
TearOffParametersPropertyNames.optionalParameterDefaultValues),
'tpCallNames': js.string(TearOffParametersPropertyNames.callNames),
'tpFunctionsOrNames':
@ -1172,7 +1172,7 @@ class FragmentEmitter {
js.Statement emitInheritance(Fragment fragment) {
List<js.Statement> inheritCalls = [];
List<js.Statement> mixinCalls = [];
// local caches of functions to allow minifaction of function name in call.
// local caches of functions to allow minification of function name in call.
LocalAliases locals = LocalAliases();
Set<Class> classesInFragment = Set();

View file

@ -101,7 +101,7 @@ import '../model.dart';
/// interleaving.
///
/// Instead, when this happens we emit {a} and {c} into separate
/// [CodeFragments], with separate top level initalization functions that are
/// [CodeFragments], with separate top level initialization functions that are
/// only called when the necessary dependencies for initialization are
/// present. These [CodeFragments] end up in a single [FinalizedFragment].
/// While this approach doesn't have the performance benefits of

View file

@ -428,7 +428,7 @@ main(List<String> args) {
Expect.equals(
expectedAnonymousJsInteropClass,
nativeData.isAnonymousJsInteropClass(classEntity),
"Unexpected js anonymousclass result from native data for "
"Unexpected js anonymous class result from native data for "
"$cls");
for (ir.Member member in cls.members) {

View file

@ -162,7 +162,7 @@ loop5HoistedElseJoin(int x) {
}
// Unlike loop5, this is not 'hoisted'. GVN is not required to match the
// condition with its use, so the subsitution happens in a simplify pass before
// condition with its use, so the substitution happens in a simplify pass before
// GVN/LICM can hoist the negation.
/*member: loop6ElseJoin:ConditionValue=[count=1&value=false&where=else-join]*/
loop6ElseJoin(bool x) {

View file

@ -5,7 +5,7 @@
// @dart = 2.7
// TODO(sigmund): should this be handled as "other"? (the identifier appears
// direclty in the line producing the error).
// directly in the line producing the error).
//
// Error pattern: \.([^\.]*) is not a function
// Kind of minified name: instance

View file

@ -2,98 +2,98 @@ library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/initialzation_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:22:16: Error: 'x' is a final instance variable that was initialized at the declaration.
// pkg/front_end/testcases/general/initialization_errors.dart:22:16: Error: 'x' is a final instance variable that was initialized at the declaration.
// : this.x = 41,
// ^
// pkg/front_end/testcases/general/initialzation_errors.dart:20:13: Context: 'x' was initialized here.
// pkg/front_end/testcases/general/initialization_errors.dart:20:13: Context: 'x' was initialized here.
// final int x = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 41,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
// this.y = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
// this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
// : super(),
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:55:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:55:16: Error: Can't have initializers after 'super'.
// this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:56:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:56:16: Error: Can't have initializers after 'super'.
// this.y = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
// : assert(true),
// ^^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
// assert(true);
// ^^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
// : super(),
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
// pkg/front_end/testcases/general/initialization_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
// this.named();
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:101:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:101:16: Error: Can't have initializers after 'super'.
// this.x = 42 {}
// ^
//
@ -103,21 +103,21 @@ import "dart:core" as core;
class A extends core::Object {
field core::int x;
constructor •() → self::A
: self::A::x = 41, final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
: self::A::x = 41, final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
class B extends core::Object {
final field core::int x;
constructor •() → self::B
: self::B::x = 41, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
: self::B::x = 41, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
class C extends core::Object {
final field core::int x = 2;
constructor •() → self::C
: final dynamic #t3 = throw new core::_DuplicatedFieldInitializerError::•("x"), final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
: final dynamic #t3 = throw new core::_DuplicatedFieldInitializerError::•("x"), final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
@ -125,9 +125,9 @@ class D extends core::Object {
final field core::int x;
final field core::int y;
constructor •() → self::D
: final dynamic #t5 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t5 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
: this.x = 41,
^", final dynamic #t6 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t6 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
this.y = 42 {}
^", this self::D::named() {}
constructor named() → self::D
@ -137,50 +137,50 @@ class E extends core::Object {
final field core::int x;
final field core::int y;
constructor •() → self::E
: final dynamic #t7 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t7 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
this.x = 1,
^", final dynamic #t8 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t8 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
this.y = 2 {}
^", this self::E::named() {}
constructor named() → self::E
: self::E::x = 41, self::E::y = 42, super core::Object::•() {}
constructor named2() → self::E
: final dynamic #t9 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t9 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
: this.x = 1,
^", final dynamic #t10 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t10 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
this.y = 2;
^", this self::E::named()
;
constructor named3() → self::E
: final dynamic #t11 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t11 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
: super(),
^^^^^", final dynamic #t12 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:55:16: Error: Can't have initializers after 'super'.
^^^^^", final dynamic #t12 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:55:16: Error: Can't have initializers after 'super'.
this.x = 1,
^", final dynamic #t13 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:56:16: Error: Can't have initializers after 'super'.
^", final dynamic #t13 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:56:16: Error: Can't have initializers after 'super'.
this.y = 2;
^", super core::Object::•()
;
constructor named4() → self::E
: final dynamic #t14 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t14 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
: this.x = 1,
^", final dynamic #t15 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t15 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
this.y = 2,
^", this self::E::named()
;
constructor named5() → self::E
: final dynamic #t16 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
: final dynamic #t16 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
: assert(true),
^^^^^^", this self::E::named()
;
constructor named6() → self::E
: final dynamic #t17 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
: final dynamic #t17 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
assert(true);
^^^^^^", this self::E::named()
;
}
class F extends core::Object {
constructor •() → self::F
: final dynamic #t18 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t18 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
super() {}
^^^^^", this self::F::named() {}
constructor named() → self::F
@ -188,9 +188,9 @@ class F extends core::Object {
}
class G extends core::Object {
constructor •() → self::G
: final dynamic #t19 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t19 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
: super(),
^^^^^", final dynamic #t20 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
^^^^^", final dynamic #t20 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
super() {}
^^^^^", super core::Object::•() {}
constructor named() → self::G
@ -198,7 +198,7 @@ class G extends core::Object {
}
class H extends core::Object {
constructor •() → self::H
: final dynamic #t21 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
: final dynamic #t21 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
this.named();
^", this self::H::named()
;
@ -207,14 +207,14 @@ class H extends core::Object {
}
class I extends core::Object {
constructor •() → self::I
: final dynamic #t22 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
: final dynamic #t22 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
super() {}
^^^^^", super core::Object::•() {}
}
class J extends core::Object {
field core::int x;
constructor •() → self::J
: final dynamic #t23 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:101:16: Error: Can't have initializers after 'super'.
: final dynamic #t23 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:101:16: Error: Can't have initializers after 'super'.
this.x = 42 {}
^", super core::Object::•() {}
}

View file

@ -2,98 +2,98 @@ library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/initialzation_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:22:16: Error: 'x' is a final instance variable that was initialized at the declaration.
// pkg/front_end/testcases/general/initialization_errors.dart:22:16: Error: 'x' is a final instance variable that was initialized at the declaration.
// : this.x = 41,
// ^
// pkg/front_end/testcases/general/initialzation_errors.dart:20:13: Context: 'x' was initialized here.
// pkg/front_end/testcases/general/initialization_errors.dart:20:13: Context: 'x' was initialized here.
// final int x = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 41,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
// this.y = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
// this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
// : super(),
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:55:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:55:16: Error: Can't have initializers after 'super'.
// this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:56:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:56:16: Error: Can't have initializers after 'super'.
// this.y = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
// : assert(true),
// ^^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
// assert(true);
// ^^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
// : super(),
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
// pkg/front_end/testcases/general/initialization_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
// this.named();
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:101:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:101:16: Error: Can't have initializers after 'super'.
// this.x = 42 {}
// ^
//
@ -103,21 +103,21 @@ import "dart:core" as core;
class A extends core::Object {
field core::int x;
constructor •() → self::A
: self::A::x = 41, final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
: self::A::x = 41, final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
class B extends core::Object {
final field core::int x;
constructor •() → self::B
: self::B::x = 41, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
: self::B::x = 41, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
class C extends core::Object {
final field core::int x = 2;
constructor •() → self::C
: final dynamic #t3 = throw new core::_DuplicatedFieldInitializerError::•("x"), final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
: final dynamic #t3 = throw new core::_DuplicatedFieldInitializerError::•("x"), final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
@ -125,9 +125,9 @@ class D extends core::Object {
final field core::int x;
final field core::int y;
constructor •() → self::D
: final dynamic #t5 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t5 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
: this.x = 41,
^", final dynamic #t6 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t6 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
this.y = 42 {}
^", this self::D::named() {}
constructor named() → self::D
@ -137,50 +137,50 @@ class E extends core::Object {
final field core::int x;
final field core::int y;
constructor •() → self::E
: final dynamic #t7 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t7 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
this.x = 1,
^", final dynamic #t8 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t8 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
this.y = 2 {}
^", this self::E::named() {}
constructor named() → self::E
: self::E::x = 41, self::E::y = 42, super core::Object::•() {}
constructor named2() → self::E
: final dynamic #t9 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t9 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
: this.x = 1,
^", final dynamic #t10 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t10 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
this.y = 2;
^", this self::E::named()
;
constructor named3() → self::E
: final dynamic #t11 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t11 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
: super(),
^^^^^", final dynamic #t12 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:55:16: Error: Can't have initializers after 'super'.
^^^^^", final dynamic #t12 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:55:16: Error: Can't have initializers after 'super'.
this.x = 1,
^", final dynamic #t13 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:56:16: Error: Can't have initializers after 'super'.
^", final dynamic #t13 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:56:16: Error: Can't have initializers after 'super'.
this.y = 2;
^", super core::Object::•()
;
constructor named4() → self::E
: final dynamic #t14 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t14 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
: this.x = 1,
^", final dynamic #t15 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t15 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
this.y = 2,
^", this self::E::named()
;
constructor named5() → self::E
: final dynamic #t16 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
: final dynamic #t16 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
: assert(true),
^^^^^^", this self::E::named()
;
constructor named6() → self::E
: final dynamic #t17 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
: final dynamic #t17 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
assert(true);
^^^^^^", this self::E::named()
;
}
class F extends core::Object {
constructor •() → self::F
: final dynamic #t18 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t18 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
super() {}
^^^^^", this self::F::named() {}
constructor named() → self::F
@ -188,9 +188,9 @@ class F extends core::Object {
}
class G extends core::Object {
constructor •() → self::G
: final dynamic #t19 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t19 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
: super(),
^^^^^", final dynamic #t20 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
^^^^^", final dynamic #t20 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
super() {}
^^^^^", super core::Object::•() {}
constructor named() → self::G
@ -198,7 +198,7 @@ class G extends core::Object {
}
class H extends core::Object {
constructor •() → self::H
: final dynamic #t21 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
: final dynamic #t21 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
this.named();
^", this self::H::named()
;
@ -207,14 +207,14 @@ class H extends core::Object {
}
class I extends core::Object {
constructor •() → self::I
: final dynamic #t22 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
: final dynamic #t22 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
super() {}
^^^^^", super core::Object::•() {}
}
class J extends core::Object {
field core::int x;
constructor •() → self::J
: final dynamic #t23 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:101:16: Error: Can't have initializers after 'super'.
: final dynamic #t23 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:101:16: Error: Can't have initializers after 'super'.
this.x = 42 {}
^", super core::Object::•() {}
}

View file

@ -2,98 +2,98 @@ library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/general/initialzation_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:22:16: Error: 'x' is a final instance variable that was initialized at the declaration.
// pkg/front_end/testcases/general/initialization_errors.dart:22:16: Error: 'x' is a final instance variable that was initialized at the declaration.
// : this.x = 41,
// ^
// pkg/front_end/testcases/general/initialzation_errors.dart:20:13: Context: 'x' was initialized here.
// pkg/front_end/testcases/general/initialization_errors.dart:20:13: Context: 'x' was initialized here.
// final int x = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
// pkg/front_end/testcases/general/initialization_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
// this.x = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 41,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
// this.y = 42 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
// this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2 {}
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
// : super(),
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:55:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:55:16: Error: Can't have initializers after 'super'.
// this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:56:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:56:16: Error: Can't have initializers after 'super'.
// this.y = 2;
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
// : this.x = 1,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
// this.y = 2,
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
// : assert(true),
// ^^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
// pkg/front_end/testcases/general/initialization_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
// assert(true);
// ^^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
// : super(),
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
// pkg/front_end/testcases/general/initialization_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
// this.named();
// ^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
// pkg/front_end/testcases/general/initialization_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
// super() {}
// ^^^^^
//
// pkg/front_end/testcases/general/initialzation_errors.dart:101:16: Error: Can't have initializers after 'super'.
// pkg/front_end/testcases/general/initialization_errors.dart:101:16: Error: Can't have initializers after 'super'.
// this.x = 42 {}
// ^
//
@ -103,21 +103,21 @@ import "dart:core" as core;
class A extends core::Object {
field core::int x;
constructor •() → self::A
: self::A::x = 41, final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
: self::A::x = 41, final dynamic #t1 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:9:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
class B extends core::Object {
final field core::int x;
constructor •() → self::B
: self::B::x = 41, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
: self::B::x = 41, final dynamic #t2 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:16:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
class C extends core::Object {
final field core::int x = 2;
constructor •() → self::C
: final dynamic #t3 = throw new core::_DuplicatedFieldInitializerError::•("x"), final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
: final dynamic #t3 = throw new core::_DuplicatedFieldInitializerError::•("x"), final dynamic #t4 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:23:16: Error: 'x' was already initialized by this constructor.
this.x = 42 {}
^", super core::Object::•() {}
}
@ -125,9 +125,9 @@ class D extends core::Object {
final field core::int x;
final field core::int y;
constructor •() → self::D
: final dynamic #t5 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t5 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:30:16: Error: A redirecting constructor can't have other initializers.
: this.x = 41,
^", final dynamic #t6 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t6 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:32:16: Error: A redirecting constructor can't have other initializers.
this.y = 42 {}
^", this self::D::named() {}
constructor named() → self::D
@ -137,50 +137,50 @@ class E extends core::Object {
final field core::int x;
final field core::int y;
constructor •() → self::E
: final dynamic #t7 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t7 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:43:16: Error: A redirecting constructor can't have other initializers.
this.x = 1,
^", final dynamic #t8 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t8 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:44:16: Error: A redirecting constructor can't have other initializers.
this.y = 2 {}
^", this self::E::named() {}
constructor named() → self::E
: self::E::x = 41, self::E::y = 42, super core::Object::•() {}
constructor named2() → self::E
: final dynamic #t9 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t9 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:49:16: Error: A redirecting constructor can't have other initializers.
: this.x = 1,
^", final dynamic #t10 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t10 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:51:16: Error: A redirecting constructor can't have other initializers.
this.y = 2;
^", this self::E::named()
;
constructor named3() → self::E
: final dynamic #t11 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t11 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:53:9: Error: A redirecting constructor can't have a 'super' initializer.
: super(),
^^^^^", final dynamic #t12 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:55:16: Error: Can't have initializers after 'super'.
^^^^^", final dynamic #t12 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:55:16: Error: Can't have initializers after 'super'.
this.x = 1,
^", final dynamic #t13 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:56:16: Error: Can't have initializers after 'super'.
^", final dynamic #t13 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:56:16: Error: Can't have initializers after 'super'.
this.y = 2;
^", super core::Object::•()
;
constructor named4() → self::E
: final dynamic #t14 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
: final dynamic #t14 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:58:16: Error: A redirecting constructor can't have other initializers.
: this.x = 1,
^", final dynamic #t15 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
^", final dynamic #t15 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:59:16: Error: A redirecting constructor can't have other initializers.
this.y = 2,
^", this self::E::named()
;
constructor named5() → self::E
: final dynamic #t16 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
: final dynamic #t16 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:62:9: Error: A redirecting constructor can't have other initializers.
: assert(true),
^^^^^^", this self::E::named()
;
constructor named6() → self::E
: final dynamic #t17 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
: final dynamic #t17 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:66:9: Error: A redirecting constructor can't have other initializers.
assert(true);
^^^^^^", this self::E::named()
;
}
class F extends core::Object {
constructor •() → self::F
: final dynamic #t18 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t18 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:72:9: Error: A redirecting constructor can't have a 'super' initializer.
super() {}
^^^^^", this self::F::named() {}
constructor named() → self::F
@ -188,9 +188,9 @@ class F extends core::Object {
}
class G extends core::Object {
constructor •() → self::G
: final dynamic #t19 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
: final dynamic #t19 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:78:9: Error: A redirecting constructor can't have a 'super' initializer.
: super(),
^^^^^", final dynamic #t20 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
^^^^^", final dynamic #t20 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:80:9: Error: Can't have more than one 'super' initializer.
super() {}
^^^^^", super core::Object::•() {}
constructor named() → self::G
@ -198,7 +198,7 @@ class G extends core::Object {
}
class H extends core::Object {
constructor •() → self::H
: final dynamic #t21 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
: final dynamic #t21 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:87:14: Error: A redirecting constructor can't have more than one redirection.
this.named();
^", this self::H::named()
;
@ -207,14 +207,14 @@ class H extends core::Object {
}
class I extends core::Object {
constructor •() → self::I
: final dynamic #t22 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
: final dynamic #t22 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:94:9: Error: Can't have more than one 'super' initializer.
super() {}
^^^^^", super core::Object::•() {}
}
class J extends core::Object {
field core::int x;
constructor •() → self::J
: final dynamic #t23 = invalid-expression "pkg/front_end/testcases/general/initialzation_errors.dart:101:16: Error: Can't have initializers after 'super'.
: final dynamic #t23 = invalid-expression "pkg/front_end/testcases/general/initialization_errors.dart:101:16: Error: Can't have initializers after 'super'.
this.x = 42 {}
^", super core::Object::•() {}
}

View file

@ -3857,7 +3857,7 @@ class C {
await _checkSingleFileChanges(content, expected);
}
Future<void> test_field_final_uninitalized_used() async {
Future<void> test_field_final_uninitialized_used() async {
var content = '''
class C {
final String s;
@ -4244,7 +4244,7 @@ class C {
await _checkSingleFileChanges(content, expected);
}
Future<void> test_field_uninitalized_used() async {
Future<void> test_field_uninitialized_used() async {
var content = '''
class C {
String s;
@ -4268,7 +4268,7 @@ g(String s) {}
await _checkSingleFileChanges(content, expected);
}
Future<void> test_field_uninitalized_used_hint() async {
Future<void> test_field_uninitialized_used_hint() async {
var content = '''
class C {
String /*?*/ s;
@ -6344,7 +6344,7 @@ void main() {
await _checkSingleFileChanges(content, expected);
}
Future<void> test_localVariable_uninitalized_assigned_non_nullable() async {
Future<void> test_localVariable_uninitialized_assigned_non_nullable() async {
var content = '''
f() {
String s;
@ -6366,7 +6366,7 @@ h(String s) {}
await _checkSingleFileChanges(content, expected);
}
Future<void> test_localVariable_uninitalized_used() async {
Future<void> test_localVariable_uninitialized_used() async {
var content = '''
f() {
String s;
@ -6386,7 +6386,7 @@ g(String s) {}
await _checkSingleFileChanges(content, expected);
}
Future<void> test_localVariable_uninitalized_usedInComparison() async {
Future<void> test_localVariable_uninitialized_usedInComparison() async {
var content = '''
f() {
String s;
@ -6403,7 +6403,7 @@ f() {
}
Future<void>
test_localVariable_uninitalized_usedInExpressionStatement() async {
test_localVariable_uninitialized_usedInExpressionStatement() async {
var content = '''
f() {
String s;
@ -6419,7 +6419,7 @@ f() {
await _checkSingleFileChanges(content, expected);
}
Future<void> test_localVariable_uninitalized_usedInForUpdaters() async {
Future<void> test_localVariable_uninitialized_usedInForUpdaters() async {
var content = '''
f() {
String s;
@ -6435,7 +6435,7 @@ f() {
await _checkSingleFileChanges(content, expected);
}
Future<void> test_localVariable_uninitalized_usedInForVariable() async {
Future<void> test_localVariable_uninitialized_usedInForVariable() async {
var content = '''
f() {
String s;
@ -9256,7 +9256,7 @@ void main() {
await _checkSingleFileChanges(content, expected);
}
Future<void> test_topLevelVariable_uninitalized_used() async {
Future<void> test_topLevelVariable_uninitialized_used() async {
var content = '''
String s;
f() {

View file

@ -1706,7 +1706,7 @@ void ScopeBuilder::AddExceptionVariable(
AbstractType::dynamic_type());
// If transformer did not lift the variable then there is no need
// to lift it into the context when we encouter a YieldStatement.
// to lift it into the context when we encounter a YieldStatement.
v->set_is_forced_stack();
current_function_scope_->AddVariable(v);
}

View file

@ -25534,7 +25534,7 @@ ExternalTypedDataPtr ExternalTypedData::New(
if (perform_eager_msan_initialization_check) {
// Once the TypedData is created, Dart might read this memory. Check for
// intialization at construction to make it easier to track the source.
// initialization at construction to make it easier to track the source.
MSAN_CHECK_INITIALIZED(data, len);
}

View file

@ -2249,7 +2249,7 @@ class _Universe {
/// binding(interface("Map", [num,dynamic]), [int, bool])
/// 0 3 4 1 2
///
/// Any environment can be reconstructed via a recipe. The above enviroment for
/// Any environment can be reconstructed via a recipe. The above environment for
/// method `cast` can be constructed as the ground term
/// `Map<num,dynamic><int,bool>`, or (somewhat pointlessly) reconstructed via
/// `0<1,2>` or `Map<3,4><1,2>`. The ability to construct an environment

View file

@ -189,7 +189,7 @@ void callbackParamInvariant2() {
callback(fp);
}
void callbackParamImplictDowncast1() {
void callbackParamImplicitDowncast1() {
final callback = ffiTestFunctions.lookupFunction<CallbackNaTyPointerParamOp,
CallbackNaTyPointerParamOpDart>(callbackParamOpName);
final fp = Pointer.fromFunction<Int64PointerParamOp>(int64PointerParamOp);
@ -224,7 +224,7 @@ void fromFunctionTests() {
for (int i = 0; i < 100; ++i) {
callbackParamInvariant1(); // Pointer<Int64> invariant
callbackParamInvariant2(); // Pointer<NativeType> invariant
callbackParamImplictDowncast1(); // static and dynamically supertyped
callbackParamImplicitDowncast1(); // static and dynamically supertyped
callbackParamSubtype1(); // static and dynamically subtyped
callbackReturnInvariant1(); // Pointer<Int64> invariant
callbackReturnInvariant2(); // Pointer<NativeType> invariant

View file

@ -57,10 +57,10 @@ Pointer<Int64> int64PointerReturnOp() {
return Pointer.fromAddress(0x13370000);
}
final implictDowncast1 = //# 3: compile-time error
final implicitDowncast1 = //# 3: compile-time error
Pointer.fromFunction<Int64PointerParamOp>(//# 3: continued
naTyPointerParamOp); //# 3: continued
final implictDowncast2 = //# 4: compile-time error
final implicitDowncast2 = //# 4: compile-time error
Pointer.fromFunction<NaTyPointerReturnOp>(//# 4: continued
int64PointerReturnOp); //# 4: continued

View file

@ -191,7 +191,7 @@ void callbackParamInvariant2() {
callback(fp);
}
void callbackParamImplictDowncast1() {
void callbackParamImplicitDowncast1() {
final callback = ffiTestFunctions.lookupFunction<CallbackNaTyPointerParamOp,
CallbackNaTyPointerParamOpDart>(callbackParamOpName);
final fp = Pointer.fromFunction<Int64PointerParamOp>(int64PointerParamOp);
@ -226,7 +226,7 @@ void fromFunctionTests() {
for (int i = 0; i < 100; ++i) {
callbackParamInvariant1(); // Pointer<Int64> invariant
callbackParamInvariant2(); // Pointer<NativeType> invariant
callbackParamImplictDowncast1(); // static and dynamically supertyped
callbackParamImplicitDowncast1(); // static and dynamically supertyped
callbackParamSubtype1(); // static and dynamically subtyped
callbackReturnInvariant1(); // Pointer<Int64> invariant
callbackReturnInvariant2(); // Pointer<NativeType> invariant

View file

@ -59,10 +59,10 @@ Pointer<Int64> int64PointerReturnOp() {
return Pointer.fromAddress(0x13370000);
}
final implictDowncast1 = //# 3: compile-time error
final implicitDowncast1 = //# 3: compile-time error
Pointer.fromFunction<Int64PointerParamOp>(//# 3: continued
naTyPointerParamOp); //# 3: continued
final implictDowncast2 = //# 4: compile-time error
final implicitDowncast2 = //# 4: compile-time error
Pointer.fromFunction<NaTyPointerReturnOp>(//# 4: continued
int64PointerReturnOp); //# 4: continued

View file

@ -4,7 +4,7 @@
import "package:expect/expect.dart";
// Test Parameter Intializer.
// Test Parameter Initializer.
class ParameterInitializer2Test {
static testMain() {

View file

@ -6,7 +6,7 @@
import "package:expect/expect.dart";
// Test Parameter Intializer.
// Test Parameter Initializer.
class ParameterInitializer2Test {
static testMain() {

View file

@ -332,8 +332,8 @@ void testProxyIPV6() {
});
}
int testProxyFromEnviromentDoneCount = 0;
void testProxyFromEnviroment() {
int testProxyFromEnvironmentDoneCount = 0;
void testProxyFromEnvironment() {
setupProxyServer().then((proxyServer) {
setupServer(1).then((server) {
setupServer(1, secure: true).then((secureServer) {
@ -361,8 +361,8 @@ void testProxyFromEnviroment() {
return clientRequest.close();
}).then((HttpClientResponse response) {
response.listen((_) {}, onDone: () {
testProxyFromEnviromentDoneCount++;
if (testProxyFromEnviromentDoneCount == loopCount * 2) {
testProxyFromEnvironmentDoneCount++;
if (testProxyFromEnvironmentDoneCount == loopCount * 2) {
Expect.equals(loopCount, server.requestCount);
Expect.equals(loopCount, secureServer.requestCount);
proxyServer.shutdown();
@ -612,7 +612,7 @@ void testRealProxyAuth() {
main() {
testProxyIPV6();
testProxyFromEnviroment();
testProxyFromEnvironment();
// The two invocations use the same global variable for state -
// run one after the other.
testProxyAuthenticate(false).then((_) => testProxyAuthenticate(true));

View file

@ -334,8 +334,8 @@ void testProxyIPV6() {
});
}
int testProxyFromEnviromentDoneCount = 0;
void testProxyFromEnviroment() {
int testProxyFromEnvironmentDoneCount = 0;
void testProxyFromEnvironment() {
setupProxyServer().then((proxyServer) {
setupServer(1).then((server) {
setupServer(1, secure: true).then((secureServer) {
@ -363,8 +363,8 @@ void testProxyFromEnviroment() {
return clientRequest.close();
}).then((HttpClientResponse response) {
response.listen((_) {}, onDone: () {
testProxyFromEnviromentDoneCount++;
if (testProxyFromEnviromentDoneCount == loopCount * 2) {
testProxyFromEnvironmentDoneCount++;
if (testProxyFromEnvironmentDoneCount == loopCount * 2) {
Expect.equals(loopCount, server.requestCount);
Expect.equals(loopCount, secureServer.requestCount);
proxyServer.shutdown();
@ -614,7 +614,7 @@ void testRealProxyAuth() {
main() {
testProxyIPV6();
testProxyFromEnviroment();
testProxyFromEnvironment();
// The two invocations use the same global variable for state -
// run one after the other.
testProxyAuthenticate(false).then((_) => testProxyAuthenticate(true));