public void Visit(NodeTypeDef typeDef) { }
public void Visit(NodeTypeDef typeDef) { symbols.InsertType(typeDef.Name, typeDef.modifiers, typeDef.Ty); }
public void Visit(NodeTypeDef typeDef) { throw new NotImplementedException(); }
public void Visit(NodeTypeDef typeDef) { ResolveTy(typeDef.spTy); }
public void Visit(NodeTypeDef typeDef) { log.Error(typeDef.Span, "A type def is not valid in a function."); }
public void Visit(NodeTypeDef type) { Write("'type' "); Write(type.name.value); Write(" '=' "); WriteLine(type.Ty.ToString()); }
private NodeTypeDef ParseTypeDef(Modifiers mods) { var type = new NodeTypeDef(); type.modifiers = mods; type.type = Current; Advance(); var name = ExpectIdent("Identifier expected to name the type."); type.name = name.Image.Spanned(name.span); if (HasCurrent) type.eq = Current; Expect(EQ, "Expected '='."); type.spTy = ParseTy(); return type; }