public static string ConvertPropertyValueAst(PropertyValueAst node, MofQuirks quirks = MofQuirks.None, string indent = "")
        {
            switch (node)
            {
            case PrimitiveTypeValueAst ast:
                return(AstMofGenerator.ConvertPrimitiveTypeValueAst(ast, quirks, indent));

            case ComplexTypeValueAst ast:
                return(AstMofGenerator.ConvertComplexTypeValueAst(ast, quirks, indent));

            //case ReferenceTypeValueAst ast:
            case EnumTypeValueAst ast:
                return(AstMofGenerator.ConvertEnumTypeValueAst(ast, quirks));

            default:
                throw new NotImplementedException();
            }
        }
Esempio n. 2
0
 public static string ConvertToMof(PropertyValueAst node, MofQuirks quirks = MofQuirks.None)
 {
     return(string.Format("!!!!!{0}!!!!!", node.GetType().Name));
 }