public static IEnumerable <Invocation> GetInvocations(this IAnalyzer extractor, string text, string fileName = null) { using (var reader = new StringReader(text)) { return(extractor.GetInvocations(reader, fileName: fileName)); } }