Skip to content

Commit

Permalink
Run clang-format on msg.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 15, 2018
1 parent 471a4f4 commit 8a7ac7f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ lint: node_modules
fmt: node_modules
yarn fmt
go fmt
clang-format msg.proto -i

.PHONY: lint clean distclean
5 changes: 2 additions & 3 deletions compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as path from "path";
export function compile(cwd: string, inputFn: string): void {
const options: ts.CompilerOptions = {
allowJs: true,
outFile: "out.js"
outDir: "_denoCache_/",
};
const host = new CompilerHost(cwd);

Expand Down Expand Up @@ -134,8 +134,7 @@ export class CompilerHost {
onError: ((message: string) => void) | undefined,
sourceFiles: ReadonlyArray<ts.SourceFile>
): void {
log("writeFile", fileName);
log("writeFile source", data);
log("writeFile", { fileName, data });
globalEval(data);
}

Expand Down
9 changes: 4 additions & 5 deletions msg.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package main;


message Msg {
enum MsgKind {
START = 0;
Expand All @@ -12,14 +11,14 @@ message Msg {
MsgKind kind = 10;

// START
string cwd = 11;
repeated string argv = 12;
string cwd = 11;
repeated string argv = 12;

// READ_FILE_SYNC
string path = 20;
string path = 20;

// DATA_RESPONSE
bytes data = 30;
bytes data = 30;
string error = 31;

// EXIT
Expand Down
2 changes: 1 addition & 1 deletion util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const _global = globalEval("this");
const print = V8Worker2.print;

// To control internal logging output
const debug = false;
const debug = true;

// Internal logging for deno. Use the "debug" variable above to control
// output.
Expand Down

0 comments on commit 8a7ac7f

Please sign in to comment.