@@ -0,0 +1,1142 @@
+package com.yahoo.searchdefinition.document;%0A%0Aimport com.yahoo.document.DataType;%0Aimport com.yahoo.document.TemporaryStructuredDataType;%0Aimport com.yahoo.document.datatypes.FieldValue;%0A%0A/**%0A * @author bjorncs%0A */%0Apublic class TemporaryReferenceField extends DataType %7B%0A%0A    private final TemporaryStructuredDataType referencedDocument;%0A%0A    public TemporaryReferenceField(TemporaryStructuredDataType referencedDocument) %7B%0A        super(createName(referencedDocument), 0);%0A        this.referencedDocument = referencedDocument;%0A    %7D%0A%0A    private static String createName(TemporaryStructuredDataType referenceType) %7B%0A        return %22reference%3C%22 + referenceType.getName() + %22%3E%22;%0A    %7D%0A%0A    public TemporaryStructuredDataType getReferencedDocument() %7B%0A        return referencedDocument;%0A    %7D%0A%0A    @Override%0A    public FieldValue createFieldValue() %7B%0A        throw new UnsupportedOperationException();%0A    %7D%0A%0A    @Override%0A    public Class getValueClass() %7B%0A        throw new UnsupportedOperationException();%0A    %7D%0A%0A    @Override%0A    public boolean isValueCompatible(FieldValue value) %7B%0A        throw new UnsupportedOperationException();%0A    %7D%0A%7D%0A

Add AST type for reference field