예제 #1
0
 internal static EnvDTE.CodeVariable CreateUnknown(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
 {
     var element = new CodeVariable(state, fileCodeModel, nodeKind, name);
     return (EnvDTE.CodeVariable)ComAggregate.CreateAggregatedObject(element);
 }
예제 #2
0
        internal static EnvDTE.CodeVariable CreateUnknown(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            int nodeKind,
            string name)
        {
            var element = new CodeVariable(state, fileCodeModel, nodeKind, name);

            return((EnvDTE.CodeVariable)ComAggregate.CreateAggregatedObject(element));
        }
예제 #3
0
        internal static EnvDTE.CodeVariable Create(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            SyntaxNodeKey nodeKey,
            int?nodeKind)
        {
            var element = new CodeVariable(state, fileCodeModel, nodeKey, nodeKind);
            var result  = (EnvDTE.CodeVariable)ComAggregate.CreateAggregatedObject(element);

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

            return(result);
        }
예제 #4
0
        internal static EnvDTE.CodeVariable Create(
            CodeModelState state,
            FileCodeModel fileCodeModel,
            SyntaxNodeKey nodeKey,
            int? nodeKind)
        {
            var element = new CodeVariable(state, fileCodeModel, nodeKey, nodeKind);
            var result = (EnvDTE.CodeVariable)ComAggregate.CreateAggregatedObject(element);

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

            return result;
        }