| 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 // 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; | 8 library engine; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 7088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7099 } | 7099 } |
| 7100 | 7100 |
| 7101 /** | 7101 /** |
| 7102 * Creates new [LocalVariableElementImpl] with given type and identifier. | 7102 * Creates new [LocalVariableElementImpl] with given type and identifier. |
| 7103 * | 7103 * |
| 7104 * @param type the [Type] of the variable | 7104 * @param type the [Type] of the variable |
| 7105 * @param identifier the identifier to create variable for | 7105 * @param identifier the identifier to create variable for |
| 7106 * @return the new [LocalVariableElementImpl] | 7106 * @return the new [LocalVariableElementImpl] |
| 7107 */ | 7107 */ |
| 7108 LocalVariableElementImpl _createLocalVariableFromIdentifier(DartType type, Sim
pleIdentifier identifier) { | 7108 LocalVariableElementImpl _createLocalVariableFromIdentifier(DartType type, Sim
pleIdentifier identifier) { |
| 7109 LocalVariableElementImpl variable = new LocalVariableElementImpl(identifier)
; | 7109 LocalVariableElementImpl variable = new LocalVariableElementImpl.forNode(ide
ntifier); |
| 7110 _definedVariables.add(variable); | 7110 _definedVariables.add(variable); |
| 7111 variable.type = type; | 7111 variable.type = type; |
| 7112 return variable; | 7112 return variable; |
| 7113 } | 7113 } |
| 7114 | 7114 |
| 7115 /** | 7115 /** |
| 7116 * Creates new [LocalVariableElementImpl] with given name and type. | 7116 * Creates new [LocalVariableElementImpl] with given name and type. |
| 7117 * | 7117 * |
| 7118 * @param type the [Type] of the variable | 7118 * @param type the [Type] of the variable |
| 7119 * @param name the name of the variable | 7119 * @param name the name of the variable |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7267 /** | 7267 /** |
| 7268 * Puts into [libraryElement] an artificial [LibraryElementImpl] for this HTML | 7268 * Puts into [libraryElement] an artificial [LibraryElementImpl] for this HTML |
| 7269 * [Source]. | 7269 * [Source]. |
| 7270 */ | 7270 */ |
| 7271 void _createLibraryElement() { | 7271 void _createLibraryElement() { |
| 7272 // create CompilationUnitElementImpl | 7272 // create CompilationUnitElementImpl |
| 7273 String unitName = _source.shortName; | 7273 String unitName = _source.shortName; |
| 7274 _unitElement = new CompilationUnitElementImpl(unitName); | 7274 _unitElement = new CompilationUnitElementImpl(unitName); |
| 7275 _unitElement.source = _source; | 7275 _unitElement.source = _source; |
| 7276 // create LibraryElementImpl | 7276 // create LibraryElementImpl |
| 7277 _libraryElement = new LibraryElementImpl(_context, null); | 7277 _libraryElement = new LibraryElementImpl.forNode(_context, null); |
| 7278 _libraryElement.definingCompilationUnit = _unitElement; | 7278 _libraryElement.definingCompilationUnit = _unitElement; |
| 7279 _libraryElement.angularHtml = true; | 7279 _libraryElement.angularHtml = true; |
| 7280 _injectedLibraries.add(_libraryElement); | 7280 _injectedLibraries.add(_libraryElement); |
| 7281 // create FunctionElementImpl | 7281 // create FunctionElementImpl |
| 7282 _functionElement = new FunctionElementImpl.forOffset(0); | 7282 _functionElement = new FunctionElementImpl.forOffset(0); |
| 7283 _unitElement.functions = <FunctionElement> [_functionElement]; | 7283 _unitElement.functions = <FunctionElement> [_functionElement]; |
| 7284 } | 7284 } |
| 7285 | 7285 |
| 7286 /** | 7286 /** |
| 7287 * Creates new [NgProcessor] for the given [AngularElement], maybe `null` if n
ot | 7287 * Creates new [NgProcessor] for the given [AngularElement], maybe `null` if n
ot |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7805 LibraryElement importedLibraryElement = importedLibrary.libraryEle
ment; | 7805 LibraryElement importedLibraryElement = importedLibrary.libraryEle
ment; |
| 7806 if (importedLibraryElement != null) { | 7806 if (importedLibraryElement != null) { |
| 7807 importElement.importedLibrary = importedLibraryElement; | 7807 importElement.importedLibrary = importedLibraryElement; |
| 7808 } | 7808 } |
| 7809 SimpleIdentifier prefixNode = directive.prefix; | 7809 SimpleIdentifier prefixNode = directive.prefix; |
| 7810 if (prefixNode != null) { | 7810 if (prefixNode != null) { |
| 7811 importElement.prefixOffset = prefixNode.offset; | 7811 importElement.prefixOffset = prefixNode.offset; |
| 7812 String prefixName = prefixNode.name; | 7812 String prefixName = prefixNode.name; |
| 7813 PrefixElementImpl prefix = nameToPrefixMap[prefixName]; | 7813 PrefixElementImpl prefix = nameToPrefixMap[prefixName]; |
| 7814 if (prefix == null) { | 7814 if (prefix == null) { |
| 7815 prefix = new PrefixElementImpl(prefixNode); | 7815 prefix = new PrefixElementImpl.forNode(prefixNode); |
| 7816 nameToPrefixMap[prefixName] = prefix; | 7816 nameToPrefixMap[prefixName] = prefix; |
| 7817 } | 7817 } |
| 7818 importElement.prefix = prefix; | 7818 importElement.prefix = prefix; |
| 7819 prefixNode.staticElement = prefix; | 7819 prefixNode.staticElement = prefix; |
| 7820 } | 7820 } |
| 7821 directive.element = importElement; | 7821 directive.element = importElement; |
| 7822 imports.add(importElement); | 7822 imports.add(importElement); |
| 7823 if (analysisContext.computeKindOf(importedSource) != SourceKind.LI
BRARY) { | 7823 if (analysisContext.computeKindOf(importedSource) != SourceKind.LI
BRARY) { |
| 7824 ErrorCode errorCode = (importElement.isDeferred ? StaticWarningC
ode.IMPORT_OF_NON_LIBRARY : CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY); | 7824 ErrorCode errorCode = (importElement.isDeferred ? StaticWarningC
ode.IMPORT_OF_NON_LIBRARY : CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY); |
| 7825 _errorListener.onError(new AnalysisError.con2(library.librarySou
rce, uriLiteral.offset, uriLiteral.length, errorCode, [uriLiteral.toSource()])); | 7825 _errorListener.onError(new AnalysisError.con2(library.librarySou
rce, uriLiteral.offset, uriLiteral.length, errorCode, [uriLiteral.toSource()])); |
| (...skipping 7582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15408 _index++; | 15408 _index++; |
| 15409 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { | 15409 if (_index >= WorkManager_this._workQueues[_queueIndex].length) { |
| 15410 _index = 0; | 15410 _index = 0; |
| 15411 _queueIndex++; | 15411 _queueIndex++; |
| 15412 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th
is._workQueues[_queueIndex].isEmpty) { | 15412 while (_queueIndex < WorkManager_this._workQueues.length && WorkManager_th
is._workQueues[_queueIndex].isEmpty) { |
| 15413 _queueIndex++; | 15413 _queueIndex++; |
| 15414 } | 15414 } |
| 15415 } | 15415 } |
| 15416 } | 15416 } |
| 15417 } | 15417 } |
| OLD | NEW |