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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2986593002: Resynthesize instance creation expressions from Kernel. (Closed)
Patch Set: Created 3 years, 5 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_kernel_test.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) 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 analyzer.src.dart.element.element; 5 library analyzer.src.dart.element.element;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' show min; 8 import 'dart:math' show min;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 8899 matching lines...) Expand 10 before | Expand all | Expand 10 after
8910 @override 8910 @override
8911 int get nameOffset { 8911 int get nameOffset {
8912 int offset = super.nameOffset; 8912 int offset = super.nameOffset;
8913 if (offset == 0 && _unlinkedTypeParam != null) { 8913 if (offset == 0 && _unlinkedTypeParam != null) {
8914 return _unlinkedTypeParam.nameOffset; 8914 return _unlinkedTypeParam.nameOffset;
8915 } 8915 }
8916 return offset; 8916 return offset;
8917 } 8917 }
8918 8918
8919 TypeParameterType get type { 8919 TypeParameterType get type {
8920 if (_kernel != null) {
8921 _type ??= new TypeParameterTypeImpl(this);
8922 }
8920 if (_unlinkedTypeParam != null) { 8923 if (_unlinkedTypeParam != null) {
8921 _type ??= new TypeParameterTypeImpl(this); 8924 _type ??= new TypeParameterTypeImpl(this);
8922 } 8925 }
8923 return _type; 8926 return _type;
8924 } 8927 }
8925 8928
8926 void set type(TypeParameterType type) { 8929 void set type(TypeParameterType type) {
8927 _type = type; 8930 _type = type;
8928 } 8931 }
8929 8932
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
9289 9292
9290 @override 9293 @override
9291 DartObject computeConstantValue() => null; 9294 DartObject computeConstantValue() => null;
9292 9295
9293 @override 9296 @override
9294 void visitChildren(ElementVisitor visitor) { 9297 void visitChildren(ElementVisitor visitor) {
9295 super.visitChildren(visitor); 9298 super.visitChildren(visitor);
9296 _initializer?.accept(visitor); 9299 _initializer?.accept(visitor);
9297 } 9300 }
9298 } 9301 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698