Examples of sourceStart()


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

                if (args.get(0) instanceof Scalar) {
                    Scalar environment = (Scalar) args.get(0);
                    String value = environment.getValue().replace("\"", "").replace("'", "");
                    String path = sourceModule.getPath().toString();
                    Logger.debugMSG("indexing environment: " + value + " => " + path);
                    ReferenceInfo info = new ReferenceInfo(ISymfonyModelElement.ENVIRONMENT, instance.sourceStart(), instance.sourceEnd()-instance.sourceStart(), value, null, path);
                    requestor.addReference(info);
                }
            }
        }
        return super.visit(s);
View Full Code Here

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

                    FullyQualifiedReference ref = (FullyQualifiedReference) param.getParameterType();
                    NamespaceReference nsRef = createFromFQCN(ref);

                    if (nsRef != null) {
                        TemplateVariable tempVar= new TemplateVariable(currentMethod, param.getName(), param.sourceStart(), param.sourceEnd(), nsRef.namespace, nsRef.className);
                        deferredVariables.push(tempVar);
                    }

                /* public function ($somevar) { } */
                } else {
View Full Code Here

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

                        if (service != null) {

                            String fqsn =  service.getNamespace() != null ? service.getNamespace().getQualifiedName() : null;

                            TemplateVariable tempVar= new TemplateVariable(currentMethod, var.getName(), exp.sourceStart(), exp.sourceEnd(), fqsn, service.getClassName());
                            deferredVariables.push(tempVar);
                        }

                        // a more complex expression like
                        // $form = $this->get('form.factory')->create(new ContactType());
View Full Code Here

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

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

                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

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

                        SimpleReference varName = refs[0];
                        SimpleReference varType = refs[1];

                        if(varName.getName().equals("$view") && varType.getName().equals("string")) {

                            int length = method.sourceEnd() - method.sourceStart();
                            ReferenceInfo viewMethod = new ReferenceInfo(ISymfonyModelElement.VIEW_METHOD, method.sourceStart()    , length, method.getName(), null, null);
                            requestor.addReference(viewMethod);

                        } else if (value.contains("route") || value.contains("url")) {
View Full Code Here

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

                        FullyQualifiedReference fqcn = (FullyQualifiedReference) instance.getClassName();
                        NamespaceReference nsRef = createFromFQCN(fqcn);

                        if (nsRef != null) {
                            TemplateVariable variable = new TemplateVariable(currentMethod, varName.getValue(),
                                    varName.sourceStart(), varName.sourceEnd(), nsRef.getNamespace(), nsRef.getClassName());
                            templateVariables.put(variable, viewPath);
                        }
                    }
                } 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.