Beispiel #1
0
 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);
 }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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;
        }