Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc744ef9

Browse files
committed
lint
1 parentf7855ca commitc744ef9

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

‎src/compute-engine/compilation/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export * from './types';
33
export*from'./base-compiler';
44
export*from'./javascript-target';
55

6-
// Legacy exports for backward compatibility
7-
export{BaseCompilerascompile}from'./base-compiler';
6+
// Legacy exports for backward compatibility
7+
export{BaseCompilerascompile}from'./base-compiler';

‎src/compute-engine/compilation/types.ts‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,28 @@ export type CompiledFunctions = {
3838
exportinterfaceCompileTarget{
3939
/** Get operator representation for the target language */
4040
operators?:(op:MathJsonSymbol)=>[op:string,prec:number]|undefined;
41-
41+
4242
/** Get function implementation for the target language */
4343
functions?:(id:MathJsonSymbol)=>CompiledFunction|undefined;
44-
44+
4545
/** Get variable representation for the target language */
4646
var:(id:MathJsonSymbol)=>string|undefined;
47-
47+
4848
/** Format string literals for the target language */
4949
string:(str:string)=>string;
50-
50+
5151
/** Format numeric literals for the target language */
5252
number:(n:number)=>string;
53-
53+
5454
/** Format whitespace for the target language */
5555
ws:(s?:string)=>string;
56-
56+
5757
/** Code to be inserted at the beginning of the compiled output */
5858
preamble:string;
59-
59+
6060
/** Current indentation level */
6161
indent:number;
62-
62+
6363
/** Target language identifier (for debugging/logging) */
6464
language?:string;
6565
}
@@ -70,13 +70,13 @@ export interface CompileTarget {
7070
exportinterfaceLanguageTarget{
7171
/** Get the default operators for this language */
7272
getOperators():CompiledOperators;
73-
73+
7474
/** Get the default functions for this language */
7575
getFunctions():CompiledFunctions;
76-
76+
7777
/** Create a CompileTarget for this language */
7878
createTarget(options?:Partial<CompileTarget>):CompileTarget;
79-
79+
8080
/** Compile an expression to executable code in this language */
8181
compileToExecutable(
8282
expr:BoxedExpression,
@@ -90,13 +90,13 @@ export interface LanguageTarget {
9090
exportinterfaceCompilationOptions{
9191
/** Custom function implementations */
9292
functions?:Record<MathJsonSymbol,TargetSource|Function>;
93-
93+
9494
/** Variable bindings */
9595
vars?:Record<MathJsonSymbol,TargetSource>;
96-
96+
9797
/** Additional imports/libraries to include */
9898
imports?:unknown[];
99-
99+
100100
/** Additional preamble code */
101101
preamble?:string;
102102
}
@@ -107,10 +107,10 @@ export interface CompilationOptions {
107107
exportinterfaceCompiledExecutable{
108108
/** Execute the compiled code */
109109
(...args:any[]):any;
110-
110+
111111
/** Get the source code */
112112
toString():string;
113-
113+
114114
/** Flag indicating this is a compiled expression */
115115
isCompiled:true;
116-
}
116+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp