LibCST/docs/source
Benjamin Woodruff 9d68a58c17 Rename position provider classes
I discussed the high-level idea here with @DragonMinded a few months
ago, but this isn't set in stone. If people have better ideas for names,
I'd love to hear it.

Publicly-Visible Changes
------------------------

- SyntacticPositionProvider is deprecated. The new name is
  PositionProvider.
- BasicPositionProvider is deprecated. The new name is
  WhitespaceInclusivePositionProvider.
- Documentation is updated to better explain these renamed providers and
  how to use them.

The prefixes "Syntactic" and "Basic" were pretty bad because they're
just concepts that we made up for LibCST.

The idea for the new names is that most users will want the
SyntacticPositionProvider, and so we should name things so that the user
will naturally gravitate towards the correct choice.

There's some argument that we shouldn't even bother exposing
WhitespaceInclusivePositionProvider, but we already need to implement it
as a fallback for PositionProvider, and it might be useful for some
niche use-cases.

Once we have another major version bump, we can remove the old class
names. The old class names have already be removed from the
documentation so that new users aren't tempted to use them.

Internal-Only Changes
---------------------

- `PositionProvider` is now `_PositionProviderUnion`. This type alias
  was never a public API (and probably never will be).
- `BasicCodegenState` is now
  `WhitespaceInclusivePositionProvidingCodegenState`.
- `SyntacticCodegenState` is now `PositionProvidingCodegenState`.
2019-10-17 14:59:52 -07:00
..
_static [doc] use png file and fix typo 2019-09-16 19:53:22 -07:00
_templates [doc] Why libcst? 2019-07-24 12:19:00 -07:00
conf.py add binder link to notebook tutorial page 2019-10-01 13:41:29 -07:00
index.rst [doc] add Scope Analysis tutorial 2019-10-08 15:48:59 -07:00
matchers.rst Add a tutorial for matchers. 2019-10-01 15:28:58 -07:00
matchers_tutorial.ipynb Add a tutorial for matchers. 2019-10-01 15:28:58 -07:00
metadata.rst Rename position provider classes 2019-10-17 14:59:52 -07:00
metadata_tutorial.ipynb Add type to init in tutorial 2019-09-18 13:44:50 -07:00
motivation.rst Add a motivation section for LibCST documentation. 2019-08-01 14:51:00 -07:00
nodes.rst Add documentation to matchers. 2019-10-01 15:28:58 -07:00
parser.rst Include ParserSyntaxError in parser documentation 2019-08-22 13:35:11 -07:00
scope_tutorial.ipynb address review feedback form #94 2019-10-08 15:48:59 -07:00
tutorial.ipynb update import paths in Jupyter notebook 2019-09-16 19:53:22 -07:00
visitors.rst Fix visitor helper function name pattern in docs 2019-10-04 21:40:52 -07:00
why_libcst.rst Lots of work on Why LibCST section 2019-08-06 16:55:08 -07:00