Ejemplo n.º 1
0
 private PartialTypeCollection(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     AbstractCodeType parent)
     : base(state, parent)
 {
 }
Ejemplo n.º 2
0
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     AbstractCodeElement parent)
 {
     var collection = new AttributeCollection(state, parent);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 3
0
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     CodeFunction parent)
 {
     var collection = new OverloadsCollection(state, parent);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 4
0
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     object parent)
 {
     var collection = new EmptyCollection(state, parent);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 5
0
 private CodeVariable(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind, name)
 {
 }
Ejemplo n.º 6
0
 private ExternalParameterCollection(
     CodeModelState state,
     AbstractExternalCodeMember parent,
     ProjectId projectId)
     : base(state, parent)
 {
     _projectId = projectId;
 }
Ejemplo n.º 7
0
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     AbstractExternalCodeMember parent,
     ProjectId projectId)
 {
     var collection = new ExternalParameterCollection(state, parent, projectId);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 8
0
        private ExternalNamespaceEnumerator(CodeModelState state, ProjectId projectId, SymbolKey namespaceSymbolId)
        {
            _state = state;
            _projectId = projectId;
            _namespaceSymbolId = namespaceSymbolId;

            _childEnumerator = ChildrenOfNamespace(state, projectId, namespaceSymbolId).GetEnumerator();
        }
Ejemplo n.º 9
0
 private PartialTypeCollection(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     AbstractCodeType parent)
     : base(state, parent)
 {
     _fileCodeModelHandle = new ComHandle<EnvDTE.FileCodeModel, FileCodeModel>(fileCodeModel);
 }
 private ExternalOverloadsCollection(
     CodeModelState state,
     ExternalCodeFunction parent,
     ProjectId projectId)
     : base(state, parent)
 {
     _projectId = projectId;
 }
Ejemplo n.º 11
0
 private CodeFunctionDeclareDecl(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     SyntaxNodeKey nodeKey,
     int? nodeKind)
     : base(state, fileCodeModel, nodeKey, nodeKind)
 {
 }
Ejemplo n.º 12
0
 private CodeNamespace(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     SyntaxNodeKey nodeKey,
     int? nodeKind)
     : base(state, fileCodeModel, nodeKey, nodeKind)
 {
 }
Ejemplo n.º 13
0
        internal static EnvDTE80.CodeAttributeArgument Create(CodeModelState state, CodeAttribute parent, int index)
        {
            Debug.Assert(parent != null);
            Debug.Assert(index >= 0);

            var newElement = new CodeAttributeArgument(state, parent, index);
            return (EnvDTE80.CodeAttributeArgument)ComAggregate.CreateAggregatedObject(newElement);
        }
Ejemplo n.º 14
0
 private CodeStruct(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind, name)
 {
 }
Ejemplo n.º 15
0
 private CodeStruct(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     SyntaxNodeKey nodeKey,
     int? nodeKind)
     : base(state, fileCodeModel, nodeKey, nodeKind)
 {
 }
Ejemplo n.º 16
0
 private CodeNamespace(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind, name)
 {
 }
Ejemplo n.º 17
0
 internal AbstractCodeType(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind, name)
 {
 }
Ejemplo n.º 18
0
 internal AbstractCodeType(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     SyntaxNodeKey nodeKey,
     int? nodeKind)
     : base(state, fileCodeModel, nodeKey, nodeKind)
 {
 }
Ejemplo n.º 19
0
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     AbstractCodeElement parent,
     params ICodeElements[] collections)
 {
     var collection = new UnionCollection(state, parent, collections);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 20
0
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     AbstractCodeType parent)
 {
     var collection = new PartialTypeCollection(state, fileCodeModel, parent);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 21
0
 private UnionCollection(
     CodeModelState state,
     AbstractCodeElement parent,
     ICodeElements[] collections)
     : base(state, parent)
 {
     _collections = collections;
 }
Ejemplo n.º 22
0
 private CodeFunctionWithEventHandler(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     SyntaxNodeKey nodeKey,
     int? nodeKind)
     : base(state, fileCodeModel, nodeKey, nodeKind)
 {
 }
Ejemplo n.º 23
0
 private CodeFunctionWithEventHandler(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind, name)
 {
 }
Ejemplo n.º 24
0
 private CodeFunctionDeclareDecl(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind, name)
 {
 }
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     ExternalCodeFunction parent,
     ProjectId projectId)
 {
     var collection = new ExternalOverloadsCollection(state, parent, projectId);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 26
0
 private CodeOptionsStatement(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind)
 {
     _name = name;
 }
Ejemplo n.º 27
0
 private CodeInheritsStatement(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
     : base(state, fileCodeModel, nodeKind)
 {
     _namespaceName = name;
 }
Ejemplo n.º 28
0
 internal static EnvDTE.CodeNamespace CreateUnknown(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
 {
     var element = new CodeNamespace(state, fileCodeModel, nodeKind, name);
     return (EnvDTE.CodeNamespace)ComAggregate.CreateAggregatedObject(element);
 }
Ejemplo n.º 29
0
 internal static EnvDTE.CodeElements Create(
     CodeModelState state,
     object parent,
     FileCodeModel fileCodeModel,
     SyntaxNodeKey nodeKey)
 {
     var collection = new TypeCollection(state, parent, fileCodeModel, nodeKey);
     return (EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection);
 }
Ejemplo n.º 30
0
 internal static EnvDTE80.CodeElement2 CreateUnknown(
     CodeModelState state,
     FileCodeModel fileCodeModel,
     int nodeKind,
     string name)
 {
     var element = new CodeOptionsStatement(state, fileCodeModel, nodeKind, name);
     return (EnvDTE80.CodeElement2)ComAggregate.CreateAggregatedObject(element);
 }
Ejemplo n.º 31
0
 private EmptyCollection(
     CodeModelState state,
     object parent)
     : base(state, parent)
 {
 }
Ejemplo n.º 32
0
 internal ExternalNamespaceCollection(CodeModelState state, object parent, ProjectId projectId, INamespaceSymbol namespaceSymbol)
     : base(state, parent)
 {
     _projectId         = projectId;
     _namespaceSymbolId = namespaceSymbol.GetSymbolKey();
 }
Ejemplo n.º 33
0
 private ExternalCodeUnknown(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
     : base(state, projectId, typeSymbol)
 {
     _name = typeSymbol.Name;
 }
Ejemplo n.º 34
0
 private CodeAttributeArgument(CodeModelState state, CodeAttribute parent, int index)
     : base(state, parent.FileCodeModel)
 {
     _parentHandle = new ParentHandle <CodeAttribute>(parent);
     _index        = index;
 }
Ejemplo n.º 35
0
 private ExternalCodeFunction(CodeModelState state, ProjectId projectId, IMethodSymbol symbol)
     : base(state, projectId, symbol)
 {
 }
Ejemplo n.º 36
0
        internal static EnvDTE.CodeProperty Create(CodeModelState state, ProjectId projectId, IPropertySymbol symbol)
        {
            var element = new ExternalCodeProperty(state, projectId, symbol);

            return((EnvDTE.CodeProperty)ComAggregate.CreateAggregatedObject(element));
        }
Ejemplo n.º 37
0
 internal AbstractExternalCodeType(CodeModelState state, ProjectId projectId, ITypeSymbol symbol)
     : base(state, projectId, symbol)
 {
 }
Ejemplo n.º 38
0
        internal static EnvDTE.CodeDelegate Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
        {
            var element = new ExternalCodeDelegate(state, projectId, typeSymbol);

            return((EnvDTE.CodeDelegate)ComAggregate.CreateAggregatedObject(element));
        }
 private ExternalCodeVariable(CodeModelState state, ProjectId projectId, ISymbol symbol)
     : base(state, projectId, symbol)
 {
 }
Ejemplo n.º 40
0
        internal static EnvDTE.CodeNamespace Create(CodeModelState state, ProjectId projectId, INamespaceSymbol namespaceSymbol)
        {
            var newElement = new ExternalCodeNamespace(state, projectId, namespaceSymbol);

            return((EnvDTE.CodeNamespace)ComAggregate.CreateAggregatedObject(newElement));
        }
Ejemplo n.º 41
0
 private ExternalMemberCollection(CodeModelState state, object parent, ProjectId projectId, ITypeSymbol typeSymbol)
     : base(state, parent)
 {
     _projectId    = projectId;
     _typeSymbolId = typeSymbol.GetSymbolKey();
 }
Ejemplo n.º 42
0
        internal static IEnumerator Create(CodeModelState state, ProjectId projectId, SymbolKey namespaceSymbolId)
        {
            var newEnumerator = new ExternalNamespaceEnumerator(state, projectId, namespaceSymbolId);

            return((IEnumerator)ComAggregate.CreateAggregatedObject(newEnumerator));
        }
Ejemplo n.º 43
0
 private ExternalCodeNamespace(CodeModelState state, ProjectId projectId, INamespaceSymbol namespaceSymbol)
     : base(state, projectId, namespaceSymbol)
 {
 }
Ejemplo n.º 44
0
        internal static EnvDTE.CodeElement Create(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
        {
            var newElement = new ExternalCodeUnknown(state, projectId, typeSymbol);

            return((EnvDTE.CodeElement)ComAggregate.CreateAggregatedObject(newElement));
        }
Ejemplo n.º 45
0
 private AttributeCollection(
     CodeModelState state,
     AbstractCodeElement parent)
     : base(state, parent)
 {
 }
Ejemplo n.º 46
0
 private ExternalCodeEvent(CodeModelState state, ProjectId projectId, IEventSymbol symbol)
     : base(state, projectId, symbol)
 {
 }
Ejemplo n.º 47
0
 private ExternalCodeDelegate(CodeModelState state, ProjectId projectId, ITypeSymbol symbol)
     : base(state, projectId, symbol)
 {
 }
Ejemplo n.º 48
0
 private ExternalCodeEnum(CodeModelState state, ProjectId projectId, ITypeSymbol typeSymbol)
     : base(state, projectId, typeSymbol)
 {
 }
Ejemplo n.º 49
0
        internal static EnvDTE.CodeFunction Create(CodeModelState state, ProjectId projectId, IMethodSymbol symbol)
        {
            var element = new ExternalCodeFunction(state, projectId, symbol);

            return((EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(element));
        }
Ejemplo n.º 50
0
        internal static EnvDTE80.CodeEvent Create(CodeModelState state, ProjectId projectId, IEventSymbol symbol)
        {
            var element = new ExternalCodeEvent(state, projectId, symbol);

            return((EnvDTE80.CodeEvent)ComAggregate.CreateAggregatedObject(element));
        }
        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));
        }
Ejemplo n.º 52
0
 private AttributeArgumentCollection(CodeModelState state, CodeAttribute parent)
     : base(state, parent)
 {
 }
Ejemplo n.º 53
0
 private OverloadsCollection(
     CodeModelState state,
     CodeFunction parent)
     : base(state, parent)
 {
 }
        internal static EnvDTE.CodeVariable Create(CodeModelState state, ProjectId projectId, ISymbol symbol)
        {
            var element = new ExternalCodeVariable(state, projectId, symbol);

            return((EnvDTE.CodeVariable)ComAggregate.CreateAggregatedObject(element));
        }
Ejemplo n.º 55
0
 private ParameterCollection(
     CodeModelState state,
     AbstractCodeMember parent)
     : base(state, parent)
 {
 }
Ejemplo n.º 56
0
        internal static EnvDTE.CodeElements Create(CodeModelState state, CodeAttribute parent)
        {
            var collection = new AttributeArgumentCollection(state, parent);

            return((EnvDTE.CodeElements)ComAggregate.CreateAggregatedObject(collection));
        }
Ejemplo n.º 57
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));
        }
Ejemplo n.º 58
0
 private ExternalCodeParameter(CodeModelState state, ProjectId projectId, IParameterSymbol symbol, AbstractExternalCodeElement parent)
     : base(state, projectId, symbol)
 {
     _parentHandle = new ParentHandle <AbstractExternalCodeElement>(parent);
 }
Ejemplo n.º 59
0
 private ExternalCodeProperty(CodeModelState state, ProjectId projectId, IPropertySymbol symbol)
     : base(state, projectId, symbol)
 {
 }
Ejemplo n.º 60
0
        internal static EnvDTE.CodeFunction Create(CodeModelState state, AbstractCodeMember parent, MethodKind kind)
        {
            var newElement = new CodeAccessorFunction(state, parent, kind);

            return((EnvDTE.CodeFunction)ComAggregate.CreateAggregatedObject(newElement));
        }