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

Side by Side Diff: lib/src/project.dart

Issue 2318333002: Fix broken markdown in docs (#306). (Closed)
Patch Set: Created 4 years, 3 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 | « doc/WritingLints.MD ('k') | lib/src/rules/camel_case_types.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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:io'; 5 import 'dart:io';
6 6
7 import 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/src/generated/engine.dart'; 8 import 'package:analyzer/src/generated/engine.dart';
9 import 'package:analyzer/src/generated/resolver.dart'; 9 import 'package:analyzer/src/generated/resolver.dart';
10 import 'package:analyzer/src/generated/source.dart'; 10 import 'package:analyzer/src/generated/source.dart';
(...skipping 10 matching lines...) Expand all
21 return new Pubspec.parse(pubspec.readAsStringSync(), 21 return new Pubspec.parse(pubspec.readAsStringSync(),
22 sourceUrl: p.toUri(pubspec.path)); 22 sourceUrl: p.toUri(pubspec.path));
23 } 23 }
24 } 24 }
25 return null; 25 return null;
26 } 26 }
27 27
28 /// A semantic representation of a Dart project. 28 /// A semantic representation of a Dart project.
29 /// 29 ///
30 /// Projects provide a semantic model of a Dart project based on the 30 /// Projects provide a semantic model of a Dart project based on the
31 /// [pub package layout conventions] (https://www.dartlang.org/tools/pub/package -layout.html). 31 /// [pub package layout conventions](https://www.dartlang.org/tools/pub/package- layout.html).
32 /// This model allows clients to traverse project contents in a convenient and 32 /// This model allows clients to traverse project contents in a convenient and
33 /// standardized way, access global information (such as whether elements are 33 /// standardized way, access global information (such as whether elements are
34 /// in the "public API") and resources that have special meanings in the 34 /// in the "public API") and resources that have special meanings in the
35 /// context of pub package layout conventions. 35 /// context of pub package layout conventions.
36 class DartProject { 36 class DartProject {
37 _ApiModel _apiModel; 37 _ApiModel _apiModel;
38 String _name; 38 String _name;
39 Pubspec _pubspec; 39 Pubspec _pubspec;
40 40
41 /// Project root. 41 /// Project root.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 var library = context.computeLibraryElement(source); 120 var library = context.computeLibraryElement(source);
121 var namespaceBuilder = new NamespaceBuilder(); 121 var namespaceBuilder = new NamespaceBuilder();
122 var exports = namespaceBuilder.createExportNamespaceForLibrary(library); 122 var exports = namespaceBuilder.createExportNamespaceForLibrary(library);
123 var public = namespaceBuilder.createPublicNamespaceForLibrary(library); 123 var public = namespaceBuilder.createPublicNamespaceForLibrary(library);
124 elements.addAll(exports.definedNames.values); 124 elements.addAll(exports.definedNames.values);
125 elements.addAll(public.definedNames.values); 125 elements.addAll(public.definedNames.values);
126 } 126 }
127 } 127 }
128 } 128 }
129 } 129 }
OLDNEW
« no previous file with comments | « doc/WritingLints.MD ('k') | lib/src/rules/camel_case_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698