From f774953011cb3ad85914bc9f5f66aa121f00528d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 3 Oct 2018 21:12:23 -0400 Subject: Rename flatbuffer base.msg to base.inner This better disambiguates with the msg_generated.ts module, which in JS we call "fbs", but would be better called "msg". --- js/fileinfo.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'js/fileinfo.ts') diff --git a/js/fileinfo.ts b/js/fileinfo.ts index 44668974e..102bafb91 100644 --- a/js/fileinfo.ts +++ b/js/fileinfo.ts @@ -73,18 +73,18 @@ export class FileInfoImpl implements FileInfo { path: string | null; /* @internal */ - constructor(private _msg: fbs.StatRes) { - const modified = this._msg.modified().toFloat64(); - const accessed = this._msg.accessed().toFloat64(); - const created = this._msg.created().toFloat64(); - const hasMode = this._msg.hasMode(); - const mode = this._msg.mode(); // negative for invalid mode (Windows) - const name = this._msg.name(); - const path = this._msg.path(); + constructor(private _inner: fbs.StatRes) { + const modified = this._inner.modified().toFloat64(); + const accessed = this._inner.accessed().toFloat64(); + const created = this._inner.created().toFloat64(); + const hasMode = this._inner.hasMode(); + const mode = this._inner.mode(); // negative for invalid mode (Windows) + const name = this._inner.name(); + const path = this._inner.path(); - this._isFile = this._msg.isFile(); - this._isSymlink = this._msg.isSymlink(); - this.len = this._msg.len().toFloat64(); + this._isFile = this._inner.isFile(); + this._isSymlink = this._inner.isSymlink(); + this.len = this._inner.len().toFloat64(); this.modified = modified ? modified : null; this.accessed = accessed ? accessed : null; this.created = created ? created : null; -- cgit v1.2.3