Package org.eclipse.dltk.ast.declarations

Examples of org.eclipse.dltk.ast.declarations.ModuleDeclaration.traverse()


        if (!fileOffsets.isEmpty()) {
          GlobalReferenceDeclSearcher varSearcher = new GlobalReferenceDeclSearcher(
              sourceModule, fileOffsets, variableName);
          try {
            moduleDeclaration.traverse(varSearcher);

            DeclarationScope[] scopes = varSearcher.getScopes();
            for (DeclarationScope s : scopes) {
              for (Declaration decl : s
                  .getDeclarations(variableName)) {
View Full Code Here



        ModuleDeclaration module = SourceParserUtil.getModuleDeclaration(method.getSourceModule());
        ReturnTypeVisitor visitor = new ReturnTypeVisitor(method.getElementName());
        try {
            module.traverse(visitor);
        } catch (Exception e) {
            Logger.logException(e);
        }

        if (visitor.className == null || visitor.namespace == null)
View Full Code Here

            ModuleDeclaration parsedUnit = SourceParserUtil.getModuleDeclaration(
                    sourceModule, null);

            AnnotationPathVisitor visitor = new AnnotationPathVisitor(project, offset);
            parsedUnit.traverse(visitor);

            if (visitor.getTemplate() != null) {
                return new IModelElement[] { visitor.getTemplate() };
            }
View Full Code Here

            fRequestor.enterModule();

            final ModuleDeclaration decl = SourceParserUtil
                    .parseSourceModule(new StringReader(source));

            decl.traverse(new TwigASTVisitor()
            {
                @Override
                public boolean visit(BlockStatement block) throws Exception
                {
                    if (TwigCoreConstants.START_BLOCK.equals(block.getName().getValue())) {
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.