Skip to content

Commit 99c3159

Browse files
committed
Doc fixes.
1 parent dd2640c commit 99c3159

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+522
-495
lines changed

ngast/lib/src/lexer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'token/tokens.dart';
77
/// Separates an Angular template into a series of lexical tokens.
88
///
99
/// ## Example use
10-
/// ```dart
10+
/// ```
1111
/// const NgLexer().tokenize('<div>Hello World!</div>');
1212
/// ```
1313
class NgLexer {

ngast/lib/src/visitors/whitespace.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'recursive.dart';
44
/// Applies whitespace reduction to implement (`preserveWhitespace: false`).
55
///
66
/// Use [visitAllRoot] to process root nodes:
7-
/// ```dart
7+
/// ```
88
/// var nodes = parse(template, sourceUrl: url);
99
/// nodes = const MinimizeWhitespaceVisitor().visitAllRoot(nodes);
1010
/// ```

ngcompiler/lib/v1/src/angular_compiler/analyzer/common.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ String? getTypeName(DartType type) {
4444
///
4545
/// For example for the following code:
4646
/// ```
47-
/// const foo = const <String>[];
48-
/// const bar = const ['A string'];
47+
/// const foo = <String>[];
48+
/// const bar = ['A string'];
4949
/// ```
5050
///
5151
/// ... both `foo` and `bar` should return the [DartType] for `String`.

ngcompiler/lib/v1/src/angular_compiler/analyzer/di/dependencies.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import 'tokens.dart';
1515
/// Support for reading and parsing a class or function's "dependencies".
1616
///
1717
/// For example, the following class and its constructor:
18-
/// ```dart
18+
/// ```
1919
/// class FooService {
2020
/// FooService(BarService barService, [@Optional() @Inject(someToken) baz]);
2121
/// }

ngcompiler/lib/v1/src/angular_compiler/analyzer/di/injector.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,13 @@ class InjectorReader {
429429

430430
/// To be implemented by an emitter class to create a `GeneratedInjector`.
431431
abstract class InjectorVisitor {
432-
/// Implement storing meta elements of this injector, such as its [name].
432+
/// Implement storing meta elements of this injector, such as its name.
433433
void visitMeta(String className, String factoryName);
434434

435435
/// Implement providing a new instance of [type], calling [constructor].
436436
///
437437
/// Any [dependencies] are expected to invoke local methods as appropriate:
438-
/// ```dart
438+
/// ```
439439
/// refer('inject').call([refer('Dep1')])
440440
/// ```
441441
void visitProvideClass(
@@ -461,7 +461,7 @@ abstract class InjectorVisitor {
461461
/// Implement providing [token] by calling [function].
462462
///
463463
/// Any [dependencies] are expected to invoke local methods as appropriate:
464-
/// ```dart
464+
/// ```
465465
/// refer('inject').call([refer('Dep1')])
466466
/// ```
467467
void visitProvideFactory(

ngcompiler/lib/v1/src/compiler/ir/model.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ class HtmlBinding implements BindingTarget {
324324
}
325325

326326
class ClassBinding implements BindingTarget {
327-
/// Name of the class binding, i.e. foo in [class.foo]='bar'.
327+
/// Name of the class binding, i.e. foo in `[class.foo]='bar'`.
328328
///
329-
/// If name is null, then we treat this as a [className]='"foo"' or
330-
/// [attr.class]='foo'.
329+
/// If name is null, then we treat this as a `[className]='"foo"'` or
330+
/// `[attr.class]='foo'`.
331331
final String? name;
332332

333333
@override

ngcompiler/lib/v1/src/compiler/template_parser/ast_template_parser.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,8 +1190,7 @@ String _getEventName(ast.EventAst event) =>
11901190

11911191
/// Visitor which filters elements that are not supported in angular templates.
11921192
class _ElementFilter extends ast.RecursiveTemplateAstVisitor<void> {
1193-
static const _securityUrl =
1194-
'https://webdev.dartlang.org/angular/guide/security';
1193+
static const _securityUrl = 'https://angulardart.xyz/guide/security';
11951194

11961195
@override
11971196
ast.ElementAst? visitElement(ast.ElementAst astNode, [_]) {

ngcompiler/lib/v1/src/compiler/view_compiler/ir/provider_source.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ abstract class ProviderSource {
2626
/// Whether a dynamic `injectorGet(...)` is required to resolve this provider.
2727
///
2828
/// For example:
29-
/// ```dart
30-
/// // DependencyService is dynamically required to resolve MyService.
31-
/// _MyService = MyService(injectorGet(DependencyService));
29+
/// ```
30+
/// // DependencyService is dynamically required to resolve MyService.
31+
/// _MyService = MyService(injectorGet(DependencyService));
3232
/// ```
3333
bool get hasDynamicDependencies => false;
3434
}

ngdart/lib/angular.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
/// * [AngularDart guide][]
1212
/// * [AngularDart cheat sheet][cheatsheet]
1313
///
14-
/// [AngularDart]: https://webdev.dartlang.org/angular
15-
/// [AngularDart guide]: https://webdev.dartlang.org/angular/guide
16-
/// [cheatsheet]: https://webdev.dartlang.org/angular/cheatsheet
14+
/// [AngularDart]: https://angulardart.xyz
15+
/// [AngularDart guide]: https://angulardart.xyz/guide
16+
/// [cheatsheet]: https://angulardart.xyz/cheatsheet
1717
1818
library;
1919

ngdart/lib/experimental.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export 'src/meta.dart' show changeDetectionLink;
2323
/// Create a root application [Injector].
2424
///
2525
/// Requires [userInjector] to provide app-level services or overrides:
26-
/// ```dart
27-
/// main() {
26+
/// ```
27+
/// void main() {
2828
/// var injector = rootInjector((parent) {
2929
/// return Injector.map({ /* ... */ }, parent);
3030
/// });

0 commit comments

Comments
 (0)