19 lines
582 B
C#
19 lines
582 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Microsoft.CodeAnalysis;
|
|
|
|
namespace FastScriptReload.Editor.Compilation.CodeRewriting
|
|
{
|
|
public static class SyntaxTreeMergePartialsExtensions
|
|
{
|
|
public static IEnumerable<SyntaxTree> MergePartials(
|
|
this IEnumerable<SyntaxTree> trees,
|
|
IEnumerable<string> definedPreprocessorSymbols)
|
|
{
|
|
return trees
|
|
.Select(tree => PartialTreeProcessor.ProcessPartialTree(tree, definedPreprocessorSymbols))
|
|
.ToList();
|
|
}
|
|
}
|
|
}
|