Skip to content

Annotation for Shared/Static members of a Predeclared class #3859

Open
@ThunderFrame

Description

@ThunderFrame

Having a Predeclared class with a factory method, or with members that are intended to be used as Shared/Static members, it would be useful to annotate those members as being '@Shared.

Once RD knows which members are Shared, it could:

  • Offer an inspection for usages of instance members on Predeclared classes
  • Only show Shared members in Predeclared usage Intellisense
  • Identify Shared members in a custom Object Browser

@retailcoder: that would make UserForm1.Show much less friendly all of a sudden

'Class Foo
Private counter As Long
Public Sub Increment
  counter = counter + 1
End Sub

'@Shared
Public Function Create() As Foo
  'Return a new Foo
  Set Create = New Foo
End Function

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-annotationsfeature-inspections

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions