Skip to content

Commit

Permalink
[NTI] Clarify printed boolean types as "true" or "false" where approp…
Browse files Browse the repository at this point in the history
…riate.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155169163
  • Loading branch information
shicks authored and brad4d committed May 5, 2017
1 parent f41f38b commit 7dd6165
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/com/google/javascript/jscomp/newtypes/JSType.java
Expand Up @@ -1517,7 +1517,12 @@ private StringBuilder typeToString(StringBuilder builder) {
switch (tag) {
case TRUE_MASK:
case FALSE_MASK:
builder.append("boolean");
builder.append(
(tags & BOOLEAN_MASK) == BOOLEAN_MASK
? "boolean"
: tag == TRUE_MASK
? "true"
: "false");
tags &= ~BOOLEAN_MASK;
continue;
case NULL_MASK:
Expand Down

0 comments on commit 7dd6165

Please sign in to comment.