This doesnât compile correctly. Reverting.
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/253e73b5 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/253e73b5 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/253e73b5 Branch: refs/heads/feature/strand-work Commit: 253e73b5c1e5d97a4d24c8505f5b0c2b45cf4b51 Parents: 4dab422 Author: Harbs <ha...@in-tools.com> Authored: Wed Aug 2 11:45:05 2017 +0300 Committer: Harbs <ha...@in-tools.com> Committed: Wed Aug 2 11:45:05 2017 +0300 ---------------------------------------------------------------------- .../org/apache/flex/textLayout/debug/assert.as | 43 ++++++++++---------- 1 file changed, 21 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/253e73b5/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/debug/assert.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/debug/assert.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/debug/assert.as index 09b6edf..62ec778 100644 --- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/debug/assert.as +++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/debug/assert.as @@ -16,33 +16,32 @@ // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// -package org.apache.flex.textLayout.debug +package org.apache.flex.textLayout.debug { + + + + /** @private * Debug only function that prints a trace message if condition is false. * @return count of errors reported this assert: 1 or 0. * */ CONFIG::debug - { - public function assert(condition:Boolean, warning:String):int - { - if (!condition) - { - trace("ERROR: " + warning); - // throw if the bit is set - if (Debugging.throwOnAssert) - throw(new Error("TextLayoutAssert: " + warning)); - return 1; - } - return 0; - } - } - + public function assert(condition:Boolean, warning:String):int + { + if (!condition) + { + trace("ERROR: " + warning); + // throw if the bit is set + if (Debugging.throwOnAssert) + throw(new Error("TextLayoutAssert: " + warning)); + return 1; + } + return 0; + } /** @private */ - CONFIG::release - { - public function assert(condition:Boolean, warning:String):void - { - } - } + CONFIG::release + public function assert(condition:Boolean, warning:String):void + { + } } // end package