Searched refs:decoratorName (Results 1 – 7 of 7) sorted by relevance
| /developtools/ace_ets2bundle/compiler/src/ |
| D | process_component_member.ts | 164 private decoratorName: string; property in UpdateResult 209 public setDecoratorName(decoratorName: string) { 210 this.decoratorName = decoratorName; 250 return this.decoratorName; 334 const decoratorName: string = node.decorators[i].getText().replace(/\(.*\)$/, '').trim(); constant 335 if (decoratorName !== COMPONENT_WATCH_DECORATOR) { 336 curPropMap.set(name.escapedText.toString(), decoratorName); 338 if (BUILDIN_STYLE_NAMES.has(decoratorName.replace('@', ''))) { 341 if (decoratorName !== COMPONENT_WATCH_DECORATOR && isForbiddenUseStateType(node.type)) { 343 validateForbiddenUseStateType(name, decoratorName, node.type.typeName.getText(), log); [all …]
|
| D | validate_ui_syntax.ts | 410 const extendResult: ExtendResult = { decoratorName: '', componentName: '' }; 419 if (extendResult.decoratorName === CHECK_COMPONENT_EXTEND_DECORATOR) { 422 if (extendResult.decoratorName === CHECK_COMPONENT_ANIMATABLE_EXTEND_DECORATOR) { 444 const decoratorName: string = node.escapedText.toString(); constant 445 validateStructDecorator(sourceFileNode, node, log, structContext, decoratorName); 446 validateMethodDecorator(sourceFileNode, node, log, structContext, decoratorName); 454 structContext: boolean, decoratorName: string): void { 455 if (!structContext && STRUCT_DECORATORS.has(`@${decoratorName}`)) { 456 const message: string = `The '@${decoratorName}' decorator can only be used with 'struct'.`; 462 structContext: boolean, decoratorName: string): void { [all …]
|
| D | process_component_class.ts | 274 const decoratorName: string = decorator.getText(); constant 275 if (INNER_COMPONENT_MEMBER_DECORATORS.has(decoratorName)) { 320 let decoratorName: string; 329 decoratorName = propertyItem.decorators[i].getText().replace(/\(.*\)$/, '').trim(); 332 newType = createTypeReference(decoratorName, type, log, program); 334 newType = createTypeReferencePU(decoratorName, type, log, program); 337 decoratorName === COMPONENT_LOCAL_STORAGE_LINK_DECORATOR || 338 decoratorName === COMPONENT_LOCAL_STORAGE_PROP_DECORATOR 346 } else if (INNER_COMPONENT_MEMBER_DECORATORS.has(decoratorName) && 347 decoratorName !== COMPONENT_WATCH_DECORATOR) { [all …]
|
| D | process_ui_syntax.ts | 626 decoratorName: string): ts.FunctionDeclaration { 627 …const componentName: string = isExtendFunction(node, { decoratorName: '', componentName: '' }, tru… 631 if (decoratorName === COMPONENT_EXTEND_DECORATOR) { 652 if (decoratorName === COMPONENT_ANIMATABLE_EXTEND_DECORATOR) { 832 … if (CHECK_EXTEND_DECORATORS.includes(extendResult.decoratorName) && extendResult.componentName) { 843 extendResult.decoratorName = node.expression.escapedText.toString(); 844 if (checkArguments && CHECK_EXTEND_DECORATORS.includes(extendResult.decoratorName) && 848 message: `@${extendResult.decoratorName} should have one and only one parameter`,
|
| D | ets_checker.ts | 758 … const decoratorName: string = item.decorators[i].getText().replace(/\(.*\)$/, '').trim(); constant 759 if (INNER_COMPONENT_MEMBER_DECORATORS.has(decoratorName)) { 762 if (isDecoratorCollection(item.decorators[i], decoratorName)) { 790 compName: isExtendFunction(node, { decoratorName: '', componentName: '' })}); 901 function isDecoratorCollection(item: ts.Decorator, decoratorName: string): boolean { 902 return COMPONENT_DECORATORS_PARAMS.has(decoratorName) &&
|
| D | process_import.ts | 558 const decoratorName: ts.Identifier = node.decorators[i].expression as ts.Identifier; constant 559 if (ts.isIdentifier(decoratorName)) { 560 const name: string = decoratorName.escapedText.toString();
|
| D | utils.ts | 875 decoratorName: string; property
|