Пример #1
0
        public static SyntaxTreeGrouping Build(IFileResolver fileResolver, string entryFileName)
        {
            var builder            = new SyntaxTreeGroupingBuilder(fileResolver);
            var normalizedFileName = fileResolver.GetNormalizedFileName(entryFileName);

            return(builder.Build(normalizedFileName));
        }
Пример #2
0
        public static SyntaxTreeGrouping BuildWithPreloadedFile(IFileResolver fileResolver, string entryFileName, string fileContents)
        {
            var builder            = new SyntaxTreeGroupingBuilder(fileResolver);
            var normalizedFileName = fileResolver.GetNormalizedFileName(entryFileName);

            builder.AddSyntaxTree(normalizedFileName, fileContents);

            return(builder.Build(normalizedFileName));
        }
Пример #3
0
        public static SyntaxTreeGrouping Build(IFileResolver fileResolver, IReadOnlyWorkspace workspace, Uri entryFileUri)
        {
            var builder = new SyntaxTreeGroupingBuilder(fileResolver, workspace);

            return(builder.Build(entryFileUri));
        }