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