Skip to content

Commit 8fcc943

Browse files
committed
Use 'override' keywords instead of '@OverRide'
1 parent 4a51486 commit 8fcc943

78 files changed

Lines changed: 382 additions & 461 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export class ExperimentalYamlDocumenter extends YamlDocumenter {
2727
this._generateTocPointersMap(this._config.tocConfig);
2828
}
2929

30-
/** @override */
31-
protected buildYamlTocFile(apiItems: ReadonlyArray<ApiItem>): IYamlTocFile {
30+
protected override buildYamlTocFile(apiItems: ReadonlyArray<ApiItem>): IYamlTocFile {
3231
this._buildTocItems2(apiItems);
3332
return this._config.tocConfig;
3433
}

apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ export class OfficeYamlDocumenter extends YamlDocumenter {
5353
this._snippetsAll = yaml.load(snippetsContent, { filename: snippetsFilePath }) as ISnippetsFile;
5454
}
5555

56-
/** @override */
57-
public generateFiles(outputFolder: string): void {
56+
public override generateFiles(outputFolder: string): void {
5857
super.generateFiles(outputFolder);
5958

6059
// After we generate everything, check for any unused snippets
@@ -64,17 +63,15 @@ export class OfficeYamlDocumenter extends YamlDocumenter {
6463
}
6564
}
6665

67-
/** @override */
68-
protected onGetTocRoot(): IYamlTocItem {
66+
protected override onGetTocRoot(): IYamlTocItem {
6967
return {
7068
name: 'API reference',
7169
href: 'overview.md',
7270
items: []
7371
};
7472
}
7573

76-
/** @override */
77-
protected onCustomizeYamlItem(yamlItem: IYamlItem): void {
74+
protected override onCustomizeYamlItem(yamlItem: IYamlItem): void {
7875
const nameWithoutPackage: string = yamlItem.uid.replace(/^[^.]+\!/, '');
7976
if (yamlItem.summary) {
8077
yamlItem.summary = this._fixupApiSet(yamlItem.summary, yamlItem.uid);

apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ export class CustomMarkdownEmitter extends MarkdownEmitter {
4141
return super.emit(stringBuilder, docNode, options);
4242
}
4343

44-
/** @override */
45-
protected writeNode(docNode: DocNode, context: IMarkdownEmitterContext, docNodeSiblings: boolean): void {
44+
protected override writeNode(
45+
docNode: DocNode,
46+
context: IMarkdownEmitterContext,
47+
docNodeSiblings: boolean
48+
): void {
4649
const writer: IndentedWriter = context.writer;
4750

4851
switch (docNode.kind) {
@@ -156,8 +159,7 @@ export class CustomMarkdownEmitter extends MarkdownEmitter {
156159
}
157160
}
158161

159-
/** @override */
160-
protected writeLinkTagWithCodeDestination(
162+
protected override writeLinkTagWithCodeDestination(
161163
docLinkTag: DocLinkTag,
162164
context: IMarkdownEmitterContext<ICustomMarkdownEmitterOptions>
163165
): void {

apps/api-documenter/src/nodes/DocEmphasisSpan.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export class DocEmphasisSpan extends DocNodeContainer {
2727
this.italic = !!parameters.italic;
2828
}
2929

30-
/** @override */
31-
public get kind(): string {
30+
public override get kind(): string {
3231
return CustomDocNodeKind.EmphasisSpan;
3332
}
3433
}

apps/api-documenter/src/nodes/DocHeading.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ export class DocHeading extends DocNode {
3434
}
3535
}
3636

37-
/** @override */
38-
public get kind(): string {
37+
public override get kind(): string {
3938
return CustomDocNodeKind.Heading;
4039
}
4140
}

apps/api-documenter/src/nodes/DocNoteBox.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ export class DocNoteBox extends DocNode {
2121
this.content = new DocSection({ configuration: this.configuration }, sectionChildNodes);
2222
}
2323

24-
/** @override */
25-
public get kind(): string {
24+
public override get kind(): string {
2625
return CustomDocNodeKind.NoteBox;
2726
}
2827

29-
/** @override */
30-
protected onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
28+
protected override onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
3129
return [this.content];
3230
}
3331
}

apps/api-documenter/src/nodes/DocTable.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ export class DocTable extends DocNode {
5454
}
5555
}
5656

57-
/** @override */
58-
public get kind(): string {
57+
public override get kind(): string {
5958
return CustomDocNodeKind.Table;
6059
}
6160

@@ -73,8 +72,7 @@ export class DocTable extends DocNode {
7372
return row;
7473
}
7574

76-
/** @override */
77-
protected onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
75+
protected override onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
7876
return [this.header, ...this._rows];
7977
}
8078
}

apps/api-documenter/src/nodes/DocTableCell.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ export class DocTableCell extends DocNode {
2222
this.content = new DocSection({ configuration: this.configuration }, sectionChildNodes);
2323
}
2424

25-
/** @override */
26-
public get kind(): string {
25+
public override get kind(): string {
2726
return CustomDocNodeKind.TableCell;
2827
}
2928
}

apps/api-documenter/src/nodes/DocTableRow.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export class DocTableRow extends DocNode {
2828
}
2929
}
3030

31-
/** @override */
32-
public get kind(): string {
31+
public override get kind(): string {
3332
return CustomDocNodeKind.TableRow;
3433
}
3534

@@ -58,8 +57,7 @@ export class DocTableRow extends DocNode {
5857
return cell;
5958
}
6059

61-
/** @override */
62-
protected onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
60+
protected override onGetChildNodes(): ReadonlyArray<DocNode | undefined> {
6361
return this._cells;
6462
}
6563
}

apps/heft/src/configuration/HeftPluginDefinition.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,10 @@ export class HeftLifecyclePluginDefinition extends HeftPluginDefinitionBase {
337337

338338
/**
339339
* {@inheritDoc HeftPluginDefinitionBase.loadPluginAsync}
340-
* @override
341340
*/
342-
public loadPluginAsync(logger: IScopedLogger): Promise<IHeftPlugin<HeftLifecycleSession, object | void>> {
341+
public override loadPluginAsync(
342+
logger: IScopedLogger
343+
): Promise<IHeftPlugin<HeftLifecycleSession, object | void>> {
343344
return super.loadPluginAsync(logger);
344345
}
345346
}
@@ -354,9 +355,10 @@ export class HeftTaskPluginDefinition extends HeftPluginDefinitionBase {
354355

355356
/**
356357
* {@inheritDoc HeftPluginDefinitionBase.loadPluginAsync}
357-
* @override
358358
*/
359-
public loadPluginAsync(logger: IScopedLogger): Promise<IHeftPlugin<HeftTaskSession, object | void>> {
359+
public override loadPluginAsync(
360+
logger: IScopedLogger
361+
): Promise<IHeftPlugin<HeftTaskSession, object | void>> {
360362
return super.loadPluginAsync(logger);
361363
}
362364
}

0 commit comments

Comments
 (0)