public void AddFurnaceType(string fullName) { GuardFullName(fullName); var syntaxRewriter = new FurnaceTypeWriter(fullName); var syntaxTree = SyntaxFactory.SyntaxTree(syntaxRewriter.Visit(TemplateClassRoot)); _furnaceTypes.Add(new FurnaceType {FullName = fullName, SyntaxTree = syntaxTree}); }
public void AddFurnaceType(string fullName) { GuardFullName(fullName); var syntaxRewriter = new FurnaceTypeWriter(fullName); var syntaxTree = SyntaxFactory.SyntaxTree(syntaxRewriter.Visit(TemplateClassRoot)); _furnaceTypes.Add(new FurnaceType { FullName = fullName, SyntaxTree = syntaxTree }); }