예제 #1
0
        public override IEnumerable <ITypeMember> GetTypeMembers()
        {
            var typeElement = TypeElement;

            return(CliMutable && typeElement != null
        ? FixedList.Of(new DefaultConstructor(typeElement)).Concat(base.GetTypeMembers())
        : base.GetTypeMembers());
        }
        public override IEnumerable <IPsiSourceFile> GetPsiSourceFilesFor(IProjectFile projectFile)
        {
            var extension = projectFile.Location.ExtensionWithDot;

            if (!CppProjectFileType.ALL_HLSL_EXTENSIONS.Contains(extension) &&
                !ShaderLabProjectFileType.SHADERLAB_EXTENSION.Equals(extension))
            {
                return(base.GetPsiSourceFilesFor(projectFile));
            }

            if (myModule.Files.TryGetValue(projectFile, out var psiFile))
            {
                return(FixedList.Of(psiFile));
            }

            return(EmptyList <IPsiSourceFile> .Instance);
        }
        public static IEnumerable <ShowCallsType> GetShowCallsEnumerable()
        {
            var result = FixedList.Of(ShowCallsType.INCOMING, ShowCallsType.OUTGOING);

            return(result);
        }