Skip to content

Unsupported operation: location #309

@h3x4d3c1m4l

Description

@h3x4d3c1m4l

Hi! Very nice work on this library. Unfortunately it looks like it is not able to get the source code location of classes in the same library.

Example Reflector code:

class Reflector extends Reflectable {

  const Reflector() : super(typeCapability, typingCapability);

}

const reflector = Reflector();

@reflector
class Solver {
   ...
}

Code crashing with error Unsupported operation: location:

TypeMirror aMirror = reflector.reflectType(Solver);
var srcUri = aMirror.location.sourceUri;

As both Reflector and Solver class are in the same library, I would expect it to be able to get the source code location of the Solver class.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions