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

Side by Side Diff: pkg/analyzer2dart/lib/src/util.dart

Issue 1214853002: Update some files from CRLF to LF (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
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 // Utility function shared between different parts of analyzer2dart. 5 // Utility function shared between different parts of analyzer2dart.
6 6
7 library analyzer2dart.util; 7 library analyzer2dart.util;
8 8
9 import 'package:analyzer/analyzer.dart'; 9 import 'package:analyzer/analyzer.dart';
10 import 'package:analyzer/src/generated/source.dart'; 10 import 'package:analyzer/src/generated/source.dart';
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 /// Prints [message] together with source code pointed to by [node] from 35 /// Prints [message] together with source code pointed to by [node] from
36 /// [source]. 36 /// [source].
37 void reportSourceMessage(Source source, AstNode node, String message) { 37 void reportSourceMessage(Source source, AstNode node, String message) {
38 SourceFile sourceFile = 38 SourceFile sourceFile =
39 new StringSourceFile.fromName(source.fullName, source.contents.data); 39 new StringSourceFile.fromName(source.fullName, source.contents.data);
40 40
41 print(sourceFile.getLocationMessage(message, node.offset, node.end)); 41 print(sourceFile.getLocationMessage(message, node.offset, node.end));
42 } 42 }
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/semantic_visitor.dart ('k') | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698