@angular/compiler-cli
Advanced tools
Comparing version 4.2.0-beta.1 to 4.2.0-rc.0
@@ -5,2 +5,3 @@ "use strict"; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -7,0 +8,0 @@ * @license |
{ | ||
"name": "@angular/compiler-cli", | ||
"version": "4.2.0-beta.1", | ||
"version": "4.2.0-rc.0", | ||
"description": "Angular - the compiler CLI for Node.js", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@angular/tsc-wrapped": "4.2.0-beta.1", | ||
"@angular/tsc-wrapped": "4.2.0-rc.0", | ||
"reflect-metadata": "^0.1.2", | ||
@@ -19,4 +19,4 @@ "minimist": "^1.2.0" | ||
"typescript": "^2.0.2", | ||
"@angular/compiler": "4.2.0-beta.1", | ||
"@angular/core": "4.2.0-beta.1" | ||
"@angular/compiler": "4.2.0-rc.0", | ||
"@angular/core": "4.2.0-rc.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "repository": { |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,3 +9,3 @@ * @license | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -11,0 +12,0 @@ * Transform template html and css into executable code. |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,8 +9,13 @@ * @license | ||
*/ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tsc_wrapped_1 = require("@angular/tsc-wrapped"); | ||
@@ -16,0 +22,0 @@ var fs = require("fs"); |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,8 +9,13 @@ * @license | ||
*/ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var compiler_1 = require("@angular/compiler"); | ||
@@ -16,0 +22,0 @@ var expression_type_1 = require("./expression_type"); |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
import { AST, AstVisitor, Binary, BindingPipe, Chain, Conditional, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, PrefixNot, PropertyRead, PropertyWrite, Quote, SafeMethodCall, SafePropertyRead } from '@angular/compiler'; | ||
import { AST, AstVisitor, Binary, BindingPipe, Chain, Conditional, FunctionCall, ImplicitReceiver, Interpolation, KeyedRead, KeyedWrite, LiteralArray, LiteralMap, LiteralPrimitive, MethodCall, NonNullAssert, PrefixNot, PropertyRead, PropertyWrite, Quote, SafeMethodCall, SafePropertyRead } from '@angular/compiler'; | ||
import { Symbol, SymbolQuery, SymbolTable } from './symbols'; | ||
@@ -46,2 +46,3 @@ export interface ExpressionDiagnosticsContext { | ||
visitPrefixNot(ast: PrefixNot): Symbol; | ||
visitNonNullAssert(ast: NonNullAssert): Symbol; | ||
visitPropertyRead(ast: PropertyRead): Symbol | undefined; | ||
@@ -48,0 +49,0 @@ visitPropertyWrite(ast: PropertyWrite): Symbol; |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,3 +9,3 @@ * @license | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var compiler_1 = require("@angular/compiler"); | ||
@@ -43,2 +44,3 @@ var symbols_1 = require("./symbols"); | ||
AstType.prototype.visitBinary = function (ast) { | ||
var _this = this; | ||
// Treat undefined and null as other. | ||
@@ -53,4 +55,24 @@ function normalize(kind, other) { | ||
} | ||
var leftType = this.getType(ast.left); | ||
var rightType = this.getType(ast.right); | ||
var getType = function (ast, operation) { | ||
var type = _this.getType(ast); | ||
if (type.nullable) { | ||
switch (operation) { | ||
case '&&': | ||
case '||': | ||
case '==': | ||
case '!=': | ||
case '===': | ||
case '!==': | ||
// Nullable allowed. | ||
break; | ||
default: | ||
_this.reportError("The expression might be null", ast); | ||
break; | ||
} | ||
return _this.query.getNonNullableType(type); | ||
} | ||
return type; | ||
}; | ||
var leftType = getType(ast.left, ast.operation); | ||
var rightType = getType(ast.right, ast.operation); | ||
var leftRawKind = this.query.getTypeKind(leftType); | ||
@@ -165,2 +187,5 @@ var rightRawKind = this.query.getTypeKind(rightType); | ||
// The type of a conditional is the union of the true and false conditions. | ||
if (this.diagnostics) { | ||
compiler_1.visitAstChildren(ast, this); | ||
} | ||
return this.query.getTypeUnion(this.getType(ast.trueExp), this.getType(ast.falseExp)); | ||
@@ -277,2 +302,6 @@ }; | ||
}; | ||
AstType.prototype.visitNonNullAssert = function (ast) { | ||
var expressionType = this.getType(ast.expression); | ||
return this.query.getNonNullableType(expressionType); | ||
}; | ||
AstType.prototype.visitPropertyRead = function (ast) { | ||
@@ -279,0 +308,0 @@ return this.resolvePropertyRead(this.getType(ast.receiver), ast); |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,3 +9,3 @@ * @license | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -11,0 +12,0 @@ * An enumeration of basic types. |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,3 +9,3 @@ * @license | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fs = require("fs"); | ||
@@ -11,0 +12,0 @@ var path = require("path"); |
#!/usr/bin/env node | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("reflect-metadata"); | ||
@@ -4,0 +5,0 @@ var tsc = require("@angular/tsc-wrapped"); |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,3 +9,3 @@ * @license | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -11,0 +12,0 @@ * Extract i18n messages from source code |
#!/usr/bin/env node | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("reflect-metadata"); | ||
@@ -4,0 +5,0 @@ var tsc = require("@angular/tsc-wrapped"); |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,8 +9,13 @@ * @license | ||
*/ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -16,0 +22,0 @@ * This is a private API for the ngtools toolkit. |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,3 +9,3 @@ * @license | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -115,3 +116,8 @@ * This is a private API for the ngtools toolkit. | ||
var importedSymbols = (moduleMetadata.imports || []) | ||
.filter(function (i) { return i instanceof compiler_1.StaticSymbol; }); | ||
.filter(function (i) { return i instanceof compiler_1.StaticSymbol || i.ngModule instanceof compiler_1.StaticSymbol; }) | ||
.map(function (i) { | ||
if (i instanceof compiler_1.StaticSymbol) | ||
return i; | ||
return i.ngModule; | ||
}); | ||
return importedSymbols | ||
@@ -118,0 +124,0 @@ .reduce(function (acc, i) { |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,8 +9,13 @@ * @license | ||
*/ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path = require("path"); | ||
@@ -16,0 +22,0 @@ var ts = require("typescript"); |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/** | ||
@@ -8,3 +9,3 @@ * @license | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -19,3 +20,3 @@ * @module | ||
*/ | ||
exports.VERSION = new core_1.Version('4.2.0-beta.1'); | ||
exports.VERSION = new core_1.Version('4.2.0-rc.0'); | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
350919
3485
+ Added@angular/compiler@4.2.0-rc.0(transitive)
+ Added@angular/core@4.2.0-rc.0(transitive)
+ Added@angular/tsc-wrapped@4.2.0-rc.0(transitive)
- Removed@angular/compiler@4.2.0-beta.1(transitive)
- Removed@angular/core@4.2.0-beta.1(transitive)
- Removed@angular/tsc-wrapped@4.2.0-beta.1(transitive)