-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'custom-editor-language-server-extension' into custom-ed…
…itor-vscode-client
- Loading branch information
Showing
9 changed files
with
54 additions
and
46 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/safe-ds-lang/src/language/graphical-editor/ast-parser/argument.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/safe-ds-lang/src/language/graphical-editor/ast-parser/parser.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
packages/safe-ds-lang/src/language/graphical-editor/ast-parser/segment.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/safe-ds-lang/src/language/graphical-editor/ast-parser/utils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
packages/safe-ds-lang/src/language/graphical-editor/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Call } from './ast-parser/call.js'; | ||
import { Edge } from './ast-parser/edge.js'; | ||
import { GenericExpression } from './ast-parser/expression.js'; | ||
import { Placeholder } from './ast-parser/placeholder.js'; | ||
|
||
export class Graph { | ||
constructor( | ||
public readonly type: 'segment' | 'pipeline', | ||
public readonly placeholderList: Placeholder[] = [], | ||
public readonly callList: Call[] = [], | ||
public readonly genericExpressionList: GenericExpression[] = [], | ||
public readonly edgeList: Edge[] = [], | ||
public uniquePath: string = '', | ||
public name: string = '', | ||
) {} | ||
} | ||
|
||
export class Buildin { | ||
constructor( | ||
public readonly name: string, | ||
public readonly parent: string | undefined, | ||
public readonly category: | ||
| 'DataImport' | ||
| 'DataExport' | ||
| 'DataProcessing' | ||
| 'DataExploration' | ||
| 'Modeling' | ||
| 'ModelEvaluation' | ||
| (string & Record<never, never>), | ||
) {} | ||
} | ||
|
||
export class CustomError { | ||
constructor( | ||
public readonly action: 'block' | 'notify', | ||
public readonly message: string, | ||
) {} | ||
} |