| OLD | NEW |
| 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 library engine.resolver; | 5 library engine.resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'ast.dart'; | 9 import 'ast.dart'; |
| 10 import 'constant.dart'; | 10 import 'constant.dart'; |
| (...skipping 8938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8949 * @param coreLibrarySource the source representing the core library | 8949 * @param coreLibrarySource the source representing the core library |
| 8950 * @throws AnalysisException always | 8950 * @throws AnalysisException always |
| 8951 */ | 8951 */ |
| 8952 static void missingCoreLibrary( | 8952 static void missingCoreLibrary( |
| 8953 AnalysisContext analysisContext, Source coreLibrarySource) { | 8953 AnalysisContext analysisContext, Source coreLibrarySource) { |
| 8954 throw new AnalysisException("Could not resolve dart:core"); | 8954 throw new AnalysisException("Could not resolve dart:core"); |
| 8955 } | 8955 } |
| 8956 } | 8956 } |
| 8957 | 8957 |
| 8958 /** | 8958 /** |
| 8959 * Instances of the class `TypeAliasInfo` hold information about a [TypeAlias]. | |
| 8960 */ | |
| 8961 class LibraryResolver2_TypeAliasInfo { | |
| 8962 final ResolvableLibrary _library; | |
| 8963 | |
| 8964 final Source _source; | |
| 8965 | |
| 8966 final FunctionTypeAlias _typeAlias; | |
| 8967 | |
| 8968 /** | |
| 8969 * Initialize a newly created information holder with the given information. | |
| 8970 * | |
| 8971 * @param library the library containing the type alias | |
| 8972 * @param source the source of the file containing the type alias | |
| 8973 * @param typeAlias the type alias being remembered | |
| 8974 */ | |
| 8975 LibraryResolver2_TypeAliasInfo(this._library, this._source, this._typeAlias); | |
| 8976 } | |
| 8977 | |
| 8978 /** | |
| 8979 * Instances of the class `TypeAliasInfo` hold information about a [TypeAlias]. | |
| 8980 */ | |
| 8981 class LibraryResolver_TypeAliasInfo { | |
| 8982 final Library _library; | |
| 8983 | |
| 8984 final Source _source; | |
| 8985 | |
| 8986 final FunctionTypeAlias _typeAlias; | |
| 8987 | |
| 8988 /** | |
| 8989 * Initialize a newly created information holder with the given information. | |
| 8990 * | |
| 8991 * @param library the library containing the type alias | |
| 8992 * @param source the source of the file containing the type alias | |
| 8993 * @param typeAlias the type alias being remembered | |
| 8994 */ | |
| 8995 LibraryResolver_TypeAliasInfo(this._library, this._source, this._typeAlias); | |
| 8996 } | |
| 8997 | |
| 8998 /** | |
| 8999 * Instances of the class `LibraryScope` implement a scope containing all of the
names defined | 8959 * Instances of the class `LibraryScope` implement a scope containing all of the
names defined |
| 9000 * in a given library. | 8960 * in a given library. |
| 9001 */ | 8961 */ |
| 9002 class LibraryScope extends EnclosedScope { | 8962 class LibraryScope extends EnclosedScope { |
| 9003 /** | 8963 /** |
| 9004 * Initialize a newly created scope representing the names defined in the give
n library. | 8964 * Initialize a newly created scope representing the names defined in the give
n library. |
| 9005 * | 8965 * |
| 9006 * @param definingLibrary the element representing the library represented by
this scope | 8966 * @param definingLibrary the element representing the library represented by
this scope |
| 9007 * @param errorListener the listener that is to be informed when an error is e
ncountered | 8967 * @param errorListener the listener that is to be informed when an error is e
ncountered |
| 9008 */ | 8968 */ |
| (...skipping 6962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15971 nonFields.add(node); | 15931 nonFields.add(node); |
| 15972 return null; | 15932 return null; |
| 15973 } | 15933 } |
| 15974 | 15934 |
| 15975 @override | 15935 @override |
| 15976 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); | 15936 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); |
| 15977 | 15937 |
| 15978 @override | 15938 @override |
| 15979 Object visitWithClause(WithClause node) => null; | 15939 Object visitWithClause(WithClause node) => null; |
| 15980 } | 15940 } |
| OLD | NEW |