Skip to content

Conversation

@matanlurey
Copy link
Contributor

@matanlurey matanlurey commented Jan 12, 2018

Work towards #292.

I've made the feature package-private so we can iterate. It's possible we won't even be able to launch this as-is (if computeNode() explodes), but at least we will have the test case(s) when we have a replacement API, so I think it's worth checking (most) of this in.

/// const b = const bar.Bar();
/// ```
///
/// ... we'd assume that `b`'s element has a prefix of `bar`.
Copy link
Member

Choose a reason for hiding this comment

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

I'm still confused by this. There isn't anywhere we'd have the code bar.b - so why is it that b is considered to have a prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah this isn't an accurate example anymore. I'll update it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

});

test('should read the prefix of a type', () {
expect(testingPrefixForType(b, topLevelFieldTypes[0]), 'a_prefixed');
Copy link
Member

Choose a reason for hiding this comment

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

Can we look for specific variables rather than rely on the ordering?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@matanlurey matanlurey merged commit b3a5222 into dart-lang:master Jan 19, 2018
@matanlurey matanlurey deleted the prefix-for-type branch January 19, 2018 00:29
mosuem pushed a commit to dart-lang/build that referenced this pull request Dec 10, 2024
* Start adding LibraryReader.prefixForType.

* Update docs.

* More stable testing.
mosuem pushed a commit to dart-lang/build that referenced this pull request Dec 10, 2024
* Start adding LibraryReader.prefixForType.

* Update docs.

* More stable testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants