public DeclaredElementInfoWithoutParameterInfo(string methodDeclaredName, DeclaredElementInstance instance,
                                                PsiLanguageType language,
                                                ILookupItemsOwner lookupItemsOwner,
                                                IElementPointerFactory elementPointerFactory)
     : base(methodDeclaredName, instance, language, lookupItemsOwner, elementPointerFactory)
 {
 }
            public ThrowByTypeItem([NotNull] PrefixExpressionContext context, bool hasRequiredArguments)
                : base("throw", context)
            {
                var executionContext = context.PostfixContext.ExecutionContext;

                myLookupItemsOwner     = executionContext.LookupItemsOwner;
                myHasRequiredArguments = hasRequiredArguments;
            }
            public ArgumentItem([NotNull] PrefixExpressionContext[] contexts, [NotNull] PostfixTemplateContext postfixContext)
                : base("arg", contexts)
            {
                var executionContext = postfixContext.ExecutionContext;

                myLookupItemsOwner = executionContext.LookupItemsOwner;
                myTemplatesManager = executionContext.LiveTemplatesManager;
            }
            public VarByTypeItem([NotNull] PrefixExpressionContext context, [NotNull] IDeclaredType referencedType)
                : base("var", context)
            {
                myReferencedType   = referencedType;
                myLookupItemsOwner = context.PostfixContext.ExecutionContext.LookupItemsOwner;

                var canInstantiate = TypeUtils.CanInstantiateType(referencedType, context.Expression);

                myHasRequiredArguments = (canInstantiate & CanInstantiate.ConstructorWithParameters) != 0;
            }
            public ParseItem([NotNull] string shortcut, [NotNull] PrefixExpressionContext context, bool isTryParse)
                : base(shortcut, context)
            {
                myIsTryParse = isTryParse;

                var executionContext = context.PostfixContext.ExecutionContext;

                myTemplatesManager = executionContext.LiveTemplatesManager;
                myLookupItemsOwner = executionContext.LookupItemsOwner;
            }
 public PostfixExecutionContext([NotNull] Lifetime lifetime,
                                [NotNull] ISolution solution,
                                [NotNull] ITextControl textControl,
                                [NotNull] ILookupItemsOwner lookupItemsOwner,
                                [NotNull] string reparseString,
                                bool isAutoCompletion)
 {
     Lifetime             = lifetime;
     Solution             = solution;
     TextControl          = textControl;
     LookupItemsOwner     = lookupItemsOwner;
     ReparseString        = reparseString;
     IsAutoCompletion     = isAutoCompletion;
     LiveTemplatesManager = solution.GetComponent <LiveTemplatesManager>();
 }
 public NewTypeItem([NotNull] PrefixExpressionContext context, bool hasRequiredArguments)
     : base("new", context)
 {
     myHasRequiredArguments = hasRequiredArguments;
     myLookupItemsOwner     = context.PostfixContext.ExecutionContext.LookupItemsOwner;
 }
예제 #8
0
 public ReflectionMemberLookupItem(string name, string code, DeclaredElementInstance instance, CSharpCodeCompletionContext context, ILookupItemsOwner owner)
     : base(name, instance, context, owner)
 {
     _code    = code;
     _context = context;
 }
 public ReflectionGenericMethodLookupItem(string name, DeclaredElementInstance instance, CSharpCodeCompletionContext context, ILookupItemsOwner owner)
     : base(name, string.Empty, instance, context, owner)
 {
     _instance = instance;
 }