Commit 2b86cba8 authored by Corentin Noël's avatar Corentin Noël Committed by Rico Tzschichholz

libvaladoc: Build backing Vala.SourceFile for GIRs processed by importer

This fixes criticals when reporting errors and warnings

Fixes #738
parent 91721c4a
......@@ -63,8 +63,9 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
}
public override void process (string source_file) {
var data = new Vala.SourceFile (tree.context, Vala.SourceFileType.PACKAGE, Path.get_basename (source_file));
this.file = new Api.SourceFile (new Api.Package (Path.get_basename (source_file), true, null),
source_file, null, null);
source_file, null, data);
this.reader = new Vala.MarkupReader (source_file);
// xml prolog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment