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

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

Issue 1608993004: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/yaml@master
Patch Set: Created 4 years, 11 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 | « lib/src/style.dart ('k') | lib/src/utils.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 yaml.token;
6
7 import 'package:source_span/source_span.dart'; 5 import 'package:source_span/source_span.dart';
8 6
9 import 'style.dart'; 7 import 'style.dart';
10 8
11 /// A token emitted by a [Scanner]. 9 /// A token emitted by a [Scanner].
12 class Token { 10 class Token {
13 /// The token type. 11 /// The token type.
14 final TokenType type; 12 final TokenType type;
15 13
16 /// The span associated with the token. 14 /// The span associated with the token.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 static const ANCHOR = const TokenType._("ANCHOR"); 137 static const ANCHOR = const TokenType._("ANCHOR");
140 static const TAG = const TokenType._("TAG"); 138 static const TAG = const TokenType._("TAG");
141 static const SCALAR = const TokenType._("SCALAR"); 139 static const SCALAR = const TokenType._("SCALAR");
142 140
143 final String name; 141 final String name;
144 142
145 const TokenType._(this.name); 143 const TokenType._(this.name);
146 144
147 String toString() => name; 145 String toString() => name;
148 } 146 }
OLDNEW
« no previous file with comments | « lib/src/style.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698