public static string GetContent(this IParsingTreeNode node, ISourceTextReader reader) { var from = node.GetFromLocation(); if (from.HasValue) { var to = node.GetToLocation(); return(reader.GetText(from.Value, to.Value)); } else { return(string.Empty); } }