Commit face8211 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

ASTbuilder: fix to make it build SampleDecls

parent 3fbc9aee
......@@ -124,8 +124,13 @@ public class ASTbuilder implements TypeDefParser.ParsedSymbolVisitor {
public Decl makeDecl(TypeDefParser.ParsedTypeDef d) {
Decl result;
Decl result = new TypeDecl(typeStack.pop(), d.getName());
if(d.isSampleDef()) {
result = new SampleDecl(typeStack.pop(), d.getName());
} else {
result = new TypeDecl(typeStack.pop(), d.getName());
return result;
Supports Markdown
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