Home
last modified time | relevance | path

Searched refs:AbstractClass (Results 1 – 15 of 15) sorted by relevance

/third_party/typescript/tests/baselines/reference/
DabstractPropertyInConstructor.symbols2 abstract class AbstractClass {
3 >AbstractClass : Symbol(AbstractClass, Decl(abstractPropertyInConstructor.ts, 0, 0))
5 constructor(str: string, other: AbstractClass) {
8 >AbstractClass : Symbol(AbstractClass, Decl(abstractPropertyInConstructor.ts, 0, 0))
11 >this.method : Symbol(AbstractClass.method, Decl(abstractPropertyInConstructor.ts, 20, 37))
12 >this : Symbol(AbstractClass, Decl(abstractPropertyInConstructor.ts, 0, 0))
13 >method : Symbol(AbstractClass.method, Decl(abstractPropertyInConstructor.ts, 20, 37))
20 >this.prop : Symbol(AbstractClass.prop, Decl(abstractPropertyInConstructor.ts, 17, 5))
21 >this : Symbol(AbstractClass, Decl(abstractPropertyInConstructor.ts, 0, 0))
22 >prop : Symbol(AbstractClass.prop, Decl(abstractPropertyInConstructor.ts, 17, 5))
[all …]
DabstractPropertyInConstructor.types2 abstract class AbstractClass {
3 >AbstractClass : AbstractClass
5 constructor(str: string, other: AbstractClass) {
7 >other : AbstractClass
60 >other : AbstractClass
63 >other : AbstractClass
107 abstract class DerivedAbstractClass extends AbstractClass {
109 >AbstractClass : AbstractClass
116 constructor(str: string, other: AbstractClass, yetAnother: DerivedAbstractClass) {
118 >other : AbstractClass
[all …]
DabstractPropertyInConstructor.errors.txt1 …onstructor.ts(4,24): error TS2715: Abstract property 'prop' in class 'AbstractClass' cannot be acc…
2 …onstructor.ts(7,18): error TS2715: Abstract property 'prop' in class 'AbstractClass' cannot be acc…
3 …nConstructor.ts(9,14): error TS2715: Abstract property 'cb' in class 'AbstractClass' cannot be acc…
4 …nstructor.ts(25,18): error TS2715: Abstract property 'prop' in class 'AbstractClass' cannot be acc…
6 …nstructor.ts(39,22): error TS2715: Abstract property 'prop' in class 'AbstractClass' cannot be acc…
10 abstract class AbstractClass {
11 constructor(str: string, other: AbstractClass) {
15 !!! error TS2715: Abstract property 'prop' in class 'AbstractClass' cannot be accessed in the const…
20 !!! error TS2715: Abstract property 'prop' in class 'AbstractClass' cannot be accessed in the const…
24 !!! error TS2715: Abstract property 'cb' in class 'AbstractClass' cannot be accessed in the constru…
[all …]
DabstractPropertyInConstructor.js2 abstract class AbstractClass {
3 constructor(str: string, other: AbstractClass) {
34 abstract class DerivedAbstractClass extends AbstractClass {
37 constructor(str: string, other: AbstractClass, yetAnother: DerivedAbstractClass) {
54 constructor(str: string, other: AbstractClass, yetAnother: DerivedAbstractClass) {
65 constructor(a: AbstractClass) {
90 var AbstractClass = /** @class */ (function () { class
91 function AbstractClass(str, other) { class in AbstractClass
108 AbstractClass.prototype.method2 = function () {
111 return AbstractClass;
[all …]
/third_party/typescript/tests/cases/compiler/
DabstractPropertyInConstructor.ts1 abstract class AbstractClass { class
2 constructor(str: string, other: AbstractClass) {
33 abstract class DerivedAbstractClass extends AbstractClass {
36 constructor(str: string, other: AbstractClass, yetAnother: DerivedAbstractClass) {
53 constructor(str: string, other: AbstractClass, yetAnother: DerivedAbstractClass) {
64 constructor(a: AbstractClass) {
/third_party/mindspore/tests/ut/cpp/optimizer/
Dclean_test.cc29 using mindspore::abstract::AbstractClass;
110 AbstractBasePtr abs_ptr = std::make_shared<AbstractClass>(Named("Point"), attr, methods); in TEST_F()
145 AbstractBasePtr abs_ptr = std::make_shared<AbstractClass>(Named("Point"), attr, methods); in TEST_F()
180 AbstractBasePtr abs_ptr = std::make_shared<AbstractClass>(Named("Point"), attr, methods); in TEST_F()
/third_party/mindspore/mindspore/core/abstract/
Dabstract_value.cc763 TypePtr AbstractClass::BuildType() const { in BuildType()
775 bool AbstractClass::operator==(const AbstractClass &other) const { in operator ==()
807 bool AbstractClass::operator==(const AbstractBase &other) const { in operator ==()
808 if (other.isa<AbstractClass>()) { in operator ==()
809 auto other_class = static_cast<const AbstractClass *>(&other); in operator ==()
815 AbstractBasePtr AbstractClass::GetAttribute(const std::string &name) { in GetAttribute()
824 ValuePtr AbstractClass::GetMethod(const std::string &name) { in GetMethod()
832 AbstractBasePtr AbstractClass::Clone() const { in Clone()
840 return std::make_shared<AbstractClass>(tag_, attributes_clone, methods_); in Clone()
843 AbstractBasePtr AbstractClass::Broaden() const { in Broaden()
[all …]
Dabstract_value.h452 class MS_CORE_API AbstractClass : public AbstractBase {
454 AbstractClass(const Named &tag, const std::vector<AbstractAttribute> &attributes, in AbstractClass() function
458 ~AbstractClass() override = default;
459 MS_DECLARE_PARENT(AbstractClass, AbstractBase)
462 bool operator==(const AbstractClass &other) const;
482 using AbstractClassPtr = std::shared_ptr<AbstractClass>;
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Dvalidator.cc31 using mindspore::abstract::AbstractClass;
105 if (ptrBase->isa<AbstractClass>() || ptrBase->isa<AbstractJTagged>()) { in ValidateAbstract()
/third_party/python/Lib/test/
Dtest_isinstance.py152 class AbstractClass(object): class
172 AbstractSuper = AbstractClass(bases=())
174 AbstractChild = AbstractClass(bases=(AbstractSuper,))
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/
Dclean.cc31 using mindspore::abstract::AbstractClass;
52 if (t->isa<AbstractClass>()) { in Reabs()
53 auto abs_class = dyn_cast<AbstractClass>(t); in Reabs()
119 if (!dt->isa<AbstractClass>()) { in ConvertGetAttrToTupleGetItem()
126 auto ct = dyn_cast<AbstractClass>(dt); in ConvertGetAttrToTupleGetItem()
/third_party/mindspore/tests/ut/cpp/pipeline/static_analysis/
Ddata_test.cc162 AbstractBasePtr c1 = std::make_shared<AbstractClass>(Named("Point"), attr, methods); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/frontend/operator/
Dops_front_infer_function.cc653 return std::make_shared<AbstractClass>(cls->tag(), abs_attributes, cls->methods()); in InferImplMakeRecord()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dprim.cc909 AbstractClassPtr cls = CheckArg<AbstractClass>("__FUNC__", args_spec_list, 0); in GetEvaluatedValueForClassAttrOrMethod()
1595 auto x_class = dyn_cast<AbstractClass>(x); in IsSubtypeClass()
/third_party/mindspore/mindspore/ccsrc/frontend/operator/composite/
Dcomposite.cc48 using mindspore::abstract::AbstractClass;