Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 38) sorted by relevance

12

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DnonNullReferenceMatching.ts33 props!: ComponentProps;
35 …typeof this.props.thumbYProps!.elementRef === 'function' && this.props.thumbYProps!.elementRef(ref…
36 AssertType(typeof this.props.thumbYProps!.elementRef === 'function' && this.props.thumbYProps!.elem…
37 AssertType(typeof this.props.thumbYProps!.elementRef === 'function', "boolean");
38 AssertType(typeof this.props.thumbYProps!.elementRef, "union");
39 AssertType(this.props.thumbYProps!.elementRef, "union");
40 AssertType(this.props.thumbYProps!, "ThumbProps");
41 AssertType(this.props.thumbYProps, "union");
42 AssertType(this.props, "ComponentProps");
45 AssertType(this.props.thumbYProps!.elementRef(ref), "void");
[all …]
DdestructuringInitializerContextualTypeFromContext.ts22 (props: P & { children?: any }): any | null;
31 AssertType(({ children, name = "Artemis", ...props}) => Child({name, ...props}), "(Props &…
40 ...props
41 AssertType(props, "{}");
43 }) => Child({name, ...props});
44 AssertType(Child({name, ...props}), "any");
46 AssertType({name, ...props}, "{ name: union; }");
48 AssertType(props, "{}");
52 …tType(({ children, name = "Artemis", ...props}) => `name: ${name} props: ${JSON.stringify…
61 ...props
[all …]
DgenericFunctionInference2.ts66 type HandleCreatorsFactory<T, U> = (initialProps: T) => { [P in keyof U]: (props: T) => U[P] };
68 const enhancer4 = withH((props: Props) => ({
70 AssertType(withH((props: Props) => ({ onChange: (props) => (e: any) => {}, onSubmit: (props) …
72 AssertType((props: Props) => ({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e:…
73 AssertType(props, "Props");
74 AssertType(({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e: any) => {},}), "{…
75 AssertType({ onChange: (props) => (e: any) => {}, onSubmit: (props) => (e: any) => {},}, "{ o…
77 onChange: (props) => (e: any) => {},
79 AssertType((props) => (e: any) => {}, "(Props) => (any) => void");
80 AssertType(props, "Props");
[all …]
DcomplicatedIndexesOfIntersectionsAreInferencable.ts23 validate?: (props: Values) => void;
35 AssertType(Func({ initialValues: { foo: "" }, validate: props => { props.foo…
37 AssertType({ initialValues: { foo: "" }, validate: props => { props.foo; …
48 validate: props => {
50 AssertType(props => { props.foo; }, "({ foo: string; }) => void");
51 AssertType(props, "{ foo: string; }");
53 props.foo;
54 AssertType(props.foo, "string");
DtrivialSubtypeReductionNoStructuralCheck2.ts21 declare const props: WizardStepProps;
22 AssertType(props, "WizardStepProps");
26 AssertType({ wizard: this as Wizard, ...props, } as WizardStepProps, "WizardStepProps"…
27 AssertType({ wizard: this as Wizard, ...props, }, "{ wizard: Wizard; }");
35 ...props,
36 AssertType(props, "WizardStepProps");
DvoidReturnIndexUnionInference.ts45 function bad<P extends Props>(props: Readonly<P>) {
46 safeInvoke(props.onFoo, "blah");
47 AssertType(safeInvoke(props.onFoo, "blah"), "union");
49 AssertType(props.onFoo, "union");
54 safeInvoke(props.onBar, "blah");
55 AssertType(safeInvoke(props.onBar, "blah"), "union");
57 AssertType(props.onBar, "union");
DintersectionTypeInference1.ts25 const parameterFn = (props:{store:string}) => alert(props.store)
27 AssertType((props:{store:string}) => alert(props.store), "({ store: string;}) => void");
28 AssertType(props, "{ store: string; }");
30 AssertType(alert(props.store), "void");
32 AssertType(props.store, "string");
DtypeVariableTypeGuards.ts28 constructor(public props: Readonly<P>) {} property in A
30 this.props.foo && this.props.foo()
31 AssertType(this.props.foo && this.props.foo(), "union");
32 AssertType(this.props.foo, "union");
33 AssertType(this.props, "Readonly<P>");
35 AssertType(this.props.foo(), "void");
36 AssertType(this.props.foo, "() => void");
37 AssertType(this.props, "Readonly<P>");
DintersectionOfTypeVariableHasApparentSignatures.ts22 props: Readonly<P> & Readonly<{ children?: {} }>;
32 AssertType(f({ props: { children: (({ x }) => { }) }}), "void");
34 AssertType({ props: { children: (({ x }) => { }) }}, "{ props: { children: ({ x: numbe…
36 props: {
37 AssertType(props, "{ children: ({ x: number; }) => void; }");
DthisIndexOnExistingReadonlyFieldIsNotNever.ts22 readonly props: Readonly<{ children?: unknown }> & Readonly<P>;
32 …rRef = (anchor: AnchorType<P>) => { const anchorRef = this.props.anchorRef; …
39 AssertType((anchor: AnchorType<P>) => { const anchorRef = this.props.anchorRef; …
42 const anchorRef = this.props.anchorRef;
44 AssertType(this.props.anchorRef, "union");
45 AssertType(this.props, "Readonly<{ children?: unknown; }> & Readonly<CoachMarkAnchorProps<AnchorTyp…
DdestructuringWithConstraint.ts27 function foo<P extends Props>(props: Readonly<P>) {
28 let { foo = false } = props;
31 AssertType(props, "Readonly<P>");
DvueLikeDataAndPropsInference.ts36 props?: PropsDef
51 AssertType({ props: { foo: '' }, data(): { bar: boolean } { return { …
52 AssertType(test({ props: { foo: '' }, data(): { bar: boolean } { return { …
54 props: {
55 AssertType(props, "{ foo: string; }");
DvueLikeDataAndPropsInference2.ts36 props?: PropsDef property
52 AssertType({ props: { foo: '' }, data(): { bar: boolean } { return { …
53 AssertType(test({ props: { foo: '' }, data(): { bar: boolean } { return { …
55 props: {
56 AssertType(props, "{ foo: string; }");
DdefaultDeclarationEmitNamedCorrectly.ts25 export function make<P, CTor>(x: { new (): CTor & {props: P} }): Things<P, CTor> {
35 props: Props; property in MyComponent
DoverloadedConstructorFixesInferencesAppropriately.ts35 constructor(props: string, context: any);
36 constructor(props: AsyncLoaderProps<TResult>);
DidenticalTypesNoDifferByCheckOrder.ts41 (props: P & { children?: unknown }): void;
46 (props: P & { children?: unknown }): void;
DinstantiateContextualTypes.ts50 declare class Component<P> { constructor(props: P); props: P; }
170 constructor(props: P);
174 new (props: P): Component<P>;
DgenericInferenceDefaultTypeParameter.ts28 declare function f1<T extends keyof Type = "a">(props: Type[T]): void;
DinferFromBindingPattern.ts67 declare function selectJohn<K = Person>(props?: SelectProps<Person, K>): SelectResult<Person, K>;
/arkcompiler/ets_frontend/es2panda/ir/
DastDump.h81 … Property(const char *key, std::initializer_list<Property> props) : key_(key), value_(props) {} in Property() argument
153 void Add(std::initializer_list<Property> props);
168 void AddList(T props) in AddList() argument
170 for (auto it = props.begin(); it != props.end();) { in AddList()
174 if (++it == props.end()) { in AddList()
194 void SerializePropList(std::initializer_list<AstDumper::Property> props);
DastDump.cpp42 void AstDumper::Add(std::initializer_list<AstDumper::Property> props) in Add() argument
44 AddList<std::initializer_list<AstDumper::Property>>(props); in Add()
178 void AstDumper::SerializePropList(std::initializer_list<AstDumper::Property> props) in SerializePropList() argument
180 Wrap([this, &props]() -> void { in SerializePropList()
181 for (const auto *it = props.begin(); it != props.end(); ++it) { in SerializePropList()
183 if (std::next(it) != props.end()) { in SerializePropList()
/arkcompiler/ets_frontend/test262/
Dmodule_tests.txt230 instn-star-as-props-dflt-skip.js
240 instn-star-props-circular-a_FIXTURE.js
241 instn-star-props-circular-b_FIXTURE.js
242 instn-star-props-circular.js
243 instn-star-props-dflt-keep-indirect-def_FIXTURE.js
244 instn-star-props-dflt-keep-indirect.js
245 instn-star-props-dflt-keep-indirect-reexport_FIXTURE.js
246 instn-star-props-dflt-keep-local.js
247 instn-star-props-dflt-keep-local-named_FIXTURE.js
248 instn-star-props-dflt-keep-local-prod_FIXTURE.js
[all …]
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/
Duncovered_md.rb42 def props(properties) method in UncoveredMd
Dfull_md.rb50 def props(properties) method in FullMd
/arkcompiler/runtime_core/isa/
Disapi.rb199 props = dig(:properties) || []
205 props + add_props
582 props = group.to_h
583 props.delete(:instructions)
584 props.merge(insn.to_h) do |_, old, new|

12