internal static EnvDTE.CodeEnum CreateUnknown( CodeModelState state, FileCodeModel fileCodeModel, int nodeKind, string name) { var element = new CodeEnum(state, fileCodeModel, nodeKind, name); return (EnvDTE.CodeEnum)ComAggregate.CreateAggregatedObject(element); }
internal static EnvDTE.CodeEnum Create( CodeModelState state, FileCodeModel fileCodeModel, SyntaxNodeKey nodeKey, int? nodeKind) { var element = new CodeEnum(state, fileCodeModel, nodeKey, nodeKind); var result = (EnvDTE.CodeEnum)ComAggregate.CreateAggregatedObject(element); fileCodeModel.OnElementCreated(nodeKey, (EnvDTE.CodeElement)result); return result; }