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

Side by Side Diff: pkg/analyzer_plugin/tool/spec/codegen_dart_protocol.dart

Issue 2742333005: Move some of analyzer's code generation utilities into front_end. (Closed)
Patch Set: Created 3 years, 9 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:convert'; 5 import 'dart:convert';
6 6
7 import 'package:analyzer/src/codegen/tools.dart'; 7 import 'package:analyzer/src/codegen/tools.dart';
8 import 'package:front_end/src/codegen/tools.dart';
8 import 'package:html/dom.dart' as dom; 9 import 'package:html/dom.dart' as dom;
9 10
10 import 'api.dart'; 11 import 'api.dart';
11 import 'codegen_dart.dart'; 12 import 'codegen_dart.dart';
12 import 'from_html.dart'; 13 import 'from_html.dart';
13 import 'implied_types.dart'; 14 import 'implied_types.dart';
14 import 'to_html.dart'; 15 import 'to_html.dart';
15 16
16 /** 17 /**
17 * Special flags that need to be inserted into the declaration of the Element 18 * Special flags that need to be inserted into the declaration of the Element
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 1274
1274 @override 1275 @override
1275 String get asClosure => '($type value) => ${callback('value')}'; 1276 String get asClosure => '($type value) => ${callback('value')}';
1276 1277
1277 @override 1278 @override
1278 bool get isIdentity => false; 1279 bool get isIdentity => false;
1279 1280
1280 @override 1281 @override
1281 String asSnippet(String value) => callback(value); 1282 String asSnippet(String value) => callback(value);
1282 } 1283 }
OLDNEW
« no previous file with comments | « pkg/analyzer_plugin/tool/spec/check_all_test.dart ('k') | pkg/analyzer_plugin/tool/spec/codegen_inttest_methods.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698