Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/AnnotationProcessor.java @ 7502:6343a09b2ec1
Codegen operation generation is inferred from the node type hierarchy.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Fri, 18 Jan 2013 13:28:12 +0100 |
parents | a748e4d44694 |
children |
comparison
equal
deleted
inserted
replaced
7497:0f8c6dbf68be | 7502:6343a09b2ec1 |
---|---|
82 context.registerTemplate(type, null); | 82 context.registerTemplate(type, null); |
83 model = parser.parse(env, element); | 83 model = parser.parse(env, element); |
84 context.registerTemplate(type, model); | 84 context.registerTemplate(type, model); |
85 | 85 |
86 if (model != null) { | 86 if (model != null) { |
87 CodeCompilationUnit unit = (CodeCompilationUnit) factory.process(model); | 87 CodeCompilationUnit unit = factory.process(null, model); |
88 unit.setGeneratorAnnotationMirror(model.getTemplateTypeAnnotation()); | 88 unit.setGeneratorAnnotationMirror(model.getTemplateTypeAnnotation()); |
89 unit.setGeneratorElement(model.getTemplateType()); | 89 unit.setGeneratorElement(model.getTemplateType()); |
90 | 90 |
91 DeclaredType overrideType = (DeclaredType) context.getType(Override.class); | 91 DeclaredType overrideType = (DeclaredType) context.getType(Override.class); |
92 DeclaredType unusedType = (DeclaredType) context.getType(SuppressWarnings.class); | 92 DeclaredType unusedType = (DeclaredType) context.getType(SuppressWarnings.class); |