Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1046)

Unified Diff: pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart

Issue 2950193002: Clean up duplicate type inference code for fetching parameter types. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart b/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
index f314593ffe0cf628cd99e72f580c003a4a8ed659..c93784cc1e00c975354bc4abf8b57d04e43f1959 100644
--- a/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart
@@ -266,18 +266,6 @@ abstract class TypeInferenceEngineImpl extends TypeInferenceEngine {
/// a previous call to [createTopLevelTypeInferrer].
TypeInferrerImpl getMemberTypeInferrer(KernelMember member);
- DartType getNamedParameterType(FunctionType functionType, String name) {
- return functionType.getNamedParameter(name) ?? const DynamicType();
- }
-
- DartType getPositionalParameterType(FunctionType functionType, int i) {
- if (i < functionType.positionalParameters.length) {
- return functionType.positionalParameters[i];
- } else {
- return const DynamicType();
- }
- }
-
/// Performs type inference on the given [accessorNode].
void inferAccessor(AccessorNode accessorNode) {
assert(accessorNode.state == InferenceState.NotInferredYet);

Powered by Google App Engine
This is Rietveld 408576698