Esempio n. 1
0
 internal static EnvDTE80.CodeEvent CreateUnknown(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
 {
     var element = new CodeEvent(state, fileCodeModel, nodeKind, name);
     return (EnvDTE80.CodeEvent)ComAggregate.CreateAggregatedObject(element);
 }
Esempio n. 2
0
        internal static EnvDTE80.CodeEvent CreateUnknown(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            int nodeKind,
            string name)
        {
            var element = new CodeEvent(state, fileCodeModel, nodeKind, name);

            return((EnvDTE80.CodeEvent)ComAggregate.CreateAggregatedObject(element));
        }
Esempio n. 3
0
        internal static EnvDTE80.CodeEvent Create(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            SyntaxNodeKey nodeKey,
            int?nodeKind)
        {
            var element = new CodeEvent(state, fileCodeModel, nodeKey, nodeKind);
            var result  = (EnvDTE80.CodeEvent)ComAggregate.CreateAggregatedObject(element);

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

            return(result);
        }
Esempio n. 4
0
        internal static EnvDTE80.CodeEvent Create(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            SyntaxNodeKey nodeKey,
            int? nodeKind)
        {
            var element = new CodeEvent(state, fileCodeModel, nodeKey, nodeKind);
            var result = (EnvDTE80.CodeEvent)ComAggregate.CreateAggregatedObject(element);

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

            return result;
        }