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