This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
from b0bd08f5a compiler-jx: fix tests
new c99f2d12f SemanticUtils: isUnprotectedAssignmentInConditional() should
return true for any else ifs that have assignment within conditionals too
new 0f9aafa23 MethodBodySemanticChecker: similar to the warning when
assigning null to numeric of boolean, issue warning if null is returned and the
return type is numeric or boolean
new 048ac1eb2 ConstantLogic: warn when comparing a Number or int literal
to null
new 64df017d1 ConstantLogic: warn when comparing a Number or int literal
to undefined
new db16e856d ConstantLogic: null and undefined warnings for strict equals
too
new 76bfffd0d ConstantLogic: missing null and undefined warnings for
constants in not equals, strict not equals, less than, less than or equal,
greater than, or greater than or equal
new 7728ae483 ConstantLogic: fix missing warnings for boolean constant
comparison with undefined
new a238d9bc3 MethodBodySemanticChecker: add missing warning for boolean
comparison with null
new 3c1fbb0ed ConstantLogic: warning for boolean constant compared with
null
new 972cf838c ConstantLogic: optimize with an else if instead of two ifs
new b615ab469 royale.dependent.tests: fix source maps test
new f2a2a9457 implement -compiler.warn-bad-bool-assignment option
The 12 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../clients/problems/ProblemSettingsFilter.java | 2 +
.../royale/compiler/config/Configuration.java | 7 +-
.../NonBooleanUsedWhereBooleanExpectedProblem.java | 14 +-
.../mxml/sourcemaps/TestSourceMapMXMLScript.java | 8 +-
.../internal/test/RoyaleSourceMapTestBase.java | 35 +-
.../semantics/MethodBodySemanticChecker.java | 34 +-
.../compiler/internal/semantics/SemanticUtils.java | 15 +-
.../compiler/internal/as/codegen/ConstantLogic.jbg | 352 +++++++++++++++++++++
8 files changed, 445 insertions(+), 22 deletions(-)
copy
compiler/src/main/java/org/apache/royale/compiler/problems/IllegalAssignmentToClassProblem.java
=>
compiler-common/src/main/java/org/apache/royale/compiler/problems/NonBooleanUsedWhereBooleanExpectedProblem.java
(68%)