Package org.sonar.squid.api

Examples of org.sonar.squid.api.SourceProject


  public static Collection<CxxPreprocessor.Include> getMissingIncludeFiles(File path) {
    return cxxpp.getMissingIncludeFiles(path);
  }
 
  public static Parser<Grammar> create() {
    return create(new SquidAstVisitorContextImpl<Grammar>(new SourceProject("")),
                  new CxxConfiguration());
  }
View Full Code Here


    }
    return (SourceFile) sources.iterator().next();
  }

  public static AstScanner<Grammar> create(CxxConfiguration conf, SquidAstVisitor<Grammar>... visitors) {
    final SquidAstVisitorContextImpl<Grammar> context = new SquidAstVisitorContextImpl<Grammar>(new SourceProject("Cxx Project"));
    final Parser<Grammar> parser = CxxParser.create(context, conf);

    AstScanner.Builder<Grammar> builder = AstScanner.<Grammar> builder(context).setBaseParser(parser);

    /* Metrics */
 
View Full Code Here

        }
        return (SourceFile) sources.iterator().next();
    }

    public static AstScanner<ObjectiveCGrammar> create(ObjectiveCConfiguration conf, SquidAstVisitor<ObjectiveCGrammar>... visitors) {
        final SquidAstVisitorContextImpl<ObjectiveCGrammar> context = new SquidAstVisitorContextImpl<ObjectiveCGrammar>(new SourceProject("Objective-C Project"));
        final Parser<ObjectiveCGrammar> parser = ObjectiveCParser.create(conf);

        AstScanner.Builder<ObjectiveCGrammar> builder = AstScanner.<ObjectiveCGrammar> builder(context).setBaseParser(parser);

        /* Metrics */
 
View Full Code Here

TOP

Related Classes of org.sonar.squid.api.SourceProject

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.