完成世界书、骰子、apiconfig页面处理
This commit is contained in:
10
frontend/node_modules/langium/lib/node/index.d.ts
generated
vendored
Normal file
10
frontend/node_modules/langium/lib/node/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/******************************************************************************
|
||||
* Copyright 2022 TypeFox GmbH
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the MIT License, which is available in the project root.
|
||||
*
|
||||
* @module langium/node
|
||||
*/
|
||||
export * from './node-file-system-provider.js';
|
||||
export * from './worker-thread-async-parser.js';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
18
frontend/node_modules/langium/lib/node/worker-thread-async-parser.d.ts
generated
vendored
Normal file
18
frontend/node_modules/langium/lib/node/worker-thread-async-parser.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/******************************************************************************
|
||||
* Copyright 2023 TypeFox GmbH
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the MIT License, which is available in the project root.
|
||||
******************************************************************************/
|
||||
import type { LangiumCoreServices } from '../services.js';
|
||||
import { ParserWorker } from '../parser/async-parser.js';
|
||||
import { AbstractThreadedAsyncParser } from '../parser/async-parser.js';
|
||||
import { Worker } from 'node:worker_threads';
|
||||
export declare class WorkerThreadAsyncParser extends AbstractThreadedAsyncParser {
|
||||
protected workerPath: string | (() => string);
|
||||
constructor(services: LangiumCoreServices, workerPath: string | (() => string));
|
||||
protected createWorker(): ParserWorker;
|
||||
}
|
||||
export declare class WorkerThreadParserWorker extends ParserWorker {
|
||||
constructor(worker: Worker);
|
||||
}
|
||||
//# sourceMappingURL=worker-thread-async-parser.d.ts.map
|
||||
26
frontend/node_modules/langium/lib/node/worker-thread-async-parser.js
generated
vendored
Normal file
26
frontend/node_modules/langium/lib/node/worker-thread-async-parser.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/******************************************************************************
|
||||
* Copyright 2023 TypeFox GmbH
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the MIT License, which is available in the project root.
|
||||
******************************************************************************/
|
||||
import { ParserWorker } from '../parser/async-parser.js';
|
||||
import { AbstractThreadedAsyncParser } from '../parser/async-parser.js';
|
||||
import { Worker } from 'node:worker_threads';
|
||||
export class WorkerThreadAsyncParser extends AbstractThreadedAsyncParser {
|
||||
constructor(services, workerPath) {
|
||||
super(services);
|
||||
this.workerPath = workerPath;
|
||||
}
|
||||
createWorker() {
|
||||
const path = typeof this.workerPath === 'function' ? this.workerPath() : this.workerPath;
|
||||
const worker = new Worker(path);
|
||||
const parserWorker = new WorkerThreadParserWorker(worker);
|
||||
return parserWorker;
|
||||
}
|
||||
}
|
||||
export class WorkerThreadParserWorker extends ParserWorker {
|
||||
constructor(worker) {
|
||||
super((message) => worker.postMessage(message), cb => worker.on('message', cb), cb => worker.on('error', cb), () => worker.terminate());
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=worker-thread-async-parser.js.map
|
||||
1
frontend/node_modules/langium/lib/node/worker-thread-async-parser.js.map
generated
vendored
Normal file
1
frontend/node_modules/langium/lib/node/worker-thread-async-parser.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"worker-thread-async-parser.js","sourceRoot":"","sources":["../../src/node/worker-thread-async-parser.ts"],"names":[],"mappings":"AAAA;;;;gFAIgF;AAGhF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,OAAO,uBAAwB,SAAQ,2BAA2B;IAIpE,YAAY,QAA6B,EAAE,UAAmC;QAC1E,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEkB,YAAY;QAC3B,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACzF,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;QAChC,MAAM,YAAY,GAAG,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;QAC1D,OAAO,YAAY,CAAC;IACxB,CAAC;CAEJ;AAED,MAAM,OAAO,wBAAyB,SAAQ,YAAY;IAEtD,YAAY,MAAc;QACtB,KAAK,CACD,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EACxC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,EAC9B,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,EAC5B,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,CAC3B,CAAC;IACN,CAAC;CAEJ"}
|
||||
Reference in New Issue
Block a user