Mark Context and Style as final (#995)

These classes are not designed for extension outside of the package, and
have never been so. Make this explicit with `final` modifiers on
`Context` and `Style` along with the package-private subtypes of
`Style`.

Some code relies on `style == p.Style.windows` type checks, which work
as long as `Style` is used like an enum as intended. Making the classes
final makes this pattern explicitly safe because the package only allows
for instances where identity based equality matches the semantics.

Switch the style subclass libraries to `part of` files.
8 files changed
tree: 3bcdef1d33f9841b12166f0d5c31f5d674a9de52
  1. .gemini/
  2. .github/
  3. pkgs/
  4. CONTRIBUTING.md
  5. LICENSE
  6. README.md
README.md

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

PackageDescriptionIssuesVersion
argsLibrary for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options.issuespub package
asyncUtility functions and classes related to the ‘dart:async’ library.issuespub package
charactersString replacement with operations that are Unicode/grapheme cluster aware.issuespub package
collectionCollections and utilities functions and classes related to collections.issuespub package
convertUtilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types.issuespub package
cryptoImplementations of SHA, MD5, and HMAC cryptographic functions.issuespub package
fixnumLibrary for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes.issuespub package
lintsOfficial Dart lint rules. Defines the ‘core’ and ‘recommended’ set of lints suggested by the Dart team.issuespub package
loggingProvides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger.issuespub package
os_detectPlatform independent OS detection.issuespub package
pathA string-based path manipulation library.issuespub package
platformA pluggable, mockable platform information abstraction for Dart.issuespub package
typed_dataUtility functions and classes related to the dart:typed_data library.issuespub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.