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

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

Issue 2995023002: Add debug names to scopes. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/procedure_builder.dart » ('j') | 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
6 import 'package:analyzer/dart/ast/token.dart' as analyzer; 6 import 'package:analyzer/dart/ast/token.dart' as analyzer;
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 import 'package:analyzer/error/listener.dart' show ErrorReporter; 8 import 'package:analyzer/error/listener.dart' show ErrorReporter;
9 import 'package:analyzer/src/dart/scanner/scanner.dart'; 9 import 'package:analyzer/src/dart/scanner/scanner.dart';
10 import 'package:analyzer/src/fasta/ast_builder.dart'; 10 import 'package:analyzer/src/fasta/ast_builder.dart';
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 /** 860 /**
861 * Proxy implementation of [Scope] used by Fasta parser tests. 861 * Proxy implementation of [Scope] used by Fasta parser tests.
862 * 862 *
863 * Any name lookup request is satisfied by creating an instance of 863 * Any name lookup request is satisfied by creating an instance of
864 * [BuilderProxy]. 864 * [BuilderProxy].
865 */ 865 */
866 class ScopeProxy implements Scope { 866 class ScopeProxy implements Scope {
867 final _locals = <String, Builder>{}; 867 final _locals = <String, Builder>{};
868 868
869 @override 869 @override
870 Scope createNestedScope({bool isModifiable: true}) { 870 Scope createNestedScope(String debugName, {bool isModifiable: true}) {
871 return new Scope.nested(this, isModifiable: isModifiable); 871 return new Scope.nested(this, debugName, isModifiable: isModifiable);
872 } 872 }
873 873
874 @override 874 @override
875 declare(String name, Builder builder, int charOffset, Uri fileUri) { 875 declare(String name, Builder builder, int charOffset, Uri fileUri) {
876 _locals[name] = builder; 876 _locals[name] = builder;
877 return null; 877 return null;
878 } 878 }
879 879
880 @override 880 @override
881 Builder lookup(String name, int charOffset, Uri fileUri, 881 Builder lookup(String name, int charOffset, Uri fileUri,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 assertNoErrors(); 1024 assertNoErrors();
1025 } 1025 }
1026 1026
1027 @failingTest 1027 @failingTest
1028 void test_parseCompilationUnitMember_abstractAsPrefix2() { 1028 void test_parseCompilationUnitMember_abstractAsPrefix2() {
1029 // TODO(danrubel): should not be generating an error 1029 // TODO(danrubel): should not be generating an error
1030 super.test_parseCompilationUnitMember_abstractAsPrefix(); 1030 super.test_parseCompilationUnitMember_abstractAsPrefix();
1031 assertNoErrors(); 1031 assertNoErrors();
1032 } 1032 }
1033 } 1033 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/procedure_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698