forked from JavaTX/JavaCompilerCore
Fixed insert Type
This commit is contained in:
parent
df67185b45
commit
26d3a89fd9
@ -66,17 +66,8 @@ public class TypeInsertSet {
|
|||||||
*/
|
*/
|
||||||
public String insertType(TypeInsertPoint tip, String fileContent){
|
public String insertType(TypeInsertPoint tip, String fileContent){
|
||||||
TypePatchJob tpj = new TypePatchJob();
|
TypePatchJob tpj = new TypePatchJob();
|
||||||
/*
|
|
||||||
int additionalOffset = 0;
|
|
||||||
String ret = fileContent;
|
|
||||||
JavaCodeResult unresolvedTPHs = tip.patch(ret, additionalOffset);
|
|
||||||
for(TypePlaceholder tph : unresolvedTPHs.getUnresolvedTPH()){
|
|
||||||
GenericTypeInsertPoint genericTIP = new GenericTypeInsertPoint(tip.getGenericTypeVarInsertNode(),tph,tip.getResultSet());
|
|
||||||
tpj.add(genericTIP);
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
this.insertType(tip, tpj);
|
||||||
tpj.add(tip);
|
|
||||||
|
|
||||||
return tpj.run(fileContent);
|
return tpj.run(fileContent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user