1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-18 03:44:05 -05:00

Run clang-format on msg.proto

This commit is contained in:
Ryan Dahl 2018-05-14 21:47:39 -04:00
parent 471a4f461a
commit 8a7ac7f4f3
4 changed files with 8 additions and 9 deletions

View file

@ -34,5 +34,6 @@ lint: node_modules
fmt: node_modules
yarn fmt
go fmt
clang-format msg.proto -i
.PHONY: lint clean distclean

View file

@ -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);
@ -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);
}

View file

@ -1,7 +1,6 @@
syntax = "proto3";
package main;
message Msg {
enum MsgKind {
START = 0;

View file

@ -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.