Examples of CompilationUnit


Examples of org.eclipse.jdt.internal.core.jdom.CompilationUnit

      name = documentPath.toCharArray();
    } catch(Exception e){
      // ignore
    }
    if (source == null || name == null) return; // could not retrieve document info (e.g. resource was discarded)
    CompilationUnit compilationUnit = new CompilationUnit(source, name);
    try {
      parser.parseCompilationUnit(compilationUnit, true/*full parse*/, null/*no progress*/);
    } catch (Exception e) {
      if (JobManager.VERBOSE) {
        e.printStackTrace();
View Full Code Here

Examples of org.eclipse.xtend.lib.macro.declaration.CompilationUnit

 
  public void doTransform(final List<? extends MutableTypeDeclaration> types, @Extension final TransformationContext context) {
    final Procedure1<MutableTypeDeclaration> _function = new Procedure1<MutableTypeDeclaration>() {
      public void apply(final MutableTypeDeclaration root) {
        TypeReference _newTypeReference = context.newTypeReference(root);
        CompilationUnit _compilationUnit = root.getCompilationUnit();
        final Set<ClassDeclaration> allInheritors = VisitableProcessor.this.getInheritorsDeclaredIn(_newTypeReference, _compilationUnit, context);
        Iterable<MethodDeclaration> _acceptMethods = VisitableProcessor.this.getAcceptMethods(root);
        final Procedure1<MethodDeclaration> _function = new Procedure1<MethodDeclaration>() {
          public void apply(final MethodDeclaration method) {
            String _visitorName = VisitableProcessor.this.getVisitorName(method);
View Full Code Here

Examples of org.perl6.nqp.runtime.CompilationUnit

                gc.in = new ByteArrayInputStream(new byte[0]);
                gc.out = gc.err = new PrintStream( Channels.newOutputStream(sock), true, "UTF-8" );
                gc.interceptExit = true;
                gc.sharingHint = true;

                CompilationUnit cu = CompilationUnit.setupCompilationUnit(gc.mainThread, cuType, true);
                CodeRef entryRef = null;
                if (cu.entryQbid() >= 0) entryRef = cu.lookupCodeRef(cu.entryQbid());
                if (entryRef == null)
                    throw new RuntimeException("This class is not an entry point");
                Ops.invokeMain(gc.mainThread, entryRef, cuType.getName(), argv);
            }
            else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.