public static string ConvertCompilerDirectiveAst(CompilerDirectiveAst node, MofQuirks quirks = MofQuirks.None) { var source = new StringBuilder(); source.Append(node.PragmaKeyword.Extent.Text); source.Append(" "); source.Append(node.PragmaName); source.Append(" "); source.Append("("); source.Append(AstMofGenerator.ConvertStringValueAst(node.PragmaParameter)); source.Append(")"); return(source.ToString()); }
public static string ConvertToMof(CompilerDirectiveAst node, MofQuirks quirks = MofQuirks.None) { return(string.Format("!!!!!{0}!!!!!", node.GetType().Name)); }