doctrine
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -0,1 +1,5 @@ | ||
v1.5.0 - October 13, 2016 | ||
* e33c6bb Update: Add support for BooleanLiteralType (#173) (Erik Arvidsson) | ||
v1.4.0 - September 13, 2016 | ||
@@ -2,0 +6,0 @@ |
@@ -46,3 +46,4 @@ /* | ||
StringLiteralType: 'StringLiteralType', | ||
NumericLiteralType: 'NumericLiteralType' | ||
NumericLiteralType: 'NumericLiteralType', | ||
BooleanLiteralType: 'BooleanLiteralType' | ||
}; | ||
@@ -887,2 +888,10 @@ | ||
if (value === 'true' || value === 'false') { | ||
consume(Token.NAME); | ||
return { | ||
type: Syntax.BooleanLiteralType, | ||
value: value === 'true' | ||
}; | ||
} | ||
context = Context.save(); | ||
@@ -1253,2 +1262,6 @@ if (value === 'function') { | ||
case Syntax.BooleanLiteralType: | ||
result = String(node.value); | ||
break; | ||
default: | ||
@@ -1255,0 +1268,0 @@ utility.throwError('Unknown type ' + node.type); |
@@ -6,3 +6,3 @@ { | ||
"main": "lib/doctrine.js", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=0.10.0" |
94162
1922