flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject [1/2] git commit: [flex-falcon] [refs/heads/develop] - MXMLWriter: only prints a warning when source maps requested
Date Wed, 13 Apr 2016 22:31:21 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 00a7085f2 -> b0fcbced0


MXMLWriter: only prints a warning when source maps requested


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/b5242218
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/b5242218
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/b5242218

Branch: refs/heads/develop
Commit: b5242218ae07926df9ebf6f6ed3e4e5b43879402
Parents: 3357a10
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Wed Apr 13 15:20:02 2016 -0700
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Wed Apr 13 15:20:02 2016 -0700

----------------------------------------------------------------------
 .../apache/flex/compiler/internal/codegen/mxml/MXMLWriter.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/b5242218/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLWriter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLWriter.java
b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLWriter.java
index afb45fd..454904d 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLWriter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/mxml/MXMLWriter.java
@@ -77,7 +77,8 @@ public class MXMLWriter extends JSWriter
 
         if (sourceMapOut != null)
         {
-            throw new UnsupportedOperationException("Source maps not supported for MXML files");
+            String fileName = new File(compilationUnit.getAbsoluteFilename()).getName();
+            System.out.println("Source map cannot be generated for '" + fileName + "'.");
         }
     }
 


Mime
View raw message