private ExternalParameterCollection(
     CodeModelState state,
     AbstractExternalCodeMember parent,
     ProjectId projectId)
     : base(state, parent)
 {
     _projectId = projectId;
 }
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     AbstractExternalCodeMember parent,
     ProjectId projectId)
 {
     var collection = new ExternalParameterCollection(state, parent, projectId);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
        private ExternalCodeAccessorFunction(CodeModelState state, ProjectId projectId, IMethodSymbol symbol, AbstractExternalCodeMember parent)
            : base(state, projectId, symbol)
        {
            Debug.Assert(symbol.MethodKind == MethodKind.EventAdd ||
                         symbol.MethodKind == MethodKind.EventRaise ||
                         symbol.MethodKind == MethodKind.EventRemove ||
                         symbol.MethodKind == MethodKind.PropertyGet ||
                         symbol.MethodKind == MethodKind.PropertySet);

            _parentHandle = new ParentHandle<AbstractExternalCodeMember>(parent);
        }
예제 #4
0
        internal static EnvDTE.CodeFunction Create(
            CodeModelState state,
            ProjectId projectId,
            IMethodSymbol symbol,
            AbstractExternalCodeMember parent
            )
        {
            var element = new ExternalCodeAccessorFunction(state, projectId, symbol, parent);

            return((EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element));
        }
예제 #5
0
        internal static EnvDTE.CodeParameter Create(
            CodeModelState state,
            ProjectId projectId,
            IParameterSymbol symbol,
            AbstractExternalCodeMember parent
            )
        {
            var element = new ExternalCodeParameter(state, projectId, symbol, parent);

            return((EnvDTE.CodeParameter)ComAggregate.CreateAggregatedObject(element));
        }
예제 #6
0
        private ExternalCodeAccessorFunction(
            CodeModelState state,
            ProjectId projectId,
            IMethodSymbol symbol,
            AbstractExternalCodeMember parent
            ) : base(state, projectId, symbol)
        {
            Debug.Assert(
                symbol.MethodKind == MethodKind.EventAdd ||
                symbol.MethodKind == MethodKind.EventRaise ||
                symbol.MethodKind == MethodKind.EventRemove ||
                symbol.MethodKind == MethodKind.PropertyGet ||
                symbol.MethodKind == MethodKind.PropertySet
                );

            _parentHandle = new ParentHandle <AbstractExternalCodeMember>(parent);
        }
 internal static EnvDTE.CodeFunction Create(CodeModelState state, ProjectId projectId, IMethodSymbol symbol, AbstractExternalCodeMember parent)
 {
     var element = new ExternalCodeAccessorFunction(state, projectId, symbol, parent);
     return (EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element);
 }
예제 #8
0
 internal static EnvDTE.CodeParameter Create(CodeModelState state, ProjectId projectId, IParameterSymbol symbol, AbstractExternalCodeMember parent)
 {
     var element = new ExternalCodeParameter(state, projectId, symbol, parent);
     return (EnvDTE.CodeParameter)ComAggregate.CreateAggregatedObject(element);
 }