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

Side by Side Diff: pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart

Issue 1314973003: Add support for analyzing individual URIs. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment Created 5 years, 3 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 | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/use_unused_api.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of dart2js.semantics_visitor; 5 part of dart2js.semantics_visitor;
6 6
7 /// Interface for bulk handling of a [Node] in a semantic visitor. 7 /// Interface for bulk handling of a [Node] in a semantic visitor.
8 abstract class BulkHandle<R, A> { 8 abstract class BulkHandle<R, A> {
9 /// Handle [node] either regardless of semantics or to report that [node] is 9 /// Handle [node] either regardless of semantics or to report that [node] is
10 /// unhandled. [message] contains a message template for the latter case: 10 /// unhandled. [message] contains a message template for the latter case:
(...skipping 7682 matching lines...) Expand 10 before | Expand all | Expand 10 after
7693 @override 7693 @override
7694 internalError(Spannable spannable, String message) { 7694 internalError(Spannable spannable, String message) {
7695 throw new SpannableAssertionFailure(spannable, message); 7695 throw new SpannableAssertionFailure(spannable, message);
7696 } 7696 }
7697 7697
7698 @override 7698 @override
7699 R visitNode(Node node) { 7699 R visitNode(Node node) {
7700 node.visitChildren(this); 7700 node.visitChildren(this);
7701 return null; 7701 return null;
7702 } 7702 }
7703
7704 @override
7705 R visitTypeAnnotation(TypeAnnotation node) {
7706 // Skip [Send] contained in type annotations, like `prefix.Type`.
7707 return null;
7708 }
7703 } 7709 }
7704 7710
7705 /// Mixin that groups all non-compound `visitStaticX` and `visitTopLevelX` 7711 /// Mixin that groups all non-compound `visitStaticX` and `visitTopLevelX`
7706 /// method by delegating calls to `handleStaticX` methods. 7712 /// method by delegating calls to `handleStaticX` methods.
7707 /// 7713 ///
7708 /// This mixin is useful for the cases where both top level members and static 7714 /// This mixin is useful for the cases where both top level members and static
7709 /// class members are handled uniformly. 7715 /// class members are handled uniformly.
7710 abstract class BaseImplementationOfStaticsMixin<R, A> 7716 abstract class BaseImplementationOfStaticsMixin<R, A>
7711 implements SemanticSendVisitor<R, A> { 7717 implements SemanticSendVisitor<R, A> {
7712 R handleStaticFieldGet( 7718 R handleStaticFieldGet(
(...skipping 4662 matching lines...) Expand 10 before | Expand all | Expand 10 after
12375 NewExpression node, 12381 NewExpression node,
12376 ConstructorElement constructor, 12382 ConstructorElement constructor,
12377 InterfaceType type, 12383 InterfaceType type,
12378 NodeList arguments, 12384 NodeList arguments,
12379 CallStructure callStructure, 12385 CallStructure callStructure,
12380 A arg) { 12386 A arg) {
12381 return handleConstructorInvoke( 12387 return handleConstructorInvoke(
12382 node, constructor, type, arguments, callStructure, arg); 12388 node, constructor, type, arguments, callStructure, arg);
12383 } 12389 }
12384 } 12390 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698