Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Skipped
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
import type { TSESLint, TSESTree } from '@typescript-eslint/utils';
|
|
/**
|
|
* Generates report loc suitable for reporting on how a class member is
|
|
* declared, rather than how it's implemented.
|
|
*
|
|
* ```ts
|
|
* class A {
|
|
* abstract method(): void;
|
|
* ~~~~~~~~~~~~~~~
|
|
*
|
|
* concreteMethod(): void {
|
|
* ~~~~~~~~~~~~~~
|
|
* // code
|
|
* }
|
|
*
|
|
* abstract private property?: string;
|
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
*
|
|
* @decorator override concreteProperty = 'value';
|
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
* }
|
|
* ```
|
|
*/
|
|
export declare function getMemberHeadLoc(sourceCode: Readonly<TSESLint.SourceCode>, node: TSESTree.AccessorProperty | TSESTree.MethodDefinition | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractMethodDefinition | TSESTree.TSAbstractPropertyDefinition): TSESTree.SourceLocation;
|
|
/**
|
|
* Generates report loc suitable for reporting on how a parameter property is
|
|
* declared.
|
|
*
|
|
* ```ts
|
|
* class A {
|
|
* constructor(private property: string = 'value') {
|
|
* ~~~~~~~~~~~~~~~~
|
|
* }
|
|
* ```
|
|
*/
|
|
export declare function getParameterPropertyHeadLoc(sourceCode: Readonly<TSESLint.SourceCode>, node: TSESTree.TSParameterProperty, nodeName: string): TSESTree.SourceLocation;
|