Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Conversation

MichaelRFairhurst
Copy link
Contributor

Move to a class-instantiation paradigm; instantiate the type to bounds
before building the component (still using custom instantiation logic
while issue #91 is blocked), and use that to resolve getters/setters up
the inheritance tree.

No change to the @input() and @output() workflows because those don't
involve inheritance.

Move to a class-instantiation paradigm; instantiate the type to bounds
before building the component (still using custom instantiation logic
while issue dart-archive#91 is blocked), and use that to resolve getters/setters up
the inheritance tree.

No change to the @input() and @output() workflows because those don't
involve inheritance.
// Since <my-comp></my-comp> represents an instantiation of MyComp,
// especially when MyComp is generic or its superclasses are, we need
// this. Cache instead of passing around everywhere.
InterfaceType _instantiatedClassType;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use DartDoc style comments, /// or /** */.
EOL comments are not attached well enough to their target.

@@ -297,6 +302,7 @@ class BuildUnitDirectivesTask extends SourceBasedAnalysisTask
AbstractDirective _createDirective(
ast.ClassDeclaration classDeclaration, ast.Annotation node) {
ClassElement classElement = classDeclaration.element;
_instantiatedClassType = _instantiateClass(classElement);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could do the same with ClassElement.
For example _currentElement and _currentType.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants