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

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

Issue 2661803002: Issue 28491. Add support for UnlinkedExprOperation.pushSuper even though it is not allowed. (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
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 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 stack.length -= _getNextInt(); 2007 stack.length -= _getNextInt();
2008 stack.add(typeProvider.stringType); 2008 stack.add(typeProvider.stringType);
2009 break; 2009 break;
2010 case UnlinkedExprOperation.makeSymbol: 2010 case UnlinkedExprOperation.makeSymbol:
2011 strPtr++; 2011 strPtr++;
2012 stack.add(typeProvider.symbolType); 2012 stack.add(typeProvider.symbolType);
2013 break; 2013 break;
2014 case UnlinkedExprOperation.pushNull: 2014 case UnlinkedExprOperation.pushNull:
2015 stack.add(typeProvider.nullType); 2015 stack.add(typeProvider.nullType);
2016 break; 2016 break;
2017 case UnlinkedExprOperation.pushSuper:
2018 stack.add(DynamicTypeImpl.instance);
2019 break;
2017 case UnlinkedExprOperation.pushThis: 2020 case UnlinkedExprOperation.pushThis:
2018 stack.add(DynamicTypeImpl.instance); 2021 stack.add(DynamicTypeImpl.instance);
2019 break; 2022 break;
2020 case UnlinkedExprOperation.pushReference: 2023 case UnlinkedExprOperation.pushReference:
2021 _doPushReference(); 2024 _doPushReference();
2022 break; 2025 break;
2023 case UnlinkedExprOperation.extractProperty: 2026 case UnlinkedExprOperation.extractProperty:
2024 _doExtractProperty(); 2027 _doExtractProperty();
2025 break; 2028 break;
2026 case UnlinkedExprOperation.invokeConstructor: 2029 case UnlinkedExprOperation.invokeConstructor:
(...skipping 2965 matching lines...) Expand 10 before | Expand all | Expand 10 after
4992 * there are no type parameters in scope. 4995 * there are no type parameters in scope.
4993 */ 4996 */
4994 TypeParameterizedElementMixin get _typeParameterContext; 4997 TypeParameterizedElementMixin get _typeParameterContext;
4995 4998
4996 @override 4999 @override
4997 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 5000 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
4998 5001
4999 @override 5002 @override
5000 String toString() => '$enclosingElement.$name'; 5003 String toString() => '$enclosingElement.$name';
5001 } 5004 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698