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

Side by Side Diff: pkg/csslib/lib/src/tokenkind.dart

Issue 140783013: use proper notation for true, false, and null in doc comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: long line Created 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/csslib/lib/src/analyzer.dart ('k') | pkg/csslib/pubspec.yaml » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of csslib.parser; 5 part of csslib.parser;
6 6
7 // TODO(terry): Need to be consistent with tokens either they're ASCII tokens 7 // TODO(terry): Need to be consistent with tokens either they're ASCII tokens
8 // e.g., ASTERISK or they're CSS e.g., PSEUDO, COMBINATOR_*. 8 // e.g., ASTERISK or they're CSS e.g., PSEUDO, COMBINATOR_*.
9 class TokenKind { 9 class TokenKind {
10 // Common shared tokens used in TokenizerBase. 10 // Common shared tokens used in TokenizerBase.
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 return entry['value']; 576 return entry['value'];
577 } 577 }
578 } 578 }
579 } 579 }
580 580
581 return '<BAD UNIT>'; // Not a unit token. 581 return '<BAD UNIT>'; // Not a unit token.
582 } 582 }
583 583
584 /** 584 /**
585 * Match color name, case insensitive match and return the associated color 585 * Match color name, case insensitive match and return the associated color
586 * entry from _EXTENDED_COLOR_NAMES list, return [null] if not found. 586 * entry from _EXTENDED_COLOR_NAMES list, return [:null:] if not found.
587 */ 587 */
588 static Map matchColorName(String text) { 588 static Map matchColorName(String text) {
589 var name = text.toLowerCase(); 589 var name = text.toLowerCase();
590 return _EXTENDED_COLOR_NAMES. 590 return _EXTENDED_COLOR_NAMES.
591 firstWhere((e) => e['name'] == name, orElse: () => null); 591 firstWhere((e) => e['name'] == name, orElse: () => null);
592 } 592 }
593 593
594 /** Return RGB value as [int] from a color entry in _EXTENDED_COLOR_NAMES. */ 594 /** Return RGB value as [int] from a color entry in _EXTENDED_COLOR_NAMES. */
595 static int colorValue(Map entry) { 595 static int colorValue(Map entry) {
596 assert(entry != null); 596 assert(entry != null);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 static const int EQUALS = 0x3d; // "=".codeUnitAt(0) 758 static const int EQUALS = 0x3d; // "=".codeUnitAt(0)
759 static const int OR = 0x7c; // "|".codeUnitAt(0) 759 static const int OR = 0x7c; // "|".codeUnitAt(0)
760 static const int CARET = 0x5e; // "^".codeUnitAt(0) 760 static const int CARET = 0x5e; // "^".codeUnitAt(0)
761 static const int DOLLAR = 0x24; // "\$".codeUnitAt(0) 761 static const int DOLLAR = 0x24; // "\$".codeUnitAt(0)
762 static const int LESS = 0x3c; // "<".codeUnitAt(0) 762 static const int LESS = 0x3c; // "<".codeUnitAt(0)
763 static const int BANG = 0x21; // "!".codeUnitAt(0) 763 static const int BANG = 0x21; // "!".codeUnitAt(0)
764 static const int MINUS = 0x2d; // "-".codeUnitAt(0) 764 static const int MINUS = 0x2d; // "-".codeUnitAt(0)
765 static const int BACKSLASH = 0x5c; // "\".codeUnitAt(0) 765 static const int BACKSLASH = 0x5c; // "\".codeUnitAt(0)
766 static const int AMPERSAND = 0x26; // "&".codeUnitAt(0) 766 static const int AMPERSAND = 0x26; // "&".codeUnitAt(0)
767 } 767 }
OLDNEW
« no previous file with comments | « pkg/csslib/lib/src/analyzer.dart ('k') | pkg/csslib/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698