Pipe error location through error->node.

This commit is contained in:
Miguel Lechon
2021-03-18 17:40:06 +01:00
parent f4965c782d
commit eef82b0554
4 changed files with 30 additions and 31 deletions
+1 -1
View File
@@ -301,6 +301,7 @@ typedef enum MD_NodeKind
MD_NodeKind_Namespace,
MD_NodeKind_Label,
MD_NodeKind_Tag,
MD_NodeKind_ErrorMarker,
MD_NodeKind_MAX,
}
MD_NodeKind;
@@ -487,7 +488,6 @@ struct MD_Error
MD_String8 filename;
MD_Node *node;
MD_b32 catastrophic;
MD_CodeLoc location;
};
typedef struct MD_ParseCtx MD_ParseCtx;