Package org.apache.flex.compiler.problems

Examples of org.apache.flex.compiler.problems.ICompilerProblem


        Object result = node.resolveConfigValue(backingProject);
        if (result == null || result == ConfigConstNode.UNKNOWN_VALUE)
        {
            // If we can't get a value, log an error. If we are are processing System variables, then don't
            // use the problem type that requires a "site", as we don't know what it is
            ICompilerProblem problem = isFromProjectConfigVariables() ?
                    new CannotResolveProjectLevelConfigExpressionProblem(node.getConfigValue()) :
                    new CannotResolveConfigExpressionProblem(node, node.getConfigValue());
            addProblem(problem);
        }
        return result;
View Full Code Here


                        getLinkageChecker());
                reportWriter.writeToStream(outStream, problems);
            }
            catch (FileNotFoundException e)
            {
                final ICompilerProblem problem = new UnableToCreateLinkReportProblem(
                        targetSettings.getLinkReport().getAbsolutePath());
                problems.add(problem);
            }
        }
    }
View Full Code Here

     * Report unexpected line terminators in a string literal.
     */
    protected final void reportInvalidLineTerminatorInStringLiteral()
    {
        final ISourceLocation location = getCurrentSourceLocation(0);
        final ICompilerProblem problem = new StringLiteralMustBeTerminatedBeforeLineBreakProblem(location);
        getProblems().add(problem);
    }
View Full Code Here

     * mark for a string literal.
     */
    protected final void reportUnclosedStringLiteral()
    {
        final ISourceLocation location = getCurrentSourceLocation(0);
        final ICompilerProblem problem = new StringLiteralNotClosedProblem(location);
        getProblems().add(problem);
    }
View Full Code Here

     * Report syntax error: input ended before ASDoc is closed.
     */
    protected final void reportUnclosedASDoc()
    {
        final ISourceLocation location = getCurrentSourceLocation(0);
        final ICompilerProblem problem = new ASDocNotClosedProblem(location);
        getProblems().add(problem);
    }
View Full Code Here

        {
            swc.addFile(path, fileSpec.getLastModified(), contents);
        }
        else   
        {
            final ICompilerProblem problem =
                sourceLocation != null ?
                new FileNotFoundProblem(sourceLocation, fileSpec.getPath()) :
                new FileNotFoundProblem(fileSpec.getPath());
            problems.add(problem);
        }
View Full Code Here

                default:
                {
                    // Add an error if the flag is not valid.
                    ISourceLocation location = new SourceLocation(getSourcePath(),
                            getStart() + i, getStart() + i + 1, getLine(), getColumn());
                    ICompilerProblem problem = new SyntaxProblem(location, Character.toString(charAt));
                    reporter.addProblem(problem);
                    break;
                }
            }
        }
View Full Code Here

        String sourcePath = attribute.getMXMLDialect().trim(attribute.getRawValue());

        if (sourcePath.isEmpty() && builder != null)
        {
            ICompilerProblem problem = new MXMLEmptyAttributeProblem(attribute);
            builder.addProblem(problem);
            return null;
        }

        String resolvedPath;
View Full Code Here

        String languageURI = mxmlData.getMXMLDialect().getLanguageNamespace();

        if (MXMLDialect.isLanguageNamespace(attributeURI) &&
            !attributeURI.equals(languageURI))
        {
            ICompilerProblem problem = new MXMLOtherLanguageNamespaceProblem(attribute);
            builder.addProblem(problem);
        }
    }
View Full Code Here

     * attribute.
     */
    private void processPrivateAttribute(MXMLTreeBuilder builder, IMXMLTagData tag,
                                         IMXMLTagAttributeData attribute)
    {
        ICompilerProblem problem = new MXMLPrivateAttributeProblem(attribute);
        builder.addProblem(problem);
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.problems.ICompilerProblem

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.