summaryrefslogtreecommitdiff
path: root/js/stat.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-03 21:18:23 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-04 00:25:55 -0400
commit818ad37678e478039a9eccf543e1049fcdf32566 (patch)
tree2f97738e66c8c0b25d7fb2caa32dcec4d4d644c4 /js/stat.ts
parentf774953011cb3ad85914bc9f5f66aa121f00528d (diff)
Rename fbs to msg.
Diffstat (limited to 'js/stat.ts')
-rw-r--r--js/stat.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/js/stat.ts b/js/stat.ts
index db1af6974..21d80dab3 100644
--- a/js/stat.ts
+++ b/js/stat.ts
@@ -1,5 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
-import * as fbs from "gen/msg_generated";
+import * as msg from "gen/msg_generated";
import { flatbuffers } from "flatbuffers";
import * as dispatch from "./dispatch";
import { assert } from "./util";
@@ -58,20 +58,20 @@ export function statSync(filename: string): FileInfo {
function req(
filename: string,
lstat: boolean
-): [flatbuffers.Builder, fbs.Any, flatbuffers.Offset] {
+): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] {
const builder = new flatbuffers.Builder();
const filename_ = builder.createString(filename);
- fbs.Stat.startStat(builder);
- fbs.Stat.addFilename(builder, filename_);
- fbs.Stat.addLstat(builder, lstat);
- const inner = fbs.Stat.endStat(builder);
- return [builder, fbs.Any.Stat, inner];
+ msg.Stat.startStat(builder);
+ msg.Stat.addFilename(builder, filename_);
+ msg.Stat.addLstat(builder, lstat);
+ const inner = msg.Stat.endStat(builder);
+ return [builder, msg.Any.Stat, inner];
}
-function res(baseRes: null | fbs.Base): FileInfo {
+function res(baseRes: null | msg.Base): FileInfo {
assert(baseRes != null);
- assert(fbs.Any.StatRes === baseRes!.innerType());
- const res = new fbs.StatRes();
+ assert(msg.Any.StatRes === baseRes!.innerType());
+ const res = new msg.StatRes();
assert(baseRes!.inner(res) != null);
return new FileInfoImpl(res);
}