anchor.diff:  class C {
     int length {}
     void foo() {}
  -}''', codes: [ParserErrorCode.MISSING_GET]);
  +}''', errors: [expectedError(ParserErrorCode.MISSING_GET, 16, 6)]);
       expect(unit, isNotNull);
       ClassDeclaration classDeclaration =
           unit.declarations[0] as ClassDeclaration;
  
positive.code:     createParser('(a b: c)');
      ArgumentList argumentList = parser.parseArgumentList();
      expectNotNullIfNoErrors(argumentList);
      listener.assertErrorsWithCodes([ParserErrorCode.EXPECTED_TOKEN]);
      expect(argumentList.arguments, hasLength(2));
    }
  
  
negative.code:     createParser('(var int x)');
      FormalParameterList list = parser.parseFormalParameterList();
      expectNotNullIfNoErrors(list);
      listener.assertErrors([expectedError(ParserErrorCode.VAR_AND_TYPE, 5, 3)]);
    }
  
    void test_varAndType_topLevelVariable() {
      parseCompilationUnit("var int x;",
          errors: [expectedError(ParserErrorCode.VAR_AND_TYPE, 4, 3)]);
    }
  
    void test_varAsTypeName_as() {
      parseExpression("x as var",
          errors: [expectedError(ParserErrorCode.VAR_AS_TYPE_NAME, 7, 3)]);
    }
  
    void test_varClass() {
      parseCompilationUnit("var class C {}",
          errors: usingFastaParser
              ? [expectedError(ParserErrorCode.EXTRANEOUS_MODIFIER, 0, 3)]
              : [expectedError(ParserErrorCode.VAR_CLASS, 0, 3)]);
    }
  
    void test_varEnum() {
      parseCompilationUnit("var enum E {ONE}",
          errors: usingFastaParser
              ? [expectedError(ParserErrorCode.EXTRANEOUS_MODIFIER, 0, 3)]
              : [expectedError(ParserErrorCode.VAR_ENUM, 0, 3)]);
    }
  
    void test_varReturnType() {
      createParser('var m() {}');
      ClassMember member = parser.parseClassMember('C');
      expectNotNullIfNoErrors(member);
      listener
          .assertErrors([expectedError(ParserErrorCode.VAR_RETURN_TYPE, 0, 3)]);
    }
  
    void test_varTypedef() {
      parseCompilationUnit("var typedef F();",
          errors: usingFastaParser
              ? [expectedError(ParserErrorCode.EXTRANEOUS_MODIFIER, 0, 3)]
              : [expectedError(ParserErrorCode.VAR_TYPEDEF, 0, 3)]);
    }
  
    void test_voidParameter() {
  