private final @Nullable String symbolicName;
public IRSchemaSource(final @NonNull SourceIdentifier identifier, final @NonNull IRStatement rootStatement,
- @Nullable final String symbolicName) {
+ final @Nullable String symbolicName) {
super(identifier);
this.rootStatement = requireNonNull(rootStatement);
this.symbolicName = symbolicName;
checkArgument(rootStatement.argument() != null, "Root statement does not have an argument");
}
+ @Deprecated(forRemoval = true)
public IRSchemaSource(final @NonNull SourceIdentifier identifier, final @NonNull IRStatement rootStatement) {
this(identifier, rootStatement, null);
}
final RevisionSourceIdentifier sourceId = latestRevision == null ? RevisionSourceIdentifier.create(name)
: RevisionSourceIdentifier.create(name, Revision.of(latestRevision));
- return new IRSchemaSource(sourceId, rootStatement);
+ return new IRSchemaSource(sourceId, rootStatement, text.getSymbolicName().orElse(null));
}
}