id int64 0 3.78k | code stringlengths 13 37.9k | declarations stringlengths 16 64.6k |
|---|---|---|
3,700 | (options: import("../../declarations/plugins/DllReferencePlugin").DllReferencePluginOptions) => boolean | type DllReferencePluginOptions =
| {
/**
* Context of requests in the manifest (or content property) as absolute path.
*/
context?: string;
/**
* Extensions used to resolve modules in the dll bundle (only used when using 'scope').
*/
extensions?: string[];
/**
* An object containing ... |
3,701 | (options: import("../../declarations/plugins/LoaderOptionsPlugin").LoaderOptionsPluginOptions) => boolean | interface LoaderOptionsPluginOptions {
[index: string]: any;
/**
* Whether loaders should be in debug mode or not. debug will be removed as of webpack 3.
*/
debug?: boolean;
/**
* Where loaders can be switched to minimize mode.
*/
minimize?: boolean;
/**
* A configuration object that can be used to c... |
3,702 | (options: import("../../declarations/plugins/LoaderOptionsPlugin").LoaderOptionsPluginOptions) => boolean | interface LoaderOptionsPluginOptions {
/**
* Whether loaders should be in debug mode or not. debug will be removed as of webpack 3.
*/
debug?: boolean;
/**
* Where loaders can be switched to minimize mode.
*/
minimize?: boolean;
/**
* A configuration object that can be used to configure older loaders.
... |
3,703 | (options: import("../../declarations/plugins/HashedModuleIdsPlugin").HashedModuleIdsPluginOptions) => boolean | interface HashedModuleIdsPluginOptions {
/**
* The context directory for creating names.
*/
context?: string;
/**
* The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
*/
hashDigest?: "latin1" | "hex" | "base64";
/**
* The prefix le... |
3,704 | (options: import("../../declarations/plugins/HashedModuleIdsPlugin").HashedModuleIdsPluginOptions) => boolean | interface HashedModuleIdsPluginOptions {
/**
* The context directory for creating names.
*/
context?: string;
/**
* The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
*/
hashDigest?: "hex" | "latin1" | "base64";
/**
* The prefix leng... |
3,705 | (options: import("../../declarations/plugins/WatchIgnorePlugin").WatchIgnorePluginOptions) => boolean | interface WatchIgnorePluginOptions {
/**
* A list of RegExps or absolute paths to directories or files that should be ignored.
*/
paths: (string | RegExp)[];
} |
3,706 | (options: import("../../declarations/plugins/WatchIgnorePlugin").WatchIgnorePluginOptions) => boolean | interface WatchIgnorePluginOptions {
/**
* A list of RegExps or absolute paths to directories or files that should be ignored.
*/
paths: (RegExp | string)[];
} |
3,707 | (options: import("../../declarations/plugins/BannerPlugin").BannerPluginArgument) => boolean | type BannerPluginArgument =
| string
| BannerPluginOptions
| ((data: { hash: string; chunk: Chunk; filename: string }) => string); |
3,708 | (options: import("../../declarations/plugins/BannerPlugin").BannerPluginArgument) => boolean | type BannerPluginArgument =
| string
| BannerPluginOptions
| BannerFunction; |
3,709 | (options: import("../../declarations/plugins/SourceMapDevToolPlugin").SourceMapDevToolPluginOptions) => boolean | interface SourceMapDevToolPluginOptions {
/**
* Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.
*/
append?: null | string | false;
/**
* Indicates whether column mappings should be used (de... |
3,710 | (options: import("../../declarations/plugins/SourceMapDevToolPlugin").SourceMapDevToolPluginOptions) => boolean | interface SourceMapDevToolPluginOptions {
/**
* Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.
*/
append?: (false | null) | string;
/**
* Indicates whether column mappings should be used (d... |
3,711 | (options: import("../../declarations/plugins/ProgressPlugin").ProgressPluginArgument) => boolean | type ProgressPluginArgument =
| ProgressPluginOptions
| ((percentage: number, msg: string, ...args: string[]) => void); |
3,712 | (options: import("../../declarations/plugins/ProgressPlugin").ProgressPluginArgument) => boolean | type ProgressPluginArgument = ProgressPluginOptions | HandlerFunction; |
3,713 | (options: import("../../declarations/plugins/JsonModulesPluginParser").JsonModulesPluginParserOptions) => boolean | interface JsonModulesPluginParserOptions {
/**
* Function that executes for a module source string and should return json-compatible data.
*/
parse?: (input: string) => any;
} |
3,714 | (options: import("../../declarations/plugins/DllPlugin").DllPluginOptions) => boolean | interface DllPluginOptions {
/**
* Context of requests in the manifest file (defaults to the webpack context).
*/
context?: string;
/**
* If true, only entry points will be exposed (default: true).
*/
entryOnly?: boolean;
/**
* If true, manifest json file (output) will be formatted.
*/
format?: bool... |
3,715 | (options: import("../../declarations/plugins/DllPlugin").DllPluginOptions) => boolean | interface DllPluginOptions {
/**
* Context of requests in the manifest file (defaults to the webpack context).
*/
context?: string;
/**
* If true, only entry points will be exposed (default: true).
*/
entryOnly?: boolean;
/**
* If true, manifest json file (output) will be formatted.
*/
format?: boolea... |
3,716 | (options: import("../../../declarations/plugins/sharing/ProvideSharedPlugin").ProvideSharedPluginOptions) => boolean | interface ProvideSharedPluginOptions {
/**
* Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.
*/
provides: Provides;
/**
* Share scope name used for all provided modules (defaul... |
3,717 | (options: import("../../../declarations/plugins/sharing/ProvideSharedPlugin").ProvideSharedPluginOptions) => boolean | interface ProvideSharedPluginOptions {
/**
* Modules that should be provided as shared modules to the share scope. When provided, property name is used to match modules, otherwise this is automatically inferred from share key.
*/
provides: Provides;
/**
* Share scope name used for all provided modules (default... |
3,718 | (options: import("../../../declarations/plugins/sharing/ConsumeSharedPlugin").ConsumeSharedPluginOptions) => boolean | interface ConsumeSharedPluginOptions {
/**
* Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.
*/
consumes: Consumes;
/**
* Share scope name used for all consumed modules (defaults to 'default').
*/
shareScope?: string;
... |
3,719 | (options: import("../../../declarations/plugins/sharing/ConsumeSharedPlugin").ConsumeSharedPluginOptions) => boolean | interface ConsumeSharedPluginOptions {
/**
* Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.
*/
consumes: Consumes;
/**
* Share scope name used for all consumed modules (defaults to 'default').
*/
shareScope?: string;
} |
3,720 | (options: import("../../../declarations/plugins/sharing/SharePlugin").SharePluginOptions) => boolean | interface SharePluginOptions {
/**
* Share scope name used for all shared modules (defaults to 'default').
*/
shareScope?: string;
/**
* Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
*/
shared: Shared;
} |
3,721 | (options: import("../../../declarations/plugins/sharing/SharePlugin").SharePluginOptions) => boolean | interface SharePluginOptions {
/**
* Share scope name used for all shared modules (defaults to 'default').
*/
shareScope?: string;
/**
* Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
*/
shared: Shared;
} |
3,722 | (options: import("../../../declarations/plugins/debug/ProfilingPlugin").ProfilingPluginOptions) => boolean | interface ProfilingPluginOptions {
/**
* Path to the output file e.g. `path.resolve(__dirname, 'profiling/events.json')`. Defaults to `events.json`.
*/
outputPath?: string;
} |
3,723 | (options: import("../../../declarations/plugins/debug/ProfilingPlugin").ProfilingPluginOptions) => boolean | interface ProfilingPluginOptions {
/**
* Path to the output file e.g. `path.resolve(__dirname, 'profiling/events.json')`. Defaults to `events.json`.
*/
outputPath?: string;
} |
3,724 | (options: import("../../../declarations/plugins/optimize/AggressiveSplittingPlugin").AggressiveSplittingPluginOptions) => boolean | interface AggressiveSplittingPluginOptions {
/**
* Extra cost for each chunk (Default: 9.8kiB).
*/
chunkOverhead?: number;
/**
* Extra cost multiplicator for entry chunks (Default: 10).
*/
entryChunkMultiplicator?: number;
/**
* Byte, max size of per file (Default: 50kiB).
*/
maxSize?: number;
/**... |
3,725 | (options: import("../../../declarations/plugins/optimize/AggressiveSplittingPlugin").AggressiveSplittingPluginOptions) => boolean | interface AggressiveSplittingPluginOptions {
/**
* Extra cost for each chunk (Default: 9.8kiB).
*/
chunkOverhead?: number;
/**
* Extra cost multiplicator for entry chunks (Default: 10).
*/
entryChunkMultiplicator?: number;
/**
* Byte, max size of per file (Default: 50kiB).
*/
maxSize?: number;
/**
... |
3,726 | (options: import("../../../declarations/plugins/optimize/MinChunkSizePlugin").MinChunkSizePluginOptions) => boolean | interface MinChunkSizePluginOptions {
/**
* Constant overhead for a chunk.
*/
chunkOverhead?: number;
/**
* Multiplicator for initial chunks.
*/
entryChunkMultiplicator?: number;
/**
* Minimum number of characters.
*/
minChunkSize: number;
} |
3,727 | (options: import("../../../declarations/plugins/optimize/MinChunkSizePlugin").MinChunkSizePluginOptions) => boolean | interface MinChunkSizePluginOptions {
/**
* Constant overhead for a chunk.
*/
chunkOverhead?: number;
/**
* Multiplicator for initial chunks.
*/
entryChunkMultiplicator?: number;
/**
* Minimum number of characters.
*/
minChunkSize: number;
} |
3,728 | (options: import("../../../declarations/plugins/optimize/LimitChunkCountPlugin").LimitChunkCountPluginOptions) => boolean | interface LimitChunkCountPluginOptions {
/**
* Constant overhead for a chunk.
*/
chunkOverhead?: number;
/**
* Multiplicator for initial chunks.
*/
entryChunkMultiplicator?: number;
/**
* Limit the maximum number of chunks using a value greater greater than or equal to 1.
*/
maxChunks: number;
} |
3,729 | (options: import("../../../declarations/plugins/optimize/LimitChunkCountPlugin").LimitChunkCountPluginOptions) => boolean | interface LimitChunkCountPluginOptions {
/**
* Constant overhead for a chunk.
*/
chunkOverhead?: number;
/**
* Multiplicator for initial chunks.
*/
entryChunkMultiplicator?: number;
/**
* Limit the maximum number of chunks using a value greater greater than or equal to 1.
*/
maxChunks: number;
} |
3,730 | (options: import("../../../declarations/plugins/container/ModuleFederationPlugin").ModuleFederationPluginOptions) => boolean | interface ModuleFederationPluginOptions {
/**
* Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
*/
exposes?: (string | ExposesObject)[] | ExposesObject;
/**
* The filename of the container as r... |
3,731 | (options: import("../../../declarations/plugins/container/ModuleFederationPlugin").ModuleFederationPluginOptions) => boolean | interface ModuleFederationPluginOptions {
/**
* Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
*/
exposes?: Exposes;
/**
* The filename of the container as relative path inside the `output.path... |
3,732 | (options: import("../../../declarations/plugins/container/ContainerReferencePlugin").ContainerReferencePluginOptions) => boolean | interface ContainerReferencePluginOptions {
/**
* The external type of the remote containers.
*/
remoteType: ExternalsType;
/**
* Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope i... |
3,733 | (options: import("../../../declarations/plugins/container/ContainerReferencePlugin").ContainerReferencePluginOptions) => boolean | interface ContainerReferencePluginOptions {
/**
* The external type of the remote containers.
*/
remoteType: ExternalsType;
/**
* Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is... |
3,734 | (options: import("../../../declarations/plugins/container/ContainerPlugin").ContainerPluginOptions) => boolean | interface ContainerPluginOptions {
/**
* Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
*/
exposes: Exposes;
/**
* The filename for this container relative path inside the `output.path` direct... |
3,735 | (options: import("../../../declarations/plugins/container/ContainerPlugin").ContainerPluginOptions) => boolean | interface ContainerPluginOptions {
/**
* Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
*/
exposes: Exposes;
/**
* The filename for this container relative path inside the `output.path` directo... |
3,736 | (options: import("../../../declarations/plugins/ids/OccurrenceModuleIdsPlugin").OccurrenceModuleIdsPluginOptions) => boolean | interface OccurrenceModuleIdsPluginOptions {
/**
* Prioritise initial size over total size.
*/
prioritiseInitial?: boolean;
} |
3,737 | (options: import("../../../declarations/plugins/ids/OccurrenceModuleIdsPlugin").OccurrenceModuleIdsPluginOptions) => boolean | interface OccurrenceModuleIdsPluginOptions {
/**
* Prioritise initial size over total size.
*/
prioritiseInitial?: boolean;
} |
3,738 | (options: import("../../../declarations/plugins/ids/OccurrenceChunkIdsPlugin").OccurrenceChunkIdsPluginOptions) => boolean | interface OccurrenceChunkIdsPluginOptions {
/**
* Prioritise initial size over total size.
*/
prioritiseInitial?: boolean;
} |
3,739 | (options: import("../../../declarations/plugins/ids/OccurrenceChunkIdsPlugin").OccurrenceChunkIdsPluginOptions) => boolean | interface OccurrenceChunkIdsPluginOptions {
/**
* Prioritise initial size over total size.
*/
prioritiseInitial?: boolean;
} |
3,740 | (options: import("../../../declarations/plugins/schemes/HttpUriPlugin").HttpUriPluginOptions) => boolean | type HttpUriPluginOptions = HttpUriOptions; |
3,741 | function check(wrap: NodeWrap, parent: NodeWrap | undefined, skip: NodeWrap | undefined) {
assert.strictEqual(parent === undefined, wrap.node.kind === ts.SyntaxKind.SourceFile);
assert.strictEqual(
skip === undefined,
wrap.node.kind === ts.SyntaxKind.SourceFile ||... | interface NodeWrap {
/** The real AST node. */
node: ts.Node;
/** The SyntaxKind of `node`. */
kind: ts.SyntaxKind;
/** All immediate children of `node` that would be visited by `ts.forEachChild(node, cb)`. */
children: NodeWrap[];
/** Link to the next NodeWrap, depth-first. */
next?: No... |
3,742 | function foo({bar: _bar}: Baz) {} | class Baz {
public readonly bar?: Baz;
} |
3,743 | function matchBreakOrContinue(current: ControlFlowEnd, pred: typeof isBreakOrContinueStatement) {
const result: MutableControlFlowEnd = {
statements: [],
end: current.end,
};
for (const statement of current.statements) {
if (pred(statement) && statement.label === undefined) {
... | interface ControlFlowEnd {
/**
* Statements that may end control flow at this statement.
* Does not contain control flow statements that jump only inside the statement, for example a `continue` inside a nested for loop.
*/
readonly statements: ReadonlyArray<ControlFlowStatement>;
/** `true` i... |
3,744 | function matchLabel(current: ControlFlowEnd, label: ts.Identifier) {
const result: MutableControlFlowEnd = {
statements: [],
end: current.end,
};
const labelText = label.text;
for (const statement of current.statements) {
switch (statement.kind) {
case ts.SyntaxKind.B... | interface ControlFlowEnd {
/**
* Statements that may end control flow at this statement.
* Does not contain control flow statements that jump only inside the statement, for example a `continue` inside a nested for loop.
*/
readonly statements: ReadonlyArray<ControlFlowStatement>;
/** `true` i... |
3,745 | (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,746 | (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void | interface VariableInfo {
domain: DeclarationDomain;
exported: boolean;
uses: VariableUse[];
inGlobalScope: boolean;
declarations: ts.Identifier[];
} |
3,747 | addUse(use: VariableUse, scope?: Scope): void | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,748 | addUse(use: VariableUse, scope?: Scope): void | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,749 | end(cb: VariableCallback): void | type VariableCallback = (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void; |
3,750 | public addUse(use: VariableUse) {
this._uses.push(use);
} | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,751 | public end(cb: VariableCallback) {
if (this._namespaceScopes !== undefined)
this._namespaceScopes.forEach((value) => value.finish(cb));
this._namespaceScopes = this._enumScopes = undefined;
this._applyUses();
this._variables.forEach((variable) => {
for (const decl... | type VariableCallback = (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void; |
3,752 | protected _applyUse(use: VariableUse, variables = this._variables): boolean {
const variable = variables.get(use.location.text);
if (variable === undefined || (variable.domain & use.domain) === 0)
return false;
variable.uses.push(use);
return true;
} | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,753 | protected _addUseToParent(_use: VariableUse) {} // tslint:disable-line:prefer-function-over-method | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,754 | public addUse(use: VariableUse, origin?: Scope) {
if (origin === this._innerScope)
return super.addUse(use);
return this._innerScope.addUse(use);
} | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,755 | public addUse(use: VariableUse, origin?: Scope) {
if (origin === this._innerScope)
return super.addUse(use);
return this._innerScope.addUse(use);
} | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,756 | public end(cb: VariableCallback) {
this._innerScope.end((value, key) => {
value.exported = value.exported || this._exportAll
|| this._exports !== undefined && this._exports.includes(key.text);
value.inGlobalScope = this._global;
return cb(value, key, this);
... | type VariableCallback = (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void; |
3,757 | constructor(protected _parent: Scope, protected _boundary: ScopeBoundary) {
super(false);
} | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,758 | protected _addUseToParent(use: VariableUse) {
return this._parent.addUse(use, this);
} | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,759 | constructor(parent: Scope) {
super(parent, ScopeBoundary.Function);
} | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,760 | constructor(parent: Scope) {
super(parent, ScopeBoundary.ConditionalType);
} | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,761 | public addUse(use: VariableUse) {
if (this._state === ConditionalTypeScopeState.TrueType)
return void this._uses.push(use);
return this._parent.addUse(use, this);
} | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,762 | public end(cb: VariableCallback) {
this._innerScope.end(cb);
return cb(
{
declarations: [this._name],
domain: this._domain,
exported: false,
uses: this._uses,
inGlobalScope: false,
},
this... | type VariableCallback = (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void; |
3,763 | public addUse(use: VariableUse, source?: Scope) {
if (source !== this._innerScope)
return this._innerScope.addUse(use);
if (use.domain & this._domain && use.location.text === this._name.text) {
this._uses.push(use);
} else {
return this._parent.addUse(use, thi... | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,764 | public addUse(use: VariableUse, source?: Scope) {
if (source !== this._innerScope)
return this._innerScope.addUse(use);
if (use.domain & this._domain && use.location.text === this._name.text) {
this._uses.push(use);
} else {
return this._parent.addUse(use, thi... | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,765 | constructor(private _functionScope: Scope, parent: Scope) {
super(parent, ScopeBoundary.Block);
} | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,766 | public finish(cb: VariableCallback) {
return super.end(cb);
} | type VariableCallback = (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void; |
3,767 | public end(cb: VariableCallback) {
this._innerScope.end((variable, key, scope) => {
if (scope !== this._innerScope ||
!variable.exported && (!this._ambient || this._exports !== undefined && !this._exports.has(key.text)))
return cb(variable, key, scope);
co... | type VariableCallback = (variable: VariableInfo, key: ts.Identifier, scope: Scope) => void; |
3,768 | public addUse(use: VariableUse, source?: Scope) {
if (source !== this._innerScope)
return this._innerScope.addUse(use);
this._uses.push(use);
} | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,769 | public addUse(use: VariableUse, source?: Scope) {
if (source !== this._innerScope)
return this._innerScope.addUse(use);
this._uses.push(use);
} | interface VariableUse {
domain: UsageDomain;
location: ts.Identifier;
} |
3,770 | (variable: VariableInfo, key: ts.Identifier) => {
this._result.set(key, variable);
} | interface VariableInfo {
domain: DeclarationDomain;
exported: boolean;
uses: VariableUse[];
inGlobalScope: boolean;
declarations: ts.Identifier[];
} |
3,771 | <T extends ts.Node>(node: T, scope: Scope, next: (node: T) => void = forEachChild) => {
const savedScope = this._scope;
this._scope = scope;
next(node);
this._scope.end(variableCallback);
this._scope = savedScope;
} | interface Scope {
addVariable(
identifier: string,
name: ts.PropertyName,
selector: ScopeBoundarySelector,
exported: boolean,
domain: DeclarationDomain,
): void;
addUse(use: VariableUse, scope?: Scope): void;
getVariables(): Map<string, InternalVariableInfo>;
... |
3,772 | function getWrappedNodeAtPosition(wrap: NodeWrap, pos: number): NodeWrap | undefined {
if (wrap.node.pos > pos || wrap.node.end <= pos)
return;
outer: while (true) {
for (const child of wrap.children) {
if (child.node.pos > pos)
return wrap;
if (child.node... | interface NodeWrap {
/** The real AST node. */
node: ts.Node;
/** The SyntaxKind of `node`. */
kind: ts.SyntaxKind;
/** All immediate children of `node` that would be visited by `ts.forEachChild(node, cb)`. */
children: NodeWrap[];
/** Link to the next NodeWrap, depth-first. */
next?: No... |
3,773 | function getPropertyNameOfWellKnownSymbol(node: WellKnownSymbolLiteral): PropertyName {
return {
displayName: `[Symbol.${node.name.text}]`,
symbolName: <ts.__String>('__@' + node.name.text),
};
} | interface WellKnownSymbolLiteral extends ts.PropertyAccessExpression {
expression: ts.Identifier & {text: 'Symbol', escapedText: 'symbol'};
} |
3,774 | function terserMinify(
input: Input,
sourceMap: SourceMapInput | undefined,
minimizerOptions: PredefinedOptions & CustomOptions,
extractComments: ExtractCommentsOptions | undefined
): Promise<MinimizedResult>; | type Input = import |
3,775 | function terserMinify(
input: Input,
sourceMap: SourceMapInput | undefined,
minimizerOptions: PredefinedOptions & CustomOptions,
extractComments: ExtractCommentsOptions | undefined
): Promise<MinimizedResult>; | type Input = {
[file: string]: string;
}; |
3,776 | function uglifyJsMinify(
input: Input,
sourceMap: SourceMapInput | undefined,
minimizerOptions: PredefinedOptions & CustomOptions,
extractComments: ExtractCommentsOptions | undefined
): Promise<MinimizedResult>; | type Input = import |
3,777 | function uglifyJsMinify(
input: Input,
sourceMap: SourceMapInput | undefined,
minimizerOptions: PredefinedOptions & CustomOptions,
extractComments: ExtractCommentsOptions | undefined
): Promise<MinimizedResult>; | type Input = {
[file: string]: string;
}; |
3,778 | function swcMinify(
input: Input,
sourceMap: SourceMapInput | undefined,
minimizerOptions: PredefinedOptions & CustomOptions
): Promise<MinimizedResult>; | type Input = import |
3,779 | function swcMinify(
input: Input,
sourceMap: SourceMapInput | undefined,
minimizerOptions: PredefinedOptions & CustomOptions
): Promise<MinimizedResult>; | type Input = {
[file: string]: string;
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.