提交 3f9f9b4d 编写于 作者: J Johannes Rieken

uri - init all fields in ctor

上级 c178247f
......@@ -39,6 +39,8 @@ export default class URI {
private _path: string;
private _query: string;
private _fragment: string;
private _formatted: string;
private _fsPath: string;
constructor() {
this._scheme = URI._empty;
......@@ -46,6 +48,9 @@ export default class URI {
this._path = URI._empty;
this._query = URI._empty;
this._fragment = URI._empty;
this._formatted = null;
this._fsPath = null;
}
/**
......@@ -87,8 +92,6 @@ export default class URI {
// ---- filesystem path -----------------------
private _fsPath: string;
/**
* Returns a string representing the corresponding file system path of this URI.
* Will handle UNC paths and normalize windows drive letters to lower-case. Also
......@@ -232,8 +235,6 @@ export default class URI {
// ---- printing/externalize ---------------------------
private _formatted: string;
public toString(): string {
if (!this._formatted) {
var parts: string[] = [];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册