Package org.eclipse.php.internal.core.compiler.ast.nodes

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.PHPDocBlock.sourceStart()


                        0,
                        typeName.indexOf(NamespaceReference.NAMESPACE_SEPARATOR));
                final Map<String, UsePart> result = PHPModelUtils
                    .getAliasToNSMap(prefix,
                        moduleDeclaration,
                        docBlock.sourceStart(),
                        currentNamespace, true);
                if (result.containsKey(prefix)) {
                  String fullName = result.get(prefix)
                      .getNamespace()
                      .getFullyQualifiedName();
View Full Code Here


                String prefix = typeName;
                final Map<String, UsePart> result = PHPModelUtils
                    .getAliasToNSMap(prefix,
                        moduleDeclaration,
                        docBlock.sourceStart(),
                        currentNamespace, true);
                if (result.containsKey(prefix)) {
                  String fullName = result.get(prefix)
                      .getNamespace()
                      .getFullyQualifiedName();
View Full Code Here

          for (SimpleReference ref : references) {
            String typeName = ref.getName();
            Matcher m = ARRAY_TYPE_PATTERN.matcher(typeName);
            if (m.find()) {
              evaluated.add(getArrayType(m.group(),
                  currentNamespace, doc.sourceStart()));
            } else if (typeName.endsWith(BRACKETS)
                && typeName.length() > 2) {
              offset = 0;
              try {
                offset = typeField.getSourceRange().getOffset();
View Full Code Here

                  String prefix = typeName.substring(0,
                      typeName.indexOf(SPLASH));
                  final Map<String, UsePart> result = PHPModelUtils
                      .getAliasToNSMap(prefix,
                          moduleDeclaration,
                          doc.sourceStart(),
                          currentNamespace, true);
                  if (result.containsKey(prefix)) {
                    String fullName = result.get(prefix)
                        .getNamespace()
                        .getFullyQualifiedName();
View Full Code Here

                } else if (typeName.indexOf(SPLASH) < 0) {
                  String prefix = typeName;
                  final Map<String, UsePart> result = PHPModelUtils
                      .getAliasToNSMap(prefix,
                          moduleDeclaration,
                          doc.sourceStart(),
                          currentNamespace, true);
                  if (result.containsKey(prefix)) {
                    String fullName = result.get(prefix)
                        .getNamespace()
                        .getFullyQualifiedName();
View Full Code Here

            PHPDocBlock comment = declaration.getPHPDoc();
            if (comment == null || comment.getCommentType() != Comment.TYPE_PHPDOC) {
                return EMPTY_ANNOTATIONS;
            }

            int commentStartOffset = comment.sourceStart();
            String commentSource;
            if (sourceModule != null) {
                commentSource = getCommentSource(sourceModule, commentStartOffset, comment.sourceEnd());
            } else {
                commentSource = comment.getShortDescription() + comment.getLongDescription();
View Full Code Here

                return false;
            }
           
            PHPDocBlock phpDoc = methodDeclaration.getPHPDoc();
           
            if (phpDoc == null || (phpDoc.sourceStart() > offset || phpDoc.sourceEnd() < offset)) {
                return false;
            }
           
            List<Annotation> annotations = AnnotationUtils.extractAnnotations(parser, methodDeclaration);
            if (annotations.size() < 1) {
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.