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

Side by Side Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 2661793002: Infer UnlinkedExprOperation.pushThis as dynamic. (Closed)
Patch Set: Created 3 years, 10 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/analyzer/test/src/summary/resynthesize_common.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 /** 5 /**
6 * This library is capable of producing linked summaries from unlinked 6 * This library is capable of producing linked summaries from unlinked
7 * ones (or prelinked ones). It functions by building a miniature 7 * ones (or prelinked ones). It functions by building a miniature
8 * element model to represent the contents of the summaries, and then 8 * element model to represent the contents of the summaries, and then
9 * scanning the element model to gather linked information and adding 9 * scanning the element model to gather linked information and adding
10 * it to the summary data structures. 10 * it to the summary data structures.
(...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 stack.length -= _getNextInt(); 2001 stack.length -= _getNextInt();
2002 stack.add(typeProvider.stringType); 2002 stack.add(typeProvider.stringType);
2003 break; 2003 break;
2004 case UnlinkedExprOperation.makeSymbol: 2004 case UnlinkedExprOperation.makeSymbol:
2005 strPtr++; 2005 strPtr++;
2006 stack.add(typeProvider.symbolType); 2006 stack.add(typeProvider.symbolType);
2007 break; 2007 break;
2008 case UnlinkedExprOperation.pushNull: 2008 case UnlinkedExprOperation.pushNull:
2009 stack.add(typeProvider.nullType); 2009 stack.add(typeProvider.nullType);
2010 break; 2010 break;
2011 case UnlinkedExprOperation.pushThis:
2012 stack.add(DynamicTypeImpl.instance);
2013 break;
2011 case UnlinkedExprOperation.pushReference: 2014 case UnlinkedExprOperation.pushReference:
2012 _doPushReference(); 2015 _doPushReference();
2013 break; 2016 break;
2014 case UnlinkedExprOperation.extractProperty: 2017 case UnlinkedExprOperation.extractProperty:
2015 _doExtractProperty(); 2018 _doExtractProperty();
2016 break; 2019 break;
2017 case UnlinkedExprOperation.invokeConstructor: 2020 case UnlinkedExprOperation.invokeConstructor:
2018 _doInvokeConstructor(); 2021 _doInvokeConstructor();
2019 break; 2022 break;
2020 case UnlinkedExprOperation.makeUntypedList: 2023 case UnlinkedExprOperation.makeUntypedList:
(...skipping 2962 matching lines...) Expand 10 before | Expand all | Expand 10 after
4983 * there are no type parameters in scope. 4986 * there are no type parameters in scope.
4984 */ 4987 */
4985 TypeParameterizedElementMixin get _typeParameterContext; 4988 TypeParameterizedElementMixin get _typeParameterContext;
4986 4989
4987 @override 4990 @override
4988 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 4991 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
4989 4992
4990 @override 4993 @override
4991 String toString() => '$enclosingElement.$name'; 4994 String toString() => '$enclosingElement.$name';
4992 } 4995 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698