Package org.eclipse.dltk.ast

Examples of org.eclipse.dltk.ast.ASTNode


                ASTListNode superClasses = classDecl
                    .getSuperClasses();
                List childs = superClasses.getChilds();
                for (Iterator iterator = childs.iterator(); iterator
                    .hasNext();) {
                  ASTNode node = (ASTNode) iterator.next();
                  NamespaceReference namespace = null;
                  SimpleReference reference = null;
                  if (node instanceof SimpleReference) {
                    reference = (SimpleReference) node;
                    String typeName = reference.getName();
View Full Code Here


   * @return
   */
  @SuppressWarnings({ "rawtypes" })
  public static Service extractServiceFromCall(PHPCallExpression call, IPath path) {

    ASTNode receiver = call.getReceiver();

   
   
    if (receiver instanceof VariableReference) {

View Full Code Here

     
      if (expressionGoal.getContext() instanceof FileContext) {

        FileContext context = (FileContext) expressionGoal.getContext();
       
        ASTNode node = expressionGoal.getExpression();
       
        if (node instanceof VariableReference) {
         
          VariableReference variable = (VariableReference) node;
          TemplateField element = SymfonyModelAccess.getDefault().findTemplateVariableType(variable.toString(), context.getSourceModule());
View Full Code Here

            fMarkOccurrenceModificationStamp = currentModificationStamp;
        }

        OccurrenceLocation[] locations = null;

        ASTNode selectedNode = NodeFinder.perform(astRoot,
                selection.getOffset(), selection.getLength());

        if (locations == null) {
            IOccurrencesFinder finder = new VariableFinder();
            if (finder.initialize(astRoot, selectedNode) == null) {
View Full Code Here

            if (param == null)
                continue;

            JSONObject arg = new JSONObject();
            ASTNode init = param.getInitialization();

            String defaultValue = init != null
                    ? init.getClass().toString()
                    : "";

            if (init instanceof Scalar) {
                Scalar scalar = (Scalar) init;
                defaultValue = scalar.getValue();
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.ast.ASTNode

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.