anchor.diff:      safelyRecordKeywordCompletion(node.yieldKeyword);
       return super.visitYieldStatement(node);
     }
  +
  +  bool _doIncludeSimpleIdentifier(SimpleIdentifier node) {
  +    // Do not continue if this node is synthetic, or if the node is in a
  +    // declaration context
  +    if (node == null || node.isSynthetic || node.inDeclarationContext()) {
  +      return false;
  +    }
  +    // If we are in a comment reference context, return if we should include
  +    // such identifiers.
  +    if (node.thisOrAncestorOfType<CommentReference>() != null) {
  +      return _doExpectCommentRefs;
  +    }
  +    return true;
  +  }
   }
  
positive.code:   /// include it again: "get get foo() => _foo;".
    final bool _doExpectKeywordCompletions = false;
  
    ExpectedCompletionsVisitor() : expectedCompletions = <ExpectedCompletion>[];
  
    safelyRecordEntity(SyntacticEntity entity,
  
negative.code: 
    @override
    visitSimpleIdentifier(SimpleIdentifier node) {
      if (_doIncludeSimpleIdentifier(node)) {
        var elementKind;
        if (node.staticElement?.kind != null) {
          elementKind = protocol.convertElementKind(node.staticElement?.kind);
  