コード例 #1
0
 internal static new EnvDTE.CodeFunction CreateUnknown(
    CodeModelState state,
    FileCodeModel fileCodeModel,
    int nodeKind,
    string name)
 {
     var element = new CodeFunctionWithEventHandler(state, fileCodeModel, nodeKind, name);
     return (EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element);
 }
コード例 #2
0
        internal static new EnvDTE.CodeFunction CreateUnknown(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            int nodeKind,
            string name)
        {
            var element = new CodeFunctionWithEventHandler(state, fileCodeModel, nodeKind, name);

            return((EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element));
        }
コード例 #3
0
        internal static new EnvDTE.CodeFunction Create(
           CodeModelState state,
           FileCodeModel fileCodeModel,
           SyntaxNodeKey nodeKey,
           int? nodeKind)
        {
            var element = new CodeFunctionWithEventHandler(state, fileCodeModel, nodeKey, nodeKind);
            var result = (EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element);

            fileCodeModel.OnCodeElementCreated(nodeKey, (EnvDTE.CodeElement)result);

            return result;
        }
コード例 #4
0
        internal static new EnvDTE.CodeFunction Create(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            SyntaxNodeKey nodeKey,
            int?nodeKind)
        {
            var element = new CodeFunctionWithEventHandler(state, fileCodeModel, nodeKey, nodeKind);
            var result  = (EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element);

            fileCodeModel.OnCodeElementCreated(nodeKey, (EnvDTE.CodeElement)result);

            return(result);
        }