Examples of SymbolInfo


Examples of com.google.javascript.jscomp.deps.JsFunctionParser.SymbolInfo

      + "//no new line at eof";

    Collection<SymbolInfo> symbols = parser.parseFile(SRC_PATH, CONTENTS);

    Iterator<SymbolInfo> i = symbols.iterator();
    SymbolInfo symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes1");
    assertEquals(symbolInfo.functionName, "goog.provide");

    symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes2");
View Full Code Here

Examples of com.google.javascript.jscomp.deps.JsFunctionParser.SymbolInfo

        + "goog.provide('no1');*/goog.provide('yes3');//goog.provide('no2');";

    Collection<SymbolInfo> symbols = parser.parseFile(SRC_PATH, CONTENTS);

    Iterator<SymbolInfo> i = symbols.iterator();
    SymbolInfo symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes1");
    assertEquals(symbolInfo.functionName, "goog.provide");

    symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes2");
View Full Code Here

Examples of com.google.javascript.jscomp.deps.JsFunctionParser.SymbolInfo

        + "goog.provide('no1');";

    Collection<SymbolInfo> symbols = parser.parseFile(SRC_PATH, CONTENTS);

    Iterator<SymbolInfo> i = symbols.iterator();
    SymbolInfo symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes1");
    assertEquals(symbolInfo.functionName, "goog.provide");

    symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes2");
View Full Code Here

Examples of com.google.javascript.jscomp.deps.JsFunctionParser.SymbolInfo

        + "goog.provide('yes1');\n";

    Collection<SymbolInfo> symbols = parser.parseFile(SRC_PATH, CONTENTS);

    Iterator<SymbolInfo> i = symbols.iterator();
    SymbolInfo symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes1");
    assertEquals(symbolInfo.functionName, "goog.provide");

    assertEquals(symbols.size(), 1);
    assertEquals(0, errorManager.getErrorCount());
View Full Code Here

Examples of com.google.javascript.jscomp.deps.JsFunctionParser.SymbolInfo

        + "goog.provide('yes1');\n";

    Collection<SymbolInfo> symbols = parser.parseFile(SRC_PATH, CONTENTS);

    Iterator<SymbolInfo> i = symbols.iterator();
    SymbolInfo symbolInfo = i.next();
    assertEquals(symbolInfo.symbol, "yes1");
    assertEquals(symbolInfo.functionName, "goog.provide");
    assertEquals(0, errorManager.getErrorCount());
    assertEquals(0, errorManager.getWarningCount());
  }
View Full Code Here

Examples of com.oracle.truffle.r.runtime.ffi.DLL.SymbolInfo

        @SuppressWarnings("unused")
        @Specialization
        protected RList c(String f, RArgsValuesAndNames args, byte naok, byte dup, RMissing rPackage, RMissing encoding) {
            controlVisibility();
            Object[] argValues = args.getValues();
            SymbolInfo symbolInfo = DLL.findSymbolInfo(f, null);
            if (symbolInfo == null) {
                errorProfile.enter();
                throw RError.error(getEncapsulatingSourceSection(), RError.Message.C_SYMBOL_NOT_IN_TABLE, f);
            }
            boolean dupArgs = RRuntime.fromLogical(dup);
View Full Code Here

Examples of com.oracle.truffle.r.runtime.ffi.DLL.SymbolInfo

            return callNamedFunctionWithPackage(name, args, null);
        }

        @Specialization
        public Object callNamedFunctionWithPackage(String name, RArgsValuesAndNames args, String packageName) {
            SymbolInfo symbolInfo = DLL.findSymbolInfo(name, packageName);
            if (symbolInfo == null) {
                errorProfile.enter();
                throw RError.error(getEncapsulatingSourceSection(), Message.C_SYMBOL_NOT_IN_TABLE, name);
            }
            try {
View Full Code Here

Examples of org.geomajas.configuration.SymbolInfo

        geom = feature.getClippedGeometry();
      }
      geom = transformer.transform(geom);
      if (isPointLike(feature)) {
        if (feature.getStyleInfo().getSymbol() != null) {
          SymbolInfo info = feature.getStyleInfo().getSymbol();
          for (Coordinate coordinate : geom.getCoordinates()) {
            if (info.getRect() != null) {
              writeRectangle(document, coordinate, feature, info.getRect());
            } else if (info.getCircle() != null) {
              RectInfo rectInfo = new RectInfo();
              rectInfo.setW(info.getCircle().getR() * 2);
              rectInfo.setH(info.getCircle().getR() * 2);
              writeRectangle(document, coordinate, feature, rectInfo);
            } else if (info.getImage() != null) {
              writeImage(document, coordinate, feature, info.getImage());
            }
          }
        }
      } else {
        document.writeObject(geom, asChild);
View Full Code Here

Examples of org.geomajas.configuration.SymbolInfo

  public PointDrawController(MapWidget mapWidget, AbstractFreeDrawingController parent) {
    super(mapWidget, parent);
    factory = new GeometryFactory(mapWidget.getMapModel().getSrid(), mapWidget.getMapModel().getPrecision());
    geometry = factory.createPoint(new Coordinate());
    drawStyle = new ShapeStyle("#FF7F00", 0.3f, "#FF7F00", 1, 2);
    symbolStyle = new SymbolInfo();
    CircleInfo c = new CircleInfo();
    symbolStyle.setCircle(c);
    c.setR(8);
  }
View Full Code Here

Examples of org.geomajas.configuration.SymbolInfo

    MultiPolygon mp = gf.createMultiPolygon(new Polygon[] {p1, p2});
    worldGeometry.setStyle(new ShapeStyle("#FF0000", 0.5f, "#FF0000", 1.0f, 2));
    worldGeometry.setGeometry(mp);

    final GfxGeometry worldGeometry2 = new GfxGeometry("MultiPointInWorldSpace");
    SymbolInfo si = new SymbolInfo();
    CircleInfo ci = new CircleInfo();
    ci.setR(8.0f);
    si.setCircle(ci);
    Point pt1 = gf.createPoint(new Coordinate(6000000, -5000000));
    Point pt2 = gf.createPoint(new Coordinate(8000000, -5000000));
    Point pt3 = gf.createPoint(new Coordinate(7000000, -7000000));
    worldGeometry2.setStyle(new ShapeStyle("#0000FF", 0.3f, "#0000FF", 1.0f, 2));
    worldGeometry2.setGeometry(gf.createMultiPoint(new Point[] {pt1, pt2, pt3}));
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.