
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
== Why is this an issue?
|
|
|
|
Usage of statements, operators and keywords specific to ActionScript 2 does not allow to migrate to ActionScript 3. This includes "intrinsic" keyword, set variable statement and following list of operators:
|
|
|
|
* ``++<>++`` (inequality) - use ``++!=++`` instead
|
|
* ``++add++`` (concatenation (strings)) - use ``+`` instead
|
|
* ``++eq++`` (equality (strings)) - use ``++==++`` instead
|
|
* ``++ne++`` (not equal (strings)) - use ``++!=++`` instead
|
|
* ``++lt++`` (less than (strings)) - use ``++<++`` instead
|
|
* ``++le++`` (less than or equal to (strings)) - use ``++<=++`` instead
|
|
* ``++gt++`` (greater than (strings)) - use ``++>++`` instead
|
|
* ``++ge++`` (greater than or equal to (strings)) - use ``++>=++`` instead
|
|
* ``++and++`` (logical and) - use ``++&&++`` instead
|
|
* ``++or++`` (logical or) - use ``++||++`` instead
|
|
* ``++not++`` (logical not) - use ``++!++`` instead
|
|
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,flex]
|
|
----
|
|
if (true != false) { // Compliant
|
|
}
|
|
|
|
if (true <> false) { // Noncompliant
|
|
}
|
|
|
|
set("varName", value); // Noncompliant
|
|
varName = value; // Compliant
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Remove this use of "xxx".
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|