Skip to content

Commit

Permalink
Move RegionRange to private scope
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueiniquity committed Sep 15, 2017
1 parent c3f2648 commit 7781245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2037,10 +2037,6 @@ namespace ts {
end: -1;
}

export interface RegionRange extends TextRange {
name?: string;
}

// represents a top level: { type } expression in a JSDoc comment.
export interface JSDocTypeExpression extends TypeNode {
kind: SyntaxKind.JSDocTypeExpression;
Expand Down
4 changes: 4 additions & 0 deletions src/services/outliningElementsCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ namespace ts.OutliningElementsCollector {
const regionStart = new RegExp("^//\\s*#region(\\s+.*)?$");
const regionEnd = new RegExp("^//\\s*#endregion(\\s|$)");

interface RegionRange extends TextRange {
name?: string;
}

export function collectElements(sourceFile: SourceFile, cancellationToken: CancellationToken): OutliningSpan[] {
const elements: OutliningSpan[] = [];
let depth = 0;
Expand Down

0 comments on commit 7781245

Please sign in to comment.