public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { string path = (value as FileInfo).FullName; string code = File.ReadAllText(path); return(new List <IParseTree>() { ParserHelpers.GetRootContext(code) }); }
public void RootContextTest() { var code = File.ReadAllText(@"DataBiTemporal\Parser\simple.sql"); Assert.IsNotNull(ParserHelpers.GetRootContext(code) as BiTempDefParser.CompileUnitContext); }