Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Adds error manager
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-herasme committed May 17, 2024
1 parent 46414a6 commit 0ddc3fe
Show file tree
Hide file tree
Showing 34 changed files with 591 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ out
# Nuxt.js build / generate output

.nuxt
dist


# Gatsby files

Expand Down
Binary file added bin/glslangValidatorLinux
Binary file not shown.
Binary file added bin/glslangValidatorMac
Binary file not shown.
Binary file added bin/glslangValidatorWindows.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions dist/constants.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare const VERTEX_EXTS: string[];
export declare const FRAGMENT_EXTS: string[];
//# sourceMappingURL=constants.d.ts.map
1 change: 1 addition & 0 deletions dist/constants.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions dist/error-manager.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
type ErrorData = {
line: number;
message: string;
};
export declare class ErrorManager {
static checkSource(content: string, stage: string): Promise<ErrorData[]>;
static getErrorData(row: string): {
line: number;
message: string;
};
static getStageName(filePath: string): string;
static getLinesWithErrors(data: string): string[];
static getPlatformName(): string;
}
export {};
//# sourceMappingURL=error-manager.d.ts.map
1 change: 1 addition & 0 deletions dist/error-manager.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 83 additions & 0 deletions dist/error-manager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/error-manager.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions dist/graph.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export declare class Graph<T> {
private adjList;
constructor();
addEdge(src: T, dest: T): void;
getNeighbors(node: T): T[];
private dfs;
hasCycle(): boolean;
}
//# sourceMappingURL=graph.d.ts.map
1 change: 1 addition & 0 deletions dist/graph.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions dist/graph.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/graph.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions dist/import-resolver.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Graph } from './graph';
export declare class ImportResolver {
private graph;
static resolve(filePath: string): Promise<string>;
private reserverRootFileFunctions;
buildImportGraph(filePath: string): Promise<Graph<string>>;
combineFiles(node: string, visited?: Set<string>): Promise<string>;
private fileId;
private fileIds;
private getFileId;
private reservedNames;
private getFunctionName;
private getImports;
getFileContent(filePath: string): Promise<string>;
private getAbsolutePath;
}
//# sourceMappingURL=import-resolver.d.ts.map
1 change: 1 addition & 0 deletions dist/import-resolver.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0ddc3fe

Please sign in to comment.