| /third_party/typescript/tests/baselines/reference/ |
| D | abstractPropertyNegative.errors.txt | 2 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab… 3 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab… 4 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab… 5 …actPropertyNegative.ts(13,7): error TS2515: Non-abstract class 'C' does not implement inherited ab… 6 …r/abstractPropertyNegative.ts(15,5): error TS1244: Abstract methods can only appear within an abst… 15 …/abstractPropertyNegative.ts(38,18): error TS2676: Accessors must both be abstract or non-abstract. 16 …r/abstractPropertyNegative.ts(39,9): error TS2676: Accessors must both be abstract or non-abstract. 17 …r/abstractPropertyNegative.ts(40,9): error TS2676: Accessors must both be abstract or non-abstract. 18 …/abstractPropertyNegative.ts(41,18): error TS2676: Accessors must both be abstract or non-abstract. 26 abstract class B implements A { [all …]
|
| D | classAbstractInstantiations2.errors.txt | 1 …lassAbstractInstantiations2.ts(10,1): error TS2511: Cannot create an instance of an abstract class. 3 Cannot assign an abstract constructor type to a non-abstract constructor type. 4 …lassAbstractInstantiations2.ts(17,5): error TS2511: Cannot create an instance of an abstract class. 5 …lassAbstractInstantiations2.ts(21,1): error TS2511: Cannot create an instance of an abstract class. 7 …ractInstantiations2.ts(26,7): error TS2515: Non-abstract class 'C' does not implement inherited ab… 9 …ctInstantiations2.ts(46,5): error TS2512: Overload signatures must all be abstract or non-abstract. 10 …assAbstractInstantiations2.ts(50,5): error TS1244: Abstract methods can only appear within an abst… 18 abstract class B { 20 abstract bar() : number; 25 !!! error TS2511: Cannot create an instance of an abstract class. [all …]
|
| D | classAbstractOverloads.errors.txt | 1 …sAbstractOverloads.ts(7,5): error TS2512: Overload signatures must all be abstract or non-abstract. 2 …bstractOverloads.ts(10,14): error TS2512: Overload signatures must all be abstract or non-abstract. 3 …bstractOverloads.ts(12,14): error TS2512: Overload signatures must all be abstract or non-abstract. 5 …/classAbstractOverloads.ts(20,14): error TS2516: All declarations of an abstract method must be co… 9 abstract class A { 10 abstract foo(); 11 abstract foo() : number; 12 abstract foo(); 14 abstract bar(); 17 !!! error TS2512: Overload signatures must all be abstract or non-abstract. [all …]
|
| D | classAbstractGeneric.errors.txt | 1 …assAbstractGeneric.ts(10,7): error TS2515: Non-abstract class 'C<T>' does not implement inherited … 2 …assAbstractGeneric.ts(10,7): error TS2515: Non-abstract class 'C<T>' does not implement inherited … 3 …lassAbstractGeneric.ts(12,7): error TS2515: Non-abstract class 'D' does not implement inherited ab… 4 …lassAbstractGeneric.ts(12,7): error TS2515: Non-abstract class 'D' does not implement inherited ab… 5 …assAbstractGeneric.ts(14,7): error TS2515: Non-abstract class 'E<T>' does not implement inherited … 6 …assAbstractGeneric.ts(18,7): error TS2515: Non-abstract class 'F<T>' does not implement inherited … 10 abstract class A<T> { 13 abstract foo(): T; 14 abstract bar(t: T); 17 abstract class B<T> extends A<T> {} [all …]
|
| D | classAbstractMixedWithModifiers.errors.txt | 1 …edWithModifiers.ts(6,13): error TS1243: 'private' modifier cannot be used with 'abstract' modifier. 2 …tractMixedWithModifiers.ts(8,14): error TS1029: 'public' modifier must precede 'abstract' modifier. 3 …ctMixedWithModifiers.ts(9,14): error TS1029: 'protected' modifier must precede 'abstract' modifier. 4 …dWithModifiers.ts(10,14): error TS1243: 'private' modifier cannot be used with 'abstract' modifier. 5 …edWithModifiers.ts(12,14): error TS1243: 'static' modifier cannot be used with 'abstract' modifier. 6 …edWithModifiers.ts(13,12): error TS1243: 'static' modifier cannot be used with 'abstract' modifier. 7 …xedWithModifiers.ts(15,14): error TS1243: 'async' modifier cannot be used with 'abstract' modifier. 8 …ixedWithModifiers.ts(16,5): error TS1243: 'async' modifier cannot be used with 'abstract' modifier. 12 abstract class A { 13 abstract foo_a(); [all …]
|
| D | classAbstractDeclarations.d.errors.txt | 1 …lassAbstractKeyword/classAbstractDeclarations.d.ts(2,5): error TS1242: 'abstract' modifier can onl… 3 …ractDeclarations.d.ts(11,15): error TS2515: Non-abstract class 'CC' does not implement inherited a… 4 …ractDeclarations.d.ts(13,15): error TS2515: Non-abstract class 'DD' does not implement inherited a… 5 …ractDeclarations.d.ts(17,15): error TS2515: Non-abstract class 'FF' does not implement inherited a… 9 declare abstract class A { 10 abstract constructor() {} 12 !!! error TS1242: 'abstract' modifier can only appear on a class, method, or property declaration. 17 declare abstract class AA { 18 abstract foo(); 21 declare abstract class BB extends AA {} [all …]
|
| D | classAbstractInheritance.errors.txt | 1 …AbstractInheritance.ts(13,7): error TS2515: Non-abstract class 'CC' does not implement inherited a… 2 …AbstractInheritance.ts(15,7): error TS2515: Non-abstract class 'DD' does not implement inherited a… 3 …AbstractInheritance.ts(19,7): error TS2515: Non-abstract class 'FF' does not implement inherited a… 7 abstract class A {} 9 abstract class B extends A {} 13 abstract class AA { 14 abstract foo(); 17 abstract class BB extends AA {} 21 !!! error TS2515: Non-abstract class 'CC' does not implement inherited abstract member 'foo' from c… 25 !!! error TS2515: Non-abstract class 'DD' does not implement inherited abstract member 'foo' from c… [all …]
|
| D | annotationApplicationError20.errors.txt | 2 …Annotation have to be applied only for non-abstract class declarations and method declarations in … 4 abstract class C { 7 abstract foo(); 9 …Annotation have to be applied only for non-abstract class declarations and method declarations in … 11 abstract class C { 14 abstract foo(); 20 …Annotation have to be applied only for non-abstract class declarations and method declarations in … 22 abstract foo();'. 23 …Annotation have to be applied only for non-abstract class declarations and method declarations in … 25 abstract foo();'. [all …]
|
| D | classAbstractUsingAbstractMethods2.errors.txt | 1 …stractUsingAbstractMethods2.ts(2,5): error TS1244: Abstract methods can only appear within an abst… 2 …singAbstractMethods2.ts(5,7): error TS2515: Non-abstract class 'B' does not implement inherited ab… 3 …ingAbstractMethods2.ts(21,7): error TS2515: Non-abstract class 'BB' does not implement inherited a… 8 abstract foo(); 10 !!! error TS1244: Abstract methods can only appear within an abstract class. 15 !!! error TS2515: Non-abstract class 'B' does not implement inherited abstract member 'foo' from cl… 17 abstract class C extends A {} 23 abstract class E extends A { 27 abstract class AA { 28 abstract foo(); [all …]
|
| D | mixinAbstractClasses.2.js | 6 function Mixin<TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass): TBase… 7 …at extends from a type variable containing an abstract construct signature must also be declared '… 15 abstract class AbstractBase { 16 abstract abstractBaseMethod(): void; 21 // error expected: Non-abstract class 'DerivedFromAbstract' does not implement inherited abstract m… 25 // error expected: Cannot create an instance of an abstract class. 30 …at extends from a type variable containing an abstract construct signature must also be declared '… 40 // error expected: Non-abstract class 'DerivedFromAbstract' does not implement inherited abstract m… 43 // error expected: Cannot create an instance of an abstract class. 51 … function Mixin<TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass): TBa… [all …]
|
| D | annotationApplicationError18.errors.txt | 1 …Annotation have to be applied only for non-abstract class declarations and method declarations in … 3 abstract class C { 4 abstract foo(); 6 …Annotation have to be applied only for non-abstract class declarations and method declarations in … 8 abstract class C { 9 abstract foo(); 21 …Annotation have to be applied only for non-abstract class declarations and method declarations in … 23 !!! error TS28021: abstract class C { 24 !!! error TS28021: abstract foo(); 28 …Annotation have to be applied only for non-abstract class declarations and method declarations in … [all …]
|
| D | mixinAbstractClasses.2.errors.txt | 1 …at extends from a type variable containing an abstract construct signature must also be declared '… 2 …tClasses.2.ts(21,7): error TS2515: Non-abstract class 'DerivedFromAbstract' does not implement inh… 3 …sses/mixinAbstractClasses.2.ts(25,1): error TS2511: Cannot create an instance of an abstract class. 11 …function Mixin<TBaseClass extends abstract new (...args: any) => any>(baseClass: TBaseClass): TBas… 12 …at extends from a type variable containing an abstract construct signature must also be declared '… 15 …at extends from a type variable containing an abstract construct signature must also be declared '… 22 abstract class AbstractBase { 23 abstract abstractBaseMethod(): void; 28 …// error expected: Non-abstract class 'DerivedFromAbstract' does not implement inherited abstract … 31 !!! error TS2515: Non-abstract class 'DerivedFromAbstract' does not implement inherited abstract me… [all …]
|
| D | abstractPropertyInConstructor.errors.txt | 1 tests/cases/compiler/abstractPropertyInConstructor.ts(4,24): error TS2715: Abstract property 'prop'… 2 tests/cases/compiler/abstractPropertyInConstructor.ts(7,18): error TS2715: Abstract property 'prop'… 3 tests/cases/compiler/abstractPropertyInConstructor.ts(9,14): error TS2715: Abstract property 'cb' i… 4 tests/cases/compiler/abstractPropertyInConstructor.ts(25,18): error TS2715: Abstract property 'prop… 6 tests/cases/compiler/abstractPropertyInConstructor.ts(39,22): error TS2715: Abstract property 'prop… 7 tests/cases/compiler/abstractPropertyInConstructor.ts(78,15): error TS2715: Abstract property 'x' i… 8 tests/cases/compiler/abstractPropertyInConstructor.ts(78,18): error TS2715: Abstract property 'y' i… 9 tests/cases/compiler/abstractPropertyInConstructor.ts(79,12): error TS2715: Abstract property 'x' i… 10 tests/cases/compiler/abstractPropertyInConstructor.ts(79,15): error TS2715: Abstract property 'y' i… 11 tests/cases/compiler/abstractPropertyInConstructor.ts(79,22): error TS2715: Abstract property 'y' i… [all …]
|
| D | classAbstractMergedDeclaration.errors.txt | 9 …ssAbstractMergedDeclaration.ts(31,1): error TS2511: Cannot create an instance of an abstract class. 10 …ssAbstractMergedDeclaration.ts(32,1): error TS2511: Cannot create an instance of an abstract class. 11 …ssAbstractMergedDeclaration.ts(33,1): error TS2511: Cannot create an instance of an abstract class. 12 …ssAbstractMergedDeclaration.ts(34,1): error TS2511: Cannot create an instance of an abstract class. 13 …ssAbstractMergedDeclaration.ts(35,1): error TS2511: Cannot create an instance of an abstract class. 14 …ssAbstractMergedDeclaration.ts(37,1): error TS2511: Cannot create an instance of an abstract class. 15 …ssAbstractMergedDeclaration.ts(38,1): error TS2511: Cannot create an instance of an abstract class. 16 …ssAbstractMergedDeclaration.ts(39,1): error TS2511: Cannot create an instance of an abstract class. 20 abstract class CM {} 24 abstract class MC {} [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/ |
| D | execution_plan.h | 32 class ExecutionPlan : public abstract::ExecutionPlan { 37 std::vector<abstract::Kernel *> GetKernels() override { return kernels_; } in GetKernels() 39 void SetKernels(std::vector<abstract::Kernel *> kernels) { this->kernels_ = std::move(kernels); } in SetKernels() 41 void AddKernel(abstract::Kernel *kernel) override { this->kernels_.emplace_back(kernel); } in AddKernel() 47 std::vector<abstract::Tensor *> GetInputs() override { return inputs_; } in GetInputs() 49 void SetInputs(const std::vector<abstract::Tensor *> &inputs) override { inputs_ = inputs; } in SetInputs() 51 std::vector<abstract::Tensor *> GetOutputs() override { return outputs_; } in GetOutputs() 53 void SetOutputs(const std::vector<abstract::Tensor *> &outputs) override { outputs_ = outputs; } in SetOutputs() 55 std::shared_ptr<abstract::Context> GetContext() override { return context_; } in GetContext() 57 void SetContext(std::shared_ptr<abstract::Context> context) override { context_ = context; } in SetContext() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/kernel/default/ |
| D | cnode_infer_manager.cc | 18 #include "abstract/abstract_value.h" 24 bool SetDTAndShapeFromAbTensorToLiteTensor(const AbstractBasePtr &abstract, lite::Tensor *tensor) { in SetDTAndShapeFromAbTensorToLiteTensor() argument 25 if (!utils::isa<mindspore::abstract::AbstractTensorPtr>(abstract)) { in SetDTAndShapeFromAbTensorToLiteTensor() 26 MS_LOG(ERROR) << "The abstract should be tensor, but got abstract : " << abstract; in SetDTAndShapeFromAbTensorToLiteTensor() 32 utils::cast<mindspore::abstract::AbstractTensorPtr>(abstract), &data_type, &shape_vector); in SetDTAndShapeFromAbTensorToLiteTensor() 34 MS_LOG(ERROR) << "Get dtype and shape from abstract failed, abstract : " << abstract; in SetDTAndShapeFromAbTensorToLiteTensor() 48 // sync cnode abstract info to Lite Tensor in CNodeInferShape() 49 auto abstract = cnode->abstract(); in CNodeInferShape() local 50 if (utils::isa<mindspore::abstract::AbstractSequencePtr>(abstract)) { in CNodeInferShape() 51 auto elements = utils::cast<mindspore::abstract::AbstractSequencePtr>(abstract)->elements(); in CNodeInferShape() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/graph_compiler/ |
| D | anfnode_tensor_adapter.cc | 26 using ShapePtr = mindspore::abstract::ShapePtr; 27 using AbstractBasePtr = mindspore::abstract::AbstractBasePtr; 28 using AbstractTensorPtr = mindspore::abstract::AbstractTensorPtr; 29 using AbstractSequencePtr = mindspore::abstract::AbstractSequencePtr; 35 …// MakeTuple infer is skipped in converter, so cnode->abstract is nullptr. The function can be del… in GetRealAbstract() 38 return cnode->abstract(); in GetRealAbstract() 40 std::vector<abstract::AbstractBasePtr> abstracts; in GetRealAbstract() 44 const auto &abstract = input->abstract(); in GetRealAbstract() local 45 MSLITE_CHECK_PTR_RETURN(input, abstract); in GetRealAbstract() 46 abstracts.emplace_back(abstract); in GetRealAbstract() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/core/ir/ |
| D | value_extends.cc | 21 #include "abstract/abstract_value.h" 24 using ContextPtr = abstract::AnalysisContextPtr; 26 abstract::AbstractBasePtr Scalar::ToAbstract() { in ToAbstract() 27 return std::make_shared<abstract::AbstractScalar>(shared_from_base<Value>()); in ToAbstract() 30 abstract::AbstractBasePtr StringImm::ToAbstract() { in ToAbstract() 31 …return std::make_shared<abstract::AbstractScalar>(shared_from_base<Value>(), std::make_shared<Stri… in ToAbstract() 34 abstract::AbstractBasePtr ValueAny::ToAbstract() { return std::make_shared<abstract::AbstractScalar… in ToAbstract() 36 abstract::AbstractBasePtr ValueTuple::ToAbstract() { in ToAbstract() 37 abstract::AbstractBasePtrList a_list; in ToAbstract() 42 return std::make_shared<abstract::AbstractTuple>(a_list); in ToAbstract() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/jit/ps/ |
| D | validator.cc | 38 using mindspore::abstract::AbstractBase; 39 using mindspore::abstract::AbstractFunction; 40 using mindspore::abstract::AbstractJTagged; 41 using mindspore::abstract::AbstractList; 42 using mindspore::abstract::AbstractMapTensor; 43 using mindspore::abstract::AbstractProblem; 44 using mindspore::abstract::AbstractRefTensor; 45 using mindspore::abstract::AbstractRowTensor; 46 using mindspore::abstract::AbstractScalar; 47 using mindspore::abstract::AbstractSequence; [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/core/ops/ |
| D | sparse_fill_empty_rows.cc | 24 #include "abstract/abstract_value.h" 25 #include "abstract/dshape.h" 26 #include "abstract/ops/op_infer.h" 27 #include "abstract/ops/primitive_infer_map.h" 28 #include "abstract/utils.h" 90 abstract::TupleShapePtr SparseFillEmptyRowsInferShape(const PrimitivePtr &primitive, in SparseFillEmptyRowsInferShape() 93 abstract::ShapePtr output_indices_shape; in SparseFillEmptyRowsInferShape() 94 abstract::ShapePtr output_values_shape; in SparseFillEmptyRowsInferShape() 95 abstract::ShapePtr output_empty_row_indicator_shape; in SparseFillEmptyRowsInferShape() 96 abstract::ShapePtr output_reverse_index_map_shape; in SparseFillEmptyRowsInferShape() [all …]
|
| D | coalesce.cc | 23 #include "abstract/abstract_value.h" 24 #include "abstract/dshape.h" 25 #include "abstract/ops/op_infer.h" 26 #include "abstract/ops/primitive_infer_map.h" 27 #include "abstract/utils.h" 57 abstract::TupleShapePtr CoalesceInferShape(const PrimitivePtr &primitive, in CoalesceInferShape() 65 abstract::ShapePtr y_shape_shape_list = y_shape->cast<abstract::ShapePtr>(); in CoalesceInferShape() 67 abstract::ShapePtr y_indices_shape_list = std::make_shared<abstract::Shape>(y_indices_max_shape); in CoalesceInferShape() 68 abstract::ShapePtr y_values_shape_list = std::make_shared<abstract::Shape>(y_values_max_shape); in CoalesceInferShape() 69 return std::make_shared<abstract::TupleShape>( in CoalesceInferShape() [all …]
|
| D | ragged_tensor_to_sparse.cc | 24 #include "abstract/abstract_value.h" 25 #include "abstract/dshape.h" 26 #include "abstract/ops/op_infer.h" 27 #include "abstract/ops/primitive_infer_map.h" 28 #include "abstract/utils.h" 50 abstract::TupleShapePtr RaggedTensorToSparseInferShape(const PrimitivePtr &primitive, in RaggedTensorToSparseInferShape() 53 abstract::BaseShapePtrList inputs_splits; in RaggedTensorToSparseInferShape() 55 … inputs_splits = input_args[kRttsFirstInput]->GetShape()->cast<abstract::TupleShapePtr>()->shape(); in RaggedTensorToSparseInferShape() 57 … inputs_splits = input_args[kRttsFirstInput]->GetShape()->cast<abstract::ListShapePtr>()->shape(); in RaggedTensorToSparseInferShape() 67 abstract::ShapePtr out_indices = in RaggedTensorToSparseInferShape() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/pipeline/pynative/forward/ |
| D | do_infer.cc | 32 if (abs->isa<abstract::AbstractTensor>()) { in GetInferValueFromAbstract() 33 return abs->cast<abstract::AbstractTensorPtr>()->BuildValue(); in GetInferValueFromAbstract() 34 } else if (abs->isa<abstract::AbstractSlice>()) { in GetInferValueFromAbstract() 35 return abs->cast<abstract::AbstractSlicePtr>()->BuildValue(); in GetInferValueFromAbstract() 36 } else if (abs->isa<abstract::AbstractScalar>() || abs->isa<abstract::AbstractType>()) { in GetInferValueFromAbstract() 38 } else if (abs->isa<abstract::AbstractTuple>()) { in GetInferValueFromAbstract() 39 auto tuple_abs = abs->cast<abstract::AbstractTuplePtr>(); in GetInferValueFromAbstract() 46 } else if (abs->isa<abstract::AbstractList>()) { in GetInferValueFromAbstract() 47 auto list_abs = abs->cast<abstract::AbstractListPtr>(); in GetInferValueFromAbstract() 53 } else if (abs->isa<abstract::AbstractRowTensor>()) { in GetInferValueFromAbstract() [all …]
|
| /third_party/typescript/tests/cases/fourslash/ |
| D | codeFixClassExtendAbstractGetterSetter.ts | 3 ////abstract class A { 4 //// abstract get a(): number | string; 5 //// abstract get b(): this; 6 //// abstract get c(): A; 8 //// abstract set d(arg: number | string); 9 //// abstract set e(arg: this); 10 //// abstract set f(arg: A); 12 //// abstract get g(): string; 13 //// abstract set g(newName: string); 17 ////abstract class B extends A {} [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/backend/common/session/ |
| D | py_execute_utils.cc | 134 TypeId GetTypeIdByAbstract(const AbstractBasePtr &abstract) { in GetTypeIdByAbstract() argument 135 MS_EXCEPTION_IF_NULL(abstract); in GetTypeIdByAbstract() 136 if (abstract->isa<abstract::AbstractScalar>()) { in GetTypeIdByAbstract() 137 const auto &type = abstract->BuildType(); in GetTypeIdByAbstract() 140 } else if (abstract->isa<abstract::AbstractTensor>()) { in GetTypeIdByAbstract() 141 const auto &tensor_abstract = abstract->cast<abstract::AbstractTensorPtr>(); in GetTypeIdByAbstract() 148 MS_LOG(EXCEPTION) << "Invalid abstract:" << abstract->ToString(); in GetTypeIdByAbstract() 152 bool IsValidAbstract(const abstract::AbstractBasePtr &abstract) { in IsValidAbstract() argument 153 MS_EXCEPTION_IF_NULL(abstract); in IsValidAbstract() 154 if (abstract->isa<abstract::AbstractScalar>() || abstract->isa<abstract::AbstractTensor>()) { in IsValidAbstract() [all …]
|