示例#1
0
 public static ParseException InvalidSlotOverride(string verb, TemplateNodeDebugData parentData, TemplateNodeDebugData childData)
 {
     return(new ParseException($"Error while parsing {parentData.fileName}. Slot overrides can only be defined as a direct child of an expanded template. <{parentData.tagName}> is not an expanded template and cannot support slot {verb} <{childData.tagName}>"));
 }
示例#2
0
 public static CompileException UnresolvedGenericElement(ProcessedType processedType, TemplateNodeDebugData data)
 {
     return(new CompileException($"Unable to resolve the concrete type for " + processedType.rawType + $"\n\nFailed parsing {data.tagName} at {data.fileName}:{data.lineInfo}\n" +
                                 $"You can try to fix this by providing the type explicitly. (add an attribute generic:type=\"your,types,here\""));
 }