Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 650323002: Fix spelling: existant -> existent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.resolver_test; 8 library engine.resolver_test;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 2709 matching lines...) Expand 10 before | Expand all | Expand 10 after
2720 " break;", 2720 " break;",
2721 " }", 2721 " }",
2722 "}"])); 2722 "}"]));
2723 resolve(source); 2723 resolve(source);
2724 assertErrors(source, [ 2724 assertErrors(source, [
2725 CompileTimeErrorCode.INCONSISTENT_CASE_EXPRESSION_TYPES, 2725 CompileTimeErrorCode.INCONSISTENT_CASE_EXPRESSION_TYPES,
2726 CompileTimeErrorCode.INCONSISTENT_CASE_EXPRESSION_TYPES]); 2726 CompileTimeErrorCode.INCONSISTENT_CASE_EXPRESSION_TYPES]);
2727 verify([source]); 2727 verify([source]);
2728 } 2728 }
2729 2729
2730 void test_initializerForNonExistant_initializer() { 2730 void test_initializerForNonExistent_initializer() {
2731 Source source = addSource(EngineTestCase.createSource(["class A {", " A() : x = 0 {}", "}"])); 2731 Source source = addSource(EngineTestCase.createSource(["class A {", " A() : x = 0 {}", "}"]));
2732 resolve(source); 2732 resolve(source);
2733 assertErrors(source, [CompileTimeErrorCode.INITIALIZER_FOR_NON_EXISTANT_FIEL D]); 2733 assertErrors(source, [CompileTimeErrorCode.INITIALIZER_FOR_NON_EXISTENT_FIEL D]);
2734 } 2734 }
2735 2735
2736 void test_initializerForStaticField() { 2736 void test_initializerForStaticField() {
2737 Source source = addSource(EngineTestCase.createSource(["class A {", " stati c int x;", " A() : x = 0 {}", "}"])); 2737 Source source = addSource(EngineTestCase.createSource(["class A {", " stati c int x;", " A() : x = 0 {}", "}"]));
2738 resolve(source); 2738 resolve(source);
2739 assertErrors(source, [CompileTimeErrorCode.INITIALIZER_FOR_STATIC_FIELD]); 2739 assertErrors(source, [CompileTimeErrorCode.INITIALIZER_FOR_STATIC_FIELD]);
2740 verify([source]); 2740 verify([source]);
2741 } 2741 }
2742 2742
2743 void test_initializingFormalForNonExistantField() { 2743 void test_initializingFormalForNonExistentField() {
2744 Source source = addSource(EngineTestCase.createSource(["class A {", " A(thi s.x) {}", "}"])); 2744 Source source = addSource(EngineTestCase.createSource(["class A {", " A(thi s.x) {}", "}"]));
2745 resolve(source); 2745 resolve(source);
2746 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ANT_FIELD]); 2746 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ENT_FIELD]);
2747 verify([source]); 2747 verify([source]);
2748 } 2748 }
2749 2749
2750 void test_initializingFormalForNonExistantField_notInEnclosingClass() { 2750 void test_initializingFormalForNonExistentField_notInEnclosingClass() {
2751 Source source = addSource(EngineTestCase.createSource([ 2751 Source source = addSource(EngineTestCase.createSource([
2752 "class A {", 2752 "class A {",
2753 "int x;", 2753 "int x;",
2754 "}", 2754 "}",
2755 "class B extends A {", 2755 "class B extends A {",
2756 " B(this.x) {}", 2756 " B(this.x) {}",
2757 "}"])); 2757 "}"]));
2758 resolve(source); 2758 resolve(source);
2759 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ANT_FIELD]); 2759 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ENT_FIELD]);
2760 verify([source]); 2760 verify([source]);
2761 } 2761 }
2762 2762
2763 void test_initializingFormalForNonExistantField_optional() { 2763 void test_initializingFormalForNonExistentField_optional() {
2764 Source source = addSource(EngineTestCase.createSource(["class A {", " A([th is.x]) {}", "}"])); 2764 Source source = addSource(EngineTestCase.createSource(["class A {", " A([th is.x]) {}", "}"]));
2765 resolve(source); 2765 resolve(source);
2766 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ANT_FIELD]); 2766 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ENT_FIELD]);
2767 verify([source]); 2767 verify([source]);
2768 } 2768 }
2769 2769
2770 void test_initializingFormalForNonExistantField_synthetic() { 2770 void test_initializingFormalForNonExistentField_synthetic() {
2771 Source source = addSource(EngineTestCase.createSource(["class A {", " int g et x => 1;", " A(this.x) {}", "}"])); 2771 Source source = addSource(EngineTestCase.createSource(["class A {", " int g et x => 1;", " A(this.x) {}", "}"]));
2772 resolve(source); 2772 resolve(source);
2773 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ANT_FIELD]); 2773 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_NON_EXIST ENT_FIELD]);
2774 verify([source]); 2774 verify([source]);
2775 } 2775 }
2776 2776
2777 void test_initializingFormalForStaticField() { 2777 void test_initializingFormalForStaticField() {
2778 Source source = addSource(EngineTestCase.createSource(["class A {", " stati c int x;", " A([this.x]) {}", "}"])); 2778 Source source = addSource(EngineTestCase.createSource(["class A {", " stati c int x;", " A([this.x]) {}", "}"]));
2779 resolve(source); 2779 resolve(source);
2780 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_STATIC_FI ELD]); 2780 assertErrors(source, [CompileTimeErrorCode.INITIALIZING_FORMAL_FOR_STATIC_FI ELD]);
2781 verify([source]); 2781 verify([source]);
2782 } 2782 }
2783 2783
(...skipping 7484 matching lines...) Expand 10 before | Expand all | Expand 10 after
10268 " x();", 10268 " x();",
10269 "}", 10269 "}",
10270 "class C implements A, B {", 10270 "class C implements A, B {",
10271 " x() {}", 10271 " x() {}",
10272 "}"])); 10272 "}"]));
10273 resolve(source); 10273 resolve(source);
10274 assertNoErrors(source); 10274 assertNoErrors(source);
10275 verify([source]); 10275 verify([source]);
10276 } 10276 }
10277 10277
10278 void test_initializingFormalForNonExistantField() { 10278 void test_initializingFormalForNonExistentField() {
10279 Source source = addSource(EngineTestCase.createSource(["class A {", " int x ;", " A(this.x) {}", "}"])); 10279 Source source = addSource(EngineTestCase.createSource(["class A {", " int x ;", " A(this.x) {}", "}"]));
10280 resolve(source); 10280 resolve(source);
10281 assertNoErrors(source); 10281 assertNoErrors(source);
10282 verify([source]); 10282 verify([source]);
10283 } 10283 }
10284 10284
10285 void test_instanceAccessToStaticMember_fromComment() { 10285 void test_instanceAccessToStaticMember_fromComment() {
10286 Source source = addSource(EngineTestCase.createSource([ 10286 Source source = addSource(EngineTestCase.createSource([
10287 "class A {", 10287 "class A {",
10288 " static m() {}", 10288 " static m() {}",
(...skipping 13097 matching lines...) Expand 10 before | Expand all | Expand 10 after
23386 runReflectiveTests(HintCodeTest); 23386 runReflectiveTests(HintCodeTest);
23387 runReflectiveTests(MemberMapTest); 23387 runReflectiveTests(MemberMapTest);
23388 runReflectiveTests(NonErrorResolverTest); 23388 runReflectiveTests(NonErrorResolverTest);
23389 runReflectiveTests(NonHintCodeTest); 23389 runReflectiveTests(NonHintCodeTest);
23390 runReflectiveTests(SimpleResolverTest); 23390 runReflectiveTests(SimpleResolverTest);
23391 runReflectiveTests(StaticTypeWarningCodeTest); 23391 runReflectiveTests(StaticTypeWarningCodeTest);
23392 runReflectiveTests(StaticWarningCodeTest); 23392 runReflectiveTests(StaticWarningCodeTest);
23393 runReflectiveTests(StrictModeTest); 23393 runReflectiveTests(StrictModeTest);
23394 runReflectiveTests(TypePropagationTest); 23394 runReflectiveTests(TypePropagationTest);
23395 } 23395 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698