Properly inline getters; Simplify blocks when last statement returns

This commit is contained in:
dcodeIO
2018-06-22 15:26:59 +02:00
parent 525795b354
commit 7a8995b18b
75 changed files with 5090 additions and 6836 deletions

15
std/portable.d.ts vendored
View File

@ -12,6 +12,8 @@
* @module std/portable
*//***/
/// <reference no-default-lib="true"/>
// Portable types
declare type i8 = number;
@ -309,11 +311,6 @@ declare class Error {
stack: string | null;
}
declare class Symbol {
private constructor();
static readonly iterator: symbol;
}
declare class Set<T> {
constructor(entries?: T[]);
readonly size: i32;
@ -337,6 +334,14 @@ declare class Map<K,V> {
[Symbol.iterator](): Iterator<[K,V]>;
}
interface SymbolConstructor {
(description?: string | null): symbol;
for(key: string): symbol;
keyFor(sym: symbol): string | null;
readonly iterator: symbol;
}
declare const Symbol: SymbolConstructor;
interface Iterable<T> {
[Symbol.iterator](): Iterator<T>;
}