Skip to content

Instantly share code, notes, and snippets.

@img
img / anyadda
Created February 3, 2016 01:16
export default function ({ types: t }) {
return {
visitor: {
VariableDeclarator: {
exit({ node }) {
var typedecl = t.typeAnnotation();
typedecl.typeAnnotation = t.anyTypeAnnotation();
node.id.typeAnnotation = typedecl;
}
}
var plumber = require("gulp-plumber");
var through = require("through2");
var gutil = require("gulp-util");
var gulp = require("gulp");
var babel = require("gulp-babel");
var watch = require("gulp-watch");
var scripts = "./src/**/*.js";
var dest = "build";
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:oslc="http://open-services.net/ns/core#"
xmlns:nav="http://jazz.net/ns/rm/navigation#"
xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/">
<nav:folder rdf:about="https://greenfront.edinburgh.uk.ibm.com:9444/rdm/folders/_a42a43595c3c40bfb6700f3fd0c33090">
<dcterms:title>_AMR System Requirements Specification artifacts</dcterms:title>
<dcterms:description></dcterms:description>
<nav:parent rdf:resource="https://greenfront.edinburgh.uk.ibm.com:9444/rdm/folders/_dc46b44a64a84f15a9a11b29b9dc30c0"/>
public static <T> T getService(Object context, Class<T> service, String filter) {
Future<T> future = getServiceFuture(service, filter);
return Futures.getUnchecked(future);
}