Skip to content

Commit fecff86

Browse files
Release shadow version 1.7.2025112720
1 parent 7c29b02 commit fecff86

File tree

77 files changed

+4703
-3
lines changed

Some content is hidden

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

77 files changed

+4703
-3
lines changed

dist/Formatter.d.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import type { FormattingOptions } from './FormattingOptions';
2+
export declare class Formatter {
3+
/**
4+
* Construct a new formatter. The options provided here will be normalized exactly once,
5+
* and stored on the formatter instance.
6+
*/
7+
constructor(formattingOptions?: FormattingOptions);
8+
/**
9+
* The formatting options provided in the constructor. Can be undefined if none were provided
10+
*/
11+
formattingOptions?: FormattingOptions;
12+
/**
13+
* The default number of spaces when indenting with spaces
14+
*/
15+
static DEFAULT_INDENT_SPACE_COUNT: number;
16+
private formatters;
17+
/**
18+
* Format the given input.
19+
* @param inputText the text to format
20+
* @param formattingOptions options specifying formatting preferences
21+
*/
22+
format(inputText: string, formattingOptions?: FormattingOptions): string;
23+
/**
24+
* Format the given input and return the formatted text as well as a source map
25+
* @param inputText the text to format
26+
* @param sourcePath the path to the file being formatted (used for sourcemap generator)
27+
* @param formattingOptions options specifying formatting preferences
28+
* @returns an object with property `code` holding the formatted code, and `map` holding the source map.
29+
*/
30+
formatWithSourceMap(inputText: string, sourcePath: string, formattingOptions?: FormattingOptions): import("source-map").CodeWithSourceMap;
31+
/**
32+
* Format the given input.
33+
* @param inputText the text to format
34+
* @param formattingOptions options specifying formatting preferences
35+
*/
36+
getFormattedTokens(inputText: string, formattingOptions?: FormattingOptions): import("brighterscript").Token[];
37+
/**
38+
* Convert the character at the specified index to upper case
39+
* @deprecated
40+
*/
41+
upperCaseLetter: (text: string, index: number) => string;
42+
}

dist/Formatter.js

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Formatter.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Formatter.spec.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

0 commit comments

Comments
 (0)