Files
sdk/pkg/analyzer_testing/api.txt
T
FMorschel 240eda5647 [analyzer] Migrates to contexMessages from analyzer_testing package
This also includes some small refactorings for parameter names to start using the diagnostic wording instead of error. As well as a small change to `contextMessage` and related to use a list of `Pattern`s instead of a single `String` for better matching.

In future CLs, the TODOs added in this one will be addressed so we can fully migrate this. Added them because of the size of the CL.

Bug: https://github.com/dart-lang/sdk/issues/61557
Change-Id: I5557668a1baed98faff977255c9f22e0d9d96008
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452180
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Felipe Morschel <git@fmorschel.dev>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2025-10-20 13:37:00 -07:00

96 lines
5.0 KiB
Plaintext

package:analyzer_testing/analysis_rule/analysis_rule.dart:
contextMessage (function: ExpectedContextMessage Function(File, int, int, {deprecated String? text, List<Pattern> textContains}))
error (function: ExpectedDiagnostic Function(DiagnosticCode, int, int, {List<ExpectedContextMessage>? contextMessages, Pattern? correctionContains, deprecated Pattern? messageContains, List<Pattern> messageContainsAll}))
AnalysisRuleTest (class extends PubPackageResolutionTest):
new (constructor: AnalysisRuleTest Function())
analysisRule (getter: String)
assertNoPubspecDiagnostics (method: Future<void> Function(String))
assertPubspecDiagnostics (method: Future<void> Function(String, List<ExpectedDiagnostic>))
correctionMessage (method: String Function(List<Diagnostic>))
lint (method: ExpectedDiagnostic Function(int, int, {List<ExpectedContextMessage>? contextMessages, Pattern? correctionContains, deprecated Pattern? messageContains, List<Pattern> messageContainsAll, String? name}))
setUp (method: void Function())
unexpectedMessage (method: String Function(List<Diagnostic>))
package:analyzer_testing/experiments/experiments.dart:
experimentsForTests (static getter: List<String>)
experimentsForTests= (static setter: List<String>)
package:analyzer_testing/mock_packages/mock_packages.dart:
BlazeMockPackages (class extends Object):
instance (static getter: BlazeMockPackages)
addFlutter (method: void Function(ResourceProvider))
addMeta (method: void Function(ResourceProvider))
MockPackagesMixin (mixin on Object):
packagesRootPath (getter: String)
pathContext (getter: Context)
resourceProvider (getter: ResourceProvider)
addAngularMeta (method: Folder Function())
addFfi (method: Folder Function())
addFixnum (method: Folder Function())
addFlutter (method: Folder Function())
addFlutterTest (method: Folder Function())
addJs (method: Folder Function())
addKernel (method: Folder Function())
addMeta (method: Folder Function())
addPedantic (method: Folder Function())
addTestReflectiveLoader (method: Folder Function())
addUI (method: Folder Function())
addVectorMath (method: Folder Function())
package:analyzer_testing/package_root.dart:
packageRoot (static getter: String)
package:analyzer_testing/resource_provider_mixin.dart:
ResourceProviderMixin (mixin on Object):
pathContext (getter: Context)
resourceProvider (getter: ResourceProvider)
convertPath (method: String Function(String))
deleteFile (method: void Function(String))
deleteFolder (method: void Function(String))
fromUri (method: String Function(Uri))
getFile (method: File Function(String))
getFolder (method: Folder Function(String))
join (method: String Function(String, [String?, String?, String?, String?, String?, String?, String?]))
modifyFile2 (method: void Function(File, String))
newAnalysisOptionsYamlFile (method: File Function(String, String))
newBazelBuildFile (method: File Function(String, String))
newBuildGnFile (method: File Function(String, String))
newFile (method: File Function(String, String))
newFolder (method: Folder Function(String))
newLink (method: Link Function(String, String))
newPackageConfigJsonFile (method: File Function(String, String))
newPackageConfigJsonFileFromBuilder (method: File Function(String, PackageConfigFileBuilder))
newPubspecYamlFile (method: File Function(String, String))
newSinglePackageConfigJsonFile (method: void Function({required String name, required String packagePath}))
toUri (method: Uri Function(String))
toUriStr (method: String Function(String))
package:analyzer_testing/src/analysis_rule/pub_package_resolution.dart:
ExpectedContextMessage (non-public)
ExpectedDiagnostic (non-public)
PubPackageResolutionTest (non-public)
package:analyzer_testing/utilities/extensions/resource_provider.dart:
ResourceProviderExtension (extension on ResourceProvider):
convertPath (method: String Function(String))
package:analyzer_testing/utilities/utilities.dart:
analysisOptionsContent (function: String Function({Map<String, Object?> errors, List<String> experiments, List<String> includes, List<String> legacyPlugins, List<String> rules, bool strictCasts, bool strictInference, bool strictRawTypes, List<String> unignorableNames}))
pubspecYamlContent (function: String Function({List<String> dependencies, String? name, String? sdkVersion}))
dart:async:
Future (referenced)
dart:core:
List (referenced)
Map (referenced)
Object (referenced)
Pattern (referenced)
String (referenced)
Uri (referenced)
bool (referenced)
int (referenced)
package:_fe_analyzer_shared/src/base/errors.dart:
Diagnostic (referenced)
DiagnosticCode (referenced)
package:analyzer/file_system/file_system.dart:
File (referenced)
Folder (referenced)
Link (referenced)
ResourceProvider (referenced)
package:analyzer/utilities/package_config_file_builder.dart:
PackageConfigFileBuilder (referenced)
package:path/src/context.dart:
Context (referenced)