@@ -1256,7 +1256,7 @@ class BodyBuilder extends StackListenerImpl
12561256 if (body != null ) {
12571257 inferredFunctionBody = typeInferrer.inferFunctionBody (
12581258 this ,
1259- _context.memberCharOffset ,
1259+ _context.memberNameOffset ,
12601260 _context.returnTypeContext,
12611261 asyncModifier,
12621262 body);
@@ -1268,7 +1268,7 @@ class BodyBuilder extends StackListenerImpl
12681268
12691269 if (_context.returnType is ! OmittedTypeBuilder ) {
12701270 checkAsyncReturnType (asyncModifier, function.returnType,
1271- _context.memberCharOffset , _context.memberName.length );
1271+ _context.memberNameOffset , _context.memberNameLength );
12721272 }
12731273
12741274 if (_context.isSetter) {
@@ -1279,7 +1279,7 @@ class BodyBuilder extends StackListenerImpl
12791279 // Coverage-ignore(suite): Not run.
12801280 body? .fileOffset ??
12811281 // Coverage-ignore(suite): Not run.
1282- _context.memberCharOffset ;
1282+ _context.memberNameOffset ;
12831283 if (body == null ) {
12841284 body = new EmptyStatement ()..fileOffset = charOffset;
12851285 }
@@ -1844,7 +1844,7 @@ class BodyBuilder extends StackListenerImpl
18441844 buildProblem (
18451845 fasta.templateIllegalMixinDueToConstructors
18461846 .withArguments (_context.className),
1847- _context.memberCharOffset ,
1847+ _context.memberNameOffset ,
18481848 noLength);
18491849 }
18501850 if (initializers.last is SuperInitializer ) {
@@ -1979,7 +1979,7 @@ class BodyBuilder extends StackListenerImpl
19791979 explicitSuperInitializer = superInitializer;
19801980 }
19811981 if (argumentsOffset == - 1 ) {
1982- argumentsOffset = _context.memberCharOffset ;
1982+ argumentsOffset = _context.memberNameOffset ;
19831983 }
19841984
19851985 if (positionalArguments != null || namedArguments != null ) {
@@ -1996,19 +1996,19 @@ class BodyBuilder extends StackListenerImpl
19961996
19971997 if (superTarget == null ) {
19981998 String superclass = _context.superClassName;
1999- int length = _context.memberName.length ;
1999+ int length = _context.memberNameLength ;
20002000 if (length == 0 ) {
20012001 length = _context.className.length;
20022002 }
20032003 initializer = buildInvalidInitializer (
20042004 buildProblem (
20052005 fasta.templateSuperclassHasNoDefaultConstructor
20062006 .withArguments (superclass),
2007- _context.memberCharOffset ,
2007+ _context.memberNameOffset ,
20082008 length),
2009- _context.memberCharOffset );
2009+ _context.memberNameOffset );
20102010 } else if (checkArgumentsForFunction (superTarget.function, arguments,
2011- _context.memberCharOffset , const < TypeParameter > [])
2011+ _context.memberNameOffset , const < TypeParameter > [])
20122012 case LocatedMessage argumentIssue) {
20132013 List <int >? positionalSuperParametersIssueOffsets;
20142014 if (positionalSuperParametersAsArguments != null ) {
@@ -2081,7 +2081,7 @@ class BodyBuilder extends StackListenerImpl
20812081 initializer = errorMessageInitializer;
20822082 } else {
20832083 initializer = buildSuperInitializer (
2084- true , superTarget, arguments, _context.memberCharOffset );
2084+ true , superTarget, arguments, _context.memberNameOffset );
20852085 }
20862086 if (libraryFeatures.superParameters.isEnabled) {
20872087 InitializerInferenceResult inferenceResult =
@@ -2103,7 +2103,7 @@ class BodyBuilder extends StackListenerImpl
21032103 buildProblem (
21042104 fasta.templateIllegalMixinDueToConstructors
21052105 .withArguments (_context.className),
2106- _context.memberCharOffset ,
2106+ _context.memberNameOffset ,
21072107 noLength);
21082108 }
21092109 }
0 commit comments