Deprecated old upper-case constants.

Change-Id: Ia923f953069bd41dbd5f0f3dc48aa55bad46aabd
Reviewed-on: https://dart-review.googlesource.com/45220
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
Lasse R.H. Nielsen 2018-03-06 14:17:01 +00:00 committed by commit-bot@chromium.org
parent b5b8080b2c
commit bda78a0f41
13 changed files with 593 additions and 593 deletions

View file

@ -284,7 +284,7 @@ abstract class Zone {
* desired behavior.
*/
static const Zone root = _rootZone;
/** Deprecated, use [root] instead. */
@Deprecated("Use root instead")
static const Zone ROOT = root;
/** The currently running zone. */

View file

@ -17,7 +17,7 @@ part of dart.convert;
* 0x20, 0x41, 0x53, 0x43, 0x49, 0x49, 0x21]);
*/
const AsciiCodec ascii = const AsciiCodec();
/** Deprecated, use [ascii] instead. */
@Deprecated("Use ascii instead")
const AsciiCodec ASCII = ascii;
const int _asciiMask = 0x7F;

View file

@ -18,7 +18,7 @@ part of dart.convert;
* var decoded = base64.decode("YmzDpWLDpnJncsO4ZAo=");
*/
const Base64Codec base64 = const Base64Codec();
/** Deprecated, use [base64] instead. */
@Deprecated("Use base64 instead")
const Base64Codec BASE64 = base64;
/**
@ -35,7 +35,7 @@ const Base64Codec BASE64 = base64;
* var decoded = base64Url.decode("YmzDpWLDpnJncsO4ZAo=");
*/
const Base64Codec base64Url = const Base64Codec.urlSafe();
/** Deprecated, use [base64Url] instead. */
@Deprecated("Use base64Url instead")
const Base64Codec BASE64URL = base64Url;
// Constants used in more than one class.

View file

@ -25,7 +25,7 @@ part of dart.convert;
* tag, but not inside a quoted attribute value, is still dangerous.
*/
const HtmlEscape htmlEscape = const HtmlEscape();
/** Deprecated, use [htmlEscape] instead. */
@Deprecated("Use htmlEscape instead")
const HtmlEscape HTML_ESCAPE = htmlEscape;
/**
@ -72,7 +72,7 @@ class HtmlEscapeMode {
*/
static const HtmlEscapeMode unknown =
const HtmlEscapeMode._('unknown', true, true, true, true);
/** Deprecated, use [unknown] instead. */
@Deprecated("Use unknown instead")
static const HtmlEscapeMode UNKNOWN = unknown;
/**
@ -87,7 +87,7 @@ class HtmlEscapeMode {
*/
static const HtmlEscapeMode attribute =
const HtmlEscapeMode._('attribute', true, true, false, false);
/** Deprecated, use [attribute] instead. */
@Deprecated("Use attribute instead")
static const HtmlEscapeMode ATTRIBUTE = attribute;
/**
@ -102,7 +102,7 @@ class HtmlEscapeMode {
*/
static const HtmlEscapeMode sqAttribute =
const HtmlEscapeMode._('attribute', true, false, true, false);
/** Deprecated, use [sqAttribute] instead. */
@Deprecated("Use sqAttribute instead")
static const HtmlEscapeMode SQ_ATTRIBUTE = sqAttribute;
/**
@ -116,7 +116,7 @@ class HtmlEscapeMode {
*/
static const HtmlEscapeMode element =
const HtmlEscapeMode._('element', true, false, false, false);
/** Deprecated, use [element] instead. */
@Deprecated("Use element instead")
static const HtmlEscapeMode ELEMENT = element;
const HtmlEscapeMode._(this._name, this.escapeLtGt, this.escapeQuot,

View file

@ -66,7 +66,7 @@ class JsonCyclicError extends JsonUnsupportedObjectError {
* var decoded = json.decode('["foo", { "bar": 499 }]');
*/
const JsonCodec json = const JsonCodec();
/** Deprecated, use [json] instead. */
@Deprecated("Use json instead")
const JsonCodec JSON = json;
typedef _Reviver(Object key, Object value);

View file

@ -17,7 +17,7 @@ part of dart.convert;
* 0x72, 0x67, 0x72, 0xf8, 0x64]);
*/
const Latin1Codec latin1 = const Latin1Codec();
/** Deprecated, use [latin1] instead. */
@Deprecated("Use latin1 instead")
const Latin1Codec LATIN1 = latin1;
const int _latin1Mask = 0xFF;

View file

@ -6,12 +6,12 @@ part of dart.convert;
/** The Unicode Replacement character `U+FFFD` (<28>). */
const int unicodeReplacementCharacterRune = 0xFFFD;
/** Deprecated, use [unicodeReplacementCharacterRune] instead. */
@Deprecated("Use unicodeReplacementCharacterRune instead")
const int UNICODE_REPLACEMENT_CHARACTER_RUNE = unicodeReplacementCharacterRune;
/** The Unicode Byte Order Marker (BOM) character `U+FEFF`. */
const int unicodeBomCharacterRune = 0xFEFF;
/** Deprecated, use [unicodeBomCharacterRune] instead. */
@Deprecated("Use unicodeBomCharacterRune instead")
const int UNICODE_BOM_CHARACTER_RUNE = unicodeBomCharacterRune;
/**
@ -27,7 +27,7 @@ const int UNICODE_BOM_CHARACTER_RUNE = unicodeBomCharacterRune;
* 0x72, 0x67, 0x72, 0xc3, 0xb8, 0x64]);
*/
const Utf8Codec utf8 = const Utf8Codec();
/** Deprecated, use [Utf8Codec] instead. */
@Deprecated("Use Utf8Codec instead")
const Utf8Codec UTF8 = utf8;
/**

View file

@ -131,21 +131,21 @@ class DateTime implements Comparable<DateTime> {
static const int sunday = 7;
static const int daysPerWeek = 7;
/** Deprecated, use [monday] instead. */
@Deprecated("Use monday instead")
static const int MONDAY = monday;
/** Deprecated, use [tuesday] instead. */
@Deprecated("Use tuesday instead")
static const int TUESDAY = tuesday;
/** Deprecated, use [wednesday] instead. */
@Deprecated("Use wednesday instead")
static const int WEDNESDAY = wednesday;
/** Deprecated, use [thursday] instead. */
@Deprecated("Use thursday instead")
static const int THURSDAY = thursday;
/** Deprecated, use [friday] instead. */
@Deprecated("Use friday instead")
static const int FRIDAY = friday;
/** Deprecated, use [saturday] instead. */
@Deprecated("Use saturday instead")
static const int SATURDAY = saturday;
/** Deprecated, use [sunday] instead. */
@Deprecated("Use sunday instead")
static const int SUNDAY = sunday;
/** Deprecated, use [daysPerWeek] instead. */
@Deprecated("Use daysPerWeek instead")
static const int DAYS_PER_WEEK = daysPerWeek;
// Month constants that are returned by the [month] getter.
@ -163,31 +163,31 @@ class DateTime implements Comparable<DateTime> {
static const int december = 12;
static const int monthsPerYear = 12;
/** Deprecated, use [january] instead. */
@Deprecated("Use january instead")
static const int JANUARY = january;
/** Deprecated, use [february] instead. */
@Deprecated("Use february instead")
static const int FEBRUARY = february;
/** Deprecated, use [march] instead. */
@Deprecated("Use march instead")
static const int MARCH = march;
/** Deprecated, use [april] instead. */
@Deprecated("Use april instead")
static const int APRIL = april;
/** Deprecated, use [may] instead. */
@Deprecated("Use may instead")
static const int MAY = may;
/** Deprecated, use [june] instead. */
@Deprecated("Use june instead")
static const int JUNE = june;
/** Deprecated, use [july] instead. */
@Deprecated("Use july instead")
static const int JULY = july;
/** Deprecated, use [august] instead. */
@Deprecated("Use august instead")
static const int AUGUST = august;
/** Deprecated, use [september] instead. */
@Deprecated("Use september instead")
static const int SEPTEMBER = september;
/** Deprecated, use [october] instead. */
@Deprecated("Use october instead")
static const int OCTOBER = october;
/** Deprecated, use [november] instead. */
@Deprecated("Use november instead")
static const int NOVEMBER = november;
/** Deprecated, use [december] instead. */
@Deprecated("Use december instead")
static const int DECEMBER = december;
/** Deprecated, use [monthsPerYear] instead. */
@Deprecated("Use monthsPerYear instead")
static const int MONTHS_PER_YEAR = monthsPerYear;
/**

View file

@ -23,19 +23,19 @@ part of dart.core;
* double.
*/
abstract class double extends num {
/** Deprecated, use [nan] instead. */
@Deprecated("Use nan instead")
static const double NAN = nan;
static const double nan = 0.0 / 0.0;
/** Deprecated, use [infinity] instead. */
@Deprecated("Use infinity instead")
static const double INFINITY = infinity;
static const double infinity = 1.0 / 0.0;
/** Deprecated, use [negativeInfinity] instead. */
@Deprecated("Use negativeInfinity instead")
static const double NEGATIVE_INFINITY = negativeInfinity;
static const double negativeInfinity = -infinity;
/** Deprecated, use [minPositive] instead. */
@Deprecated("Use minPositive instead")
static const double MIN_POSITIVE = minPositive;
static const double minPositive = 5e-324;
/** Deprecated, use [maxFinite] instead. */
@Deprecated("Use maxFinite instead")
static const double MAX_FINITE = maxFinite;
static const double maxFinite = 1.7976931348623157e+308;

View file

@ -76,37 +76,37 @@ class Duration implements Comparable<Duration> {
static const Duration zero = const Duration(seconds: 0);
/** Deprecated, use [microsecondsPerMillisecond] instead. */
@Deprecated("Use microsecondsPerMillisecond instead")
static const int MICROSECONDS_PER_MILLISECOND = microsecondsPerMillisecond;
/** Deprecated, use [millisecondsPerSecond] instead. */
@Deprecated("Use millisecondsPerSecond instead")
static const int MILLISECONDS_PER_SECOND = millisecondsPerSecond;
/** Deprecated, use [secondsPerMinute] instead. */
@Deprecated("Use secondsPerMinute instead")
static const int SECONDS_PER_MINUTE = secondsPerMinute;
/** Deprecated, use [minutesPerHour] instead. */
@Deprecated("Use minutesPerHour instead")
static const int MINUTES_PER_HOUR = minutesPerHour;
/** Deprecated, use [hoursPerDay] instead. */
@Deprecated("Use hoursPerDay instead")
static const int HOURS_PER_DAY = hoursPerDay;
/** Deprecated, use [microsecondsPerSecond] instead. */
@Deprecated("Use microsecondsPerSecond instead")
static const int MICROSECONDS_PER_SECOND = microsecondsPerSecond;
/** Deprecated, use [microsecondsPerMinute] instead. */
@Deprecated("Use microsecondsPerMinute instead")
static const int MICROSECONDS_PER_MINUTE = microsecondsPerMinute;
/** Deprecated, use [microsecondsPerHour] instead. */
@Deprecated("Use microsecondsPerHour instead")
static const int MICROSECONDS_PER_HOUR = microsecondsPerHour;
/** Deprecated, use [microsecondsPerDay] instead. */
@Deprecated("Use microsecondsPerDay instead")
static const int MICROSECONDS_PER_DAY = microsecondsPerDay;
/** Deprecated, use [millisecondsPerMinute] instead. */
@Deprecated("Use millisecondsPerMinute instead")
static const int MILLISECONDS_PER_MINUTE = millisecondsPerMinute;
/** Deprecated, use [millisecondsPerHour] instead. */
@Deprecated("Use millisecondsPerHour instead")
static const int MILLISECONDS_PER_HOUR = millisecondsPerHour;
/** Deprecated, use [millisecondsPerDay] instead. */
@Deprecated("Use millisecondsPerDay instead")
static const int MILLISECONDS_PER_DAY = millisecondsPerDay;
/** Deprecated, use [secondsPerHour] instead. */
@Deprecated("Use secondsPerHour instead")
static const int SECONDS_PER_HOUR = secondsPerHour;
/** Deprecated, use [secondsPerDay] instead. */
@Deprecated("Use secondsPerDay instead")
static const int SECONDS_PER_DAY = secondsPerDay;
/** Deprecated, use [minutesPerDay] instead. */
@Deprecated("Use minutesPerDay instead")
static const int MINUTES_PER_DAY = minutesPerDay;
/** Deprecated, use [zero] instead. */
@Deprecated("Use zero instead")
static const Duration ZERO = zero;
/*

View file

@ -68,11 +68,11 @@ class IsolateSpawnException implements Exception {
class Isolate {
/** Argument to `ping` and `kill`: Ask for immediate action. */
static const int immediate = 0;
/** Deprecated. Use [immediate] instead. */
@Deprecated("Use immediate instead")
static const int IMMEDIATE = immediate;
/** Argument to `ping` and `kill`: Ask for action before the next event. */
static const int beforeNextEvent = 1;
/** Deprecated. Use [beforeNextEvent] instead. */
@Deprecated("Use beforeNextEvent instead")
static const int BEFORE_NEXT_EVENT = beforeNextEvent;
/**

View file

@ -66,21 +66,21 @@ const double sqrt1_2 = 0.7071067811865476;
*/
const double sqrt2 = 1.4142135623730951;
/** Deprecated, use [e] instead. */
@Deprecated("Use e instead")
const double E = e;
/** Deprecated, use [ln10] instead. */
@Deprecated("Use ln10 instead")
const double LN10 = ln10;
/** Deprecated, use [ln2] instead. */
@Deprecated("Use ln2 instead")
const double LN2 = ln2;
/** Deprecated, use [log2e] instead. */
@Deprecated("Use log2e instead")
const double LOG2E = log2e;
/** Deprecated, use [log10e] instead. */
@Deprecated("Use log10e instead")
const double LOG10E = log10e;
/** Deprecated, use [pi] instead. */
@Deprecated("Use pi instead")
const double PI = pi;
/** Deprecated, use [sqrt1_2] instead. */
@Deprecated("Use sqrt1_2 instead")
const double SQRT1_2 = sqrt1_2;
/** Deprecated, use [sqrt2] instead. */
@Deprecated("Use sqrt2 instead")
const double SQRT2 = sqrt2;
/**

File diff suppressed because it is too large Load diff