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:
parent
471a4f461a
commit
8a7ac7f4f3
4 changed files with 8 additions and 9 deletions
1
Makefile
1
Makefile
|
@ -34,5 +34,6 @@ lint: node_modules
|
|||
fmt: node_modules
|
||||
yarn fmt
|
||||
go fmt
|
||||
clang-format msg.proto -i
|
||||
|
||||
.PHONY: lint clean distclean
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
syntax = "proto3";
|
||||
package main;
|
||||
|
||||
|
||||
message Msg {
|
||||
enum MsgKind {
|
||||
START = 0;
|
||||
|
|
2
util.ts
2
util.ts
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue