rokucommunity / rokucommunity/brighterscript

reflection

Open
#124 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BrighterScript New Language Feature
Dominant language
TypeScript
Stars
208
Forks
68
Avg merge
8h 39m
Merged PRs (30d)
39

Description

We need to have some of the following facilities:

  • Know what kind of class an object is
  • Get a reference to a class constructor, by it's name, so we can do create classes at runtime, from string class names
  • Potentially get pointers to functions in a namespace
  • Get the transpiled name of a method at runtime, so we can add observers without knowing implementation details.. e.g. m.dialog.observeField("close", BS.Reflection.getMethodName(MyNamespace.Function)), which will transpile to something like m.dialog.observeField("close", "MyNamespace_Function")

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing the compiler and runtime architecture to determine whether the requested reflection facilities are possible, then define separate scope and acceptance tests for class identification, runtime construction, namespace function lookup, and transpiled method names.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.