1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-03 04:48:52 -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 fmt: node_modules
yarn fmt yarn fmt
go fmt go fmt
clang-format msg.proto -i
.PHONY: lint clean distclean .PHONY: lint clean distclean

View file

@ -6,7 +6,7 @@ import * as path from "path";
export function compile(cwd: string, inputFn: string): void { export function compile(cwd: string, inputFn: string): void {
const options: ts.CompilerOptions = { const options: ts.CompilerOptions = {
allowJs: true, allowJs: true,
outFile: "out.js" outDir: "_denoCache_/",
}; };
const host = new CompilerHost(cwd); const host = new CompilerHost(cwd);
@ -134,8 +134,7 @@ export class CompilerHost {
onError: ((message: string) => void) | undefined, onError: ((message: string) => void) | undefined,
sourceFiles: ReadonlyArray<ts.SourceFile> sourceFiles: ReadonlyArray<ts.SourceFile>
): void { ): void {
log("writeFile", fileName); log("writeFile", { fileName, data });
log("writeFile source", data);
globalEval(data); globalEval(data);
} }

View file

@ -1,7 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package main; package main;
message Msg { message Msg {
enum MsgKind { enum MsgKind {
START = 0; START = 0;
@ -12,14 +11,14 @@ message Msg {
MsgKind kind = 10; MsgKind kind = 10;
// START // START
string cwd = 11; string cwd = 11;
repeated string argv = 12; repeated string argv = 12;
// READ_FILE_SYNC // READ_FILE_SYNC
string path = 20; string path = 20;
// DATA_RESPONSE // DATA_RESPONSE
bytes data = 30; bytes data = 30;
string error = 31; string error = 31;
// EXIT // EXIT

View file

@ -11,7 +11,7 @@ const _global = globalEval("this");
const print = V8Worker2.print; const print = V8Worker2.print;
// To control internal logging output // To control internal logging output
const debug = false; const debug = true;
// Internal logging for deno. Use the "debug" variable above to control // Internal logging for deno. Use the "debug" variable above to control
// output. // output.