Examples of eContainingFeature()


Examples of com.puppetlabs.geppetto.pp.Expression.eContainingFeature()

                proposer.computeDistinctProposals(className, foundClasses));
            else
              acceptor.acceptWarning(
                "Ambiguous reference to: '" + className + "' found in: " +
                    visibleResourceList(s.eResource(), foundClasses), //
                param.eContainer(), param.eContainingFeature(),
                idx, //
                IPPDiagnostics.ISSUE__RESOURCE_AMBIGUOUS_REFERENCE,
                proposer.computeDistinctProposals(className, foundClasses));

          }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.Expression.eContainingFeature()

                  "Found outside current search path: '" + className + "'", param,
                  PPPackage.Literals.EXPR_LIST__EXPRESSIONS, parameterIndex,
                  IPPDiagnostics.ISSUE__NOT_ON_PATH);
              else
                acceptor.acceptWarning("Found outside current search path: '" + className + "'", //
                  param.eContainer(), param.eContainingFeature(), idx, // IPPDiagnostics.ISSUE__NOT_ON_PATH);
                  IPPDiagnostics.ISSUE__NOT_ON_PATH);

            }
            else {
              // not found
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.Expression.eContainingFeature()

                  issueCode, //
                  proposals);
              }
              else {
                acceptor.acceptError("Unknown class: '" + className + "'", //
                  param.eContainer(), param.eContainingFeature(), idx, //
                  issueCode, //
                  proposals);
              }
            }
          }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.Expression.eContainingFeature()

          else
            acceptor.accept(error
                ? Severity.ERROR
                : Severity.WARNING, msg, //
              param.eContainer(), param.eContainingFeature(), idx, //
              IPPDiagnostics.ISSUE__RESOURCE_UNKNOWN_TYPE);
        }
      }
    }
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.Expression.eContainingFeature()

      Expression s = statements.get(i);
      boolean isSep = s instanceof SeparatorExpression;
      if(isSep && (i == 0 || prevSep)) {
        // First is separator, or this is separator and previous was too
        acceptor.acceptError(
          "Empty statement", s.eContainer(), s.eContainingFeature(), i, IPPDiagnostics.ISSUE__EMPTY_STATEMENT);
      }
      prevSep = isSep;
    }
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.Expression.eContainingFeature()

        // There must be one more expression in the list (a single argument, or
        // an Expression list) unless the expression is last and allowExprLast (i.e. a return value)
        if((i + 1) >= limit && !allowExprLast) {
          acceptor.acceptError(
            "Not a top level expression. (Looks like a function call without arguments, use '()')",
            s.eContainer(), s.eContainingFeature(), i, IPPDiagnostics.ISSUE__NOT_TOPLEVEL);
          // continue each_top;
        }
        // the next expression is consumed as a single arg, or an expr list
        i++;
        if(i < limit) {
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eContainingFeature()

          EObject obj = s.resolveSemanticElement();
          if (objectClass.isInstance(obj)) {
            // check containing feature name
            NamedElement e = (NamedElement) obj;
            if (name == null || (e.getName() != null && e.getName().equals(name))) {
              if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
              assertNotNull(s);
              return s;
              }
            }
            found += e.getName() + "[" + obj.eContainingFeature() + "],";
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eContainingFeature()

              if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
              assertNotNull(s);
              return s;
              }
            }
            found += e.getName() + "[" + obj.eContainingFeature() + "],";
          }
        }
      }
    }
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eContainingFeature()

          EObject obj = s.resolveSemanticElement();
          if (objectClass.isInstance(obj)) {
            // check containing feature name
            ENamedElement e = (ENamedElement) obj;
            if (name == null || (e.getName() != null && e.getName().equals(name))) {
              if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
              assertNotNull(s);
              return s;
              }
            }
            found += e.getName() + "[" + obj.eContainingFeature() + "],";
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eContainingFeature()

              if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
              assertNotNull(s);
              return s;
              }
            }
            found += e.getName() + "[" + obj.eContainingFeature() + "],";
          }
        }
      }
    }
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.