Searched refs:decoratorName (Results 1 – 7 of 7) sorted by relevance
| /developtools/ace_ets2bundle/compiler/src/ |
| D | process_component_member.ts | 168 private decoratorName: string; property in UpdateResult 213 public setDecoratorName(decoratorName: string) { 214 this.decoratorName = decoratorName; 254 return this.decoratorName; 343 const decoratorName: string = decorators[i].getText().replace(/\(.*\)$/, '').trim(); constant 344 if (decoratorName !== COMPONENT_WATCH_DECORATOR) { 345 curPropMap.set(name.escapedText.toString(), decoratorName); 347 if (BUILDIN_STYLE_NAMES.has(decoratorName.replace('@', ''))) { 350 if (decoratorName !== COMPONENT_WATCH_DECORATOR && isForbiddenUseStateType(node.type)) { 352 validateForbiddenUseStateType(name, decoratorName, node.type.typeName.getText(), log); [all …]
|
| D | validate_ui_syntax.ts | 415 const extendResult: ExtendResult = { decoratorName: '', componentName: '' }; 424 if (extendResult.decoratorName === CHECK_COMPONENT_EXTEND_DECORATOR) { 427 if (extendResult.decoratorName === CHECK_COMPONENT_ANIMATABLE_EXTEND_DECORATOR) { 449 const decoratorName: string = node.escapedText.toString(); constant 450 validateStructDecorator(sourceFileNode, node, log, structContext, decoratorName); 451 validateMethodDecorator(sourceFileNode, node, log, structContext, decoratorName); 452 validateClassDecorator(sourceFileNode, node, log, classContext, decoratorName); 461 classContext: boolean, decoratorName: string): void { 462 if (!classContext && decoratorName === CLASS_TRACK_DECORATOR) { 465 } else if ('@' + decoratorName === COMPONENT_SENDABLE_DECORATOR && [all …]
|
| D | process_component_class.ts | 374 const decoratorName: string = decorator.getText(); constant 375 if (INNER_COMPONENT_MEMBER_DECORATORS.has(decoratorName)) { 420 let decoratorName: string; 430 decoratorName = decorators[i].getText().replace(/\(.*\)$/, '').trim(); 433 newType = createTypeReference(decoratorName, type, log, program); 435 newType = createTypeReferencePU(decoratorName, type, log, program); 438 decoratorName === COMPONENT_LOCAL_STORAGE_LINK_DECORATOR || 439 decoratorName === COMPONENT_LOCAL_STORAGE_PROP_DECORATOR 447 } else if (INNER_COMPONENT_MEMBER_DECORATORS.has(decoratorName) && 448 decoratorName !== COMPONENT_WATCH_DECORATOR) { [all …]
|
| D | process_import.ts | 546 const decoratorName: ts.Expression = decorators[i].expression; constant 547 if (ts.isIdentifier(decoratorName) || ts.isCallExpression(decoratorName)) { 549 if (ts.isCallExpression(decoratorName) && ts.isIdentifier(decoratorName.expression)) { 550 name = decoratorName.expression.escapedText.toString(); 551 } else if (ts.isIdentifier(decoratorName)) { 552 name = decoratorName.escapedText.toString();
|
| D | process_ui_syntax.ts | 782 decoratorName: string): ts.FunctionDeclaration { 783 …const componentName: string = isExtendFunction(node, { decoratorName: '', componentName: '' }, tru… 787 if (decoratorName === COMPONENT_EXTEND_DECORATOR) { 808 if (decoratorName === COMPONENT_ANIMATABLE_EXTEND_DECORATOR) { 1039 … if (CHECK_EXTEND_DECORATORS.includes(extendResult.decoratorName) && extendResult.componentName) { 1050 extendResult.decoratorName = node.expression.escapedText.toString(); 1051 if (checkArguments && CHECK_EXTEND_DECORATORS.includes(extendResult.decoratorName) && 1055 message: `@${extendResult.decoratorName} should have one and only one parameter`,
|
| D | ets_checker.ts | 1045 const decoratorName: string = decorators[i].getText().replace(/\(.*\)$/, '').trim(); constant 1046 if (INNER_COMPONENT_MEMBER_DECORATORS.has(decoratorName)) { 1049 if (isDecoratorCollection(decorators[i], decoratorName)) { 1077 compName: isExtendFunction(node, { decoratorName: '', componentName: '' }) 1189 function isDecoratorCollection(item: ts.Decorator, decoratorName: string): boolean { 1190 return COMPONENT_DECORATORS_PARAMS.has(decoratorName) &&
|
| D | utils.ts | 929 decoratorName: string; property
|