7a130ccc49
TEST=Existing tests Change-Id: I0aad4deea062ba2016a8be47489ffaa970bfc03e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/174260 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
import "value_class_support_lib.dart" as val;
|
|
|
|
import "org-dartlang-testcase:///value_class_support_lib.dart";
|
|
|
|
class EmptyClass extends core::Object {
|
|
synthetic constructor •() → self::EmptyClass
|
|
: super core::Object::•()
|
|
;
|
|
operator /*isLegacy*/ ==(core::Object other) → core::bool
|
|
return other is self::EmptyClass;
|
|
get /*isLegacy*/ hashCode() → core::int
|
|
return val::JenkinsSmiHash::finish("org-dartlang-testcase:///empty.dartEmptyClass".{core::String::hashCode});
|
|
method /*isLegacy*/ toString() → core::String
|
|
return "EmptyClass()";
|
|
method /*isLegacy*/ copyWith() → dynamic
|
|
return new self::EmptyClass::•();
|
|
}
|
|
static method main() → dynamic {}
|
|
|
|
library /*isNonNullableByDefault*/;
|
|
import self as val;
|
|
import "dart:core" as core;
|
|
|
|
class JenkinsSmiHash extends core::Object {
|
|
synthetic constructor •() → val::JenkinsSmiHash
|
|
: super core::Object::•()
|
|
;
|
|
static method combine(core::int hash, core::int value) → core::int {
|
|
hash = 536870911.{core::int::&}(hash.{core::num::+}(value));
|
|
hash = 536870911.{core::int::&}(hash.{core::num::+}(524287.{core::int::&}(hash).{core::int::<<}(10)));
|
|
return hash.{core::int::^}(hash.{core::int::>>}(6));
|
|
}
|
|
static method finish(core::int hash) → core::int {
|
|
hash = 536870911.{core::int::&}(hash.{core::num::+}(67108863.{core::int::&}(hash).{core::int::<<}(3)));
|
|
hash = hash.{core::int::^}(hash.{core::int::>>}(11));
|
|
return 536870911.{core::int::&}(hash.{core::num::+}(16383.{core::int::&}(hash).{core::int::<<}(15)));
|
|
}
|
|
}
|
|
static const field core::String valueClass = #C1;
|
|
|
|
constants {
|
|
#C1 = "valueClass"
|
|
}
|