Skip to content

Commit fcfa709

Browse files
chore: Run prettier
1 parent 748c987 commit fcfa709

File tree

5 files changed

+26
-20
lines changed

5 files changed

+26
-20
lines changed

.github/workflows/pr-auditor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: pr-auditor
33
on:
44
pull_request_target:
5-
types: [ closed, edited, opened, synchronize, ready_for_review ]
5+
types: [closed, edited, opened, synchronize, ready_for_review]
66
workflow_dispatch:
77

88
jobs:

src/FileIndexer.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ export class FileIndexer {
156156
const declarations = ts.isConstructorDeclaration(node)
157157
? [node]
158158
: isDefinitionNode
159-
? // Don't emit ambiguous definition at definition-site. You can reproduce
160-
// ambiguous results by triggering "Go to definition" in VS Code on `Conflict`
161-
// in the example below:
162-
// export const Conflict = 42
163-
// export interface Conflict {}
164-
// ^^^^^^^^ "Go to definition" shows two results: const and interface.
165-
// See https://github.com/sourcegraph/scip-typescript/pull/206 for more details.
166-
[node.parent]
167-
: sym?.declarations || []
159+
? // Don't emit ambiguous definition at definition-site. You can reproduce
160+
// ambiguous results by triggering "Go to definition" in VS Code on `Conflict`
161+
// in the example below:
162+
// export const Conflict = 42
163+
// export interface Conflict {}
164+
// ^^^^^^^^ "Go to definition" shows two results: const and interface.
165+
// See https://github.com/sourcegraph/scip-typescript/pull/206 for more details.
166+
[node.parent]
167+
: sym?.declarations || []
168168
for (const declaration of declarations) {
169169
let scipSymbol = this.scipSymbol(declaration)
170170

@@ -541,10 +541,10 @@ export class FileIndexer {
541541
return ts.isConstructorDeclaration(node)
542542
? node
543543
: ts.isFunctionDeclaration(declaration)
544-
? declaration
545-
: ts.isMethodDeclaration(declaration)
546-
? declaration
547-
: undefined
544+
? declaration
545+
: ts.isMethodDeclaration(declaration)
546+
? declaration
547+
: undefined
548548
}
549549
const signature = (): string | undefined => {
550550
const signatureDeclaration = asSignatureDeclaration(node, sym)

src/Input.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { Range } from './Range'
44

55
export class Input {
66
public lines: string[]
7-
constructor(public readonly path: string, public readonly text: string) {
7+
constructor(
8+
public readonly path: string,
9+
public readonly text: string
10+
) {
811
this.lines = text.split('\n')
912
}
1013

src/Range.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import * as ts from 'typescript'
33
import { Position } from './Position'
44

55
export class Range {
6-
constructor(public readonly start: Position, public readonly end: Position) {}
6+
constructor(
7+
public readonly start: Position,
8+
public readonly end: Position
9+
) {}
710
public compare(other: Range): number {
811
const byStart = this.start.compare(other.start)
912
if (byStart !== 0) {

src/TypeScriptInternal.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export function isParameter(sym: ts.Symbol): boolean {
4848
ts.isParameter(node)
4949
? true
5050
: ts.isBindingElement(node) ||
51-
ts.isObjectBindingPattern(node) ||
52-
ts.isArrayBindingPattern(node)
53-
? false
54-
: 'quit'
51+
ts.isObjectBindingPattern(node) ||
52+
ts.isArrayBindingPattern(node)
53+
? false
54+
: 'quit'
5555
)
5656
}

0 commit comments

Comments
 (0)