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

Unified Diff: pkg/analyzer/test/generated/declaration_resolver_test.dart

Issue 1771243002: Change when enum constant elements are created to fix bug in re-creating ASTs from existing element… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/declaration_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/declaration_resolver_test.dart b/pkg/analyzer/test/generated/declaration_resolver_test.dart
index 79bf1cf4ea24f202441ff9f51d44eac2c6ad350e..35eda1574b2e1e9658aa6e8728ed0b619608d6f7 100644
--- a/pkg/analyzer/test/generated/declaration_resolver_test.dart
+++ b/pkg/analyzer/test/generated/declaration_resolver_test.dart
@@ -258,6 +258,18 @@ class DeclarationResolverTest extends ResolverTestCase {
super.setUp();
}
+ void test_enumConstant_partiallyResolved() {
+ String code = r'''
+enum Fruit {apple, pear}
+''';
+ Source source = addNamedSource('/test.dart', code);
+ LibrarySpecificUnit target = new LibrarySpecificUnit(source, source);
+ analysisContext.computeResult(source, LIBRARY_ELEMENT1);
+ CompilationUnit unit =
+ analysisContext.computeResult(target, RESOLVED_UNIT1);
+ CompilationUnit unit2 = _cloneResolveUnit(unit);
+ }
+
void test_functionDeclaration_getter() {
String code = r'''
int get zzz => 42;
« 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