internal static new EnvDTE.CodeFunction CreateUnknown(
    CodeModelState state,
    FileCodeModel fileCodeModel,
    int nodeKind,
    string name)
 {
     var element = new CodeFunctionDeclareDecl(state, fileCodeModel, nodeKind, name);
     return (EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element);
 }
        internal static new EnvDTE.CodeFunction CreateUnknown(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            int nodeKind,
            string name)
        {
            var element = new CodeFunctionDeclareDecl(state, fileCodeModel, nodeKind, name);

            return((EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element));
        }
        internal static new EnvDTE.CodeFunction Create(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            SyntaxNodeKey nodeKey,
            int?nodeKind)
        {
            var element = new CodeFunctionDeclareDecl(state, fileCodeModel, nodeKey, nodeKind);
            var result  = (EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element);

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

            return(result);
        }
        internal static new EnvDTE.CodeFunction Create(
          CodeModelState state,
          FileCodeModel fileCodeModel,
          SyntaxNodeKey nodeKey,
          int? nodeKind)
        {
            var element = new CodeFunctionDeclareDecl(state, fileCodeModel, nodeKey, nodeKind);
            var result = (EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element);

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

            return result;
        }