use of javax.lang.model.util.Types in project neo4j by neo4j.
the class AllowedTypesValidatorTest method prepare.
@Before
public void prepare() {
Types types = compilation.getTypes();
Elements elements = compilation.getElements();
TypeMirrorUtils typeMirrors = new TypeMirrorUtils(types, elements);
typeMirrorTestUtils = new TypeMirrorTestUtils(compilation);
validator = new AllowedTypesValidator(typeMirrors, types);
}
use of javax.lang.model.util.Types in project neo4j by neo4j.
the class UserFunctionVisitorTest method prepare.
@Before
public void prepare() {
Types types = compilationRule.getTypes();
Elements elements = compilationRule.getElements();
elementTestUtils = new ElementTestUtils(compilationRule);
visitor = new UserFunctionVisitor(types, elements, new TypeMirrorUtils(types, elements));
}
use of javax.lang.model.util.Types in project intellij-community by JetBrains.
the class Javac8RefScanner method visitLambdaExpression.
@Override
public Tree visitLambdaExpression(LambdaExpressionTree node, JavacReferenceCollectorListener.ReferenceCollector refCollector) {
final TypeMirror type = refCollector.getType(node);
Types types = refCollector.getTypeUtility();
if (types != null) {
final Element element = types.asElement(type);
if (element != null) {
final JavacRef.JavacElementRefBase ref = refCollector.asJavacRef(element);
if (ref != null) {
refCollector.sinkDeclaration(new JavacDef.JavacFunExprDef(ref));
}
}
}
return super.visitLambdaExpression(node, refCollector);
}
Aggregations