Package flex2.compiler.util

Examples of flex2.compiler.util.LineNumberMap


        }
    }

    public void logDebug(String path, int line, int col, String debug)
    {
        LineNumberMap map = null;
        if ((map = matchPath(path)) != null)
        {
            if (isUserDefined(map, line))
            {
                original.logDebug(map.getOldName(), map.get(line), debug);
            }
            else
            {
                original.logDebug(path, line, col, debug);
            }
View Full Code Here


        }
    }

    public void logWarning(String path, int line, int col, String warning)
    {
        LineNumberMap map = null;
        if ((map = matchPath(path)) != null)
        {
            if (isUserDefined(map, line))
            {
                original.logWarning(map.getOldName(), map.get(line), warning);
            }
            else
            {
                original.logWarning(path, line, col, warning);
            }
View Full Code Here

        }
    }

    public void logError(String path, int line, int col, String error)
    {
        LineNumberMap map = null;
        if ((map = matchPath(path)) != null)
        {
            if (isUserDefined(map, line))
            {
                original.logError(map.getOldName(), map.get(line), error);
            }
            else
            {
                original.logError(path, line, col, error);
            }
View Full Code Here

    public void logWarning(String path, int line, int col, String warning, String source)
    {
        warning = mapRenamedVariables(warning);

        LineNumberMap map = null;
        if ((map = matchPath(path)) != null)
        {
            if (isUserDefined(map, line))
            {
                if (messages == null)
                {
                    messages = new HashMap<String, String>();
                }

                String key = map.getOldName() + map.get(line);
                if (!warning.equals(messages.get(key)))
                {
                    original.logWarning(map.getOldName(), map.get(line), warning);
                    messages.put(key, warning);
                }
            }
            else
            {
View Full Code Here

  public void logWarning(String path, int line, int col, String warning, String source, int errorCode)
  {
      warning = mapRenamedVariables(warning);

      LineNumberMap map = null;
      if ((map = matchPath(path)) != null)
      {
          if (isUserDefined(map, line))
          {
              if (messages == null)
              {
                  messages = new HashMap<String, String>();
              }

              String key = map.getOldName() + map.get(line);
              if (!warning.equals(messages.get(key)))
              {
                  original.logWarning(map.getOldName(), map.get(line), warning, errorCode);
                  messages.put(key, warning);
              }
          }
          else
          {
View Full Code Here

      }
  }

    public void logError(String path, int line, int col, String error, String source)
    {
        LineNumberMap map = null;
        if ((map = matchPath(path)) != null)
        {
            if (isUserDefined(map, line))
            {
                if (messages == null)
                {
                    messages = new HashMap<String, String>();
                }

                String key = map.getOldName() + map.get(line);
                if (!error.equals(messages.get(key)))
                {
                    //  don't pass source from "new" file; force logger to look up "old" line
                    original.logError(map.getOldName(), map.get(line), error);
                    messages.put(key, error);
                }
            }
            else
            {
View Full Code Here

        }
    }

  public void logError(String path, int line, int col, String error, String source, int errorCode)
  {
      LineNumberMap map = null;
      if ((map = matchPath(path)) != null)
      {
          if (isUserDefined(map, line))
          {
              if (messages == null)
              {
                  messages = new HashMap<String, String>();
              }

              String key = map.getOldName() + map.get(line);
              if (!error.equals(messages.get(key)))
              {
                  //  don't pass source from "new" file; force logger to look up "old" line
                  original.logError(map.getOldName(), map.get(line), error, errorCode);
                  messages.put(key, error);
              }
          }
          else
          {
View Full Code Here

    }

  public void log( ILocalizableMessage m, String source)
  {
      // C: If we encounter the asserts, we'll have to fix ILocalizableMessage.
      LineNumberMap map = null;
      if ((map = matchPath(m.getPath())) != null)
      {
          if (isUserDefined(map, m.getLine()))
          {
              m.setPath( map.getOldName() );
              m.setLine( map.get( m.getLine() ) );
              m.setColumn(-1);
            source = null;
          }
          else
          {
View Full Code Here

      return map;
    }

    for (int i = 0, size = extras == null ? 0 : extras.size(); i < size; i++)
    {
      LineNumberMap m = extras.get(i);
      if (m.getNewName().equals(path))
      {
        return m;
      }
    }
View Full Code Here

        }
       
        // Use MxmlLogAdapter to do filtering, e.g. -generated.as -> .css, as line -> css
        // line, etc...
        Logger original = ThreadLocalToolkit.getLogger();
        LineNumberMap lineNumberMap = styleModule.getLineNumberMap();
        Logger adapter = new MxmlLogAdapter(original, lineNumberMap);
        ThreadLocalToolkit.setLogger(adapter);

        CompilationUnit ascCompilationUnit = delegateSubCompiler.parse1(generatedSource, symbolTable);
View Full Code Here

TOP

Related Classes of flex2.compiler.util.LineNumberMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.