ng-typeview
Advanced tools
Comparing version
@@ -95,6 +95,9 @@ "use strict"; | ||
} | ||
function parseArithmetic() { | ||
function parseLogicalOperator() { | ||
return keyword("&&").or(keyword("||")); | ||
} | ||
function parseBinaryOperations() { | ||
return parseString().or(parseAtom()) | ||
.chain(function (expr) { return parseArithmeticOperator() | ||
.chain(function (op) { return parseString().or(parseAtom()) | ||
.chain(function (expr) { return parseLogicalOperator().or(parseArithmeticOperator()) | ||
.chain(function (op) { return parseString().or(parseBinaryOperations()).or(parseAtom()) | ||
.map(function (expr2) { return expr + op + expr2; }); }); }); | ||
@@ -118,4 +121,4 @@ } | ||
return parseString() | ||
.or(parseArithmetic()) | ||
.or(parseTernary()) | ||
.or(parseBinaryOperations()) | ||
.or(parseAtom()); | ||
@@ -122,0 +125,0 @@ } |
@@ -116,2 +116,5 @@ "use strict"; | ||
" maxlength: number;\n" + | ||
" boolean1: boolean;\n" + | ||
" boolean2: boolean;\n" + | ||
" boolean3: boolean;\n" + | ||
" }", scopeInfo.scopeInfo.some()); | ||
@@ -118,0 +121,0 @@ assert.deepEqual(["type STR = string;", "type INT = number;"], scopeInfo.typeAliases); |
{ | ||
"name": "ng-typeview", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "library to enable type-checking of angular views when using typescript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -70,2 +70,5 @@ import * as assert from 'assert' | ||
" maxlength: number;\n" + | ||
" boolean1: boolean;\n" + | ||
" boolean2: boolean;\n" + | ||
" boolean3: boolean;\n" + | ||
" }", scopeInfo.scopeInfo.some()); | ||
@@ -72,0 +75,0 @@ assert.deepEqual(["type STR = string;", "type INT = number;"], scopeInfo.typeAliases); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
164893
0.42%2246
0.4%