15 references to ERR_MemberNeedsType
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1155case ErrorCode.ERR_MemberNeedsType:
Parser\LanguageParser.cs (1)
2246this.AddError(SyntaxFactory.MissingToken(SyntaxKind.VoidKeyword), ErrorCode.ERR_MemberNeedsType));
Symbols\Source\SourceConstructorSymbol.cs (1)
50diagnostics.Add(ErrorCode.ERR_MemberNeedsType, location);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenConstructorInitTests.cs (3)
1285Diagnostic(ErrorCode.ERR_MemberNeedsType, "Garbage").WithLocation(4, 18), 1338Diagnostic(ErrorCode.ERR_MemberNeedsType, "C2").WithLocation(7, 12) 1363Diagnostic(ErrorCode.ERR_MemberNeedsType, "C2").WithLocation(7, 12)
CodeGen\CodeGenDeconstructTests.cs (1)
4988Diagnostic(ErrorCode.ERR_MemberNeedsType, "var").WithLocation(4, 5),
CodeGen\CodeGenExprLambdaTests.cs (2)
3750Diagnostic(ErrorCode.ERR_MemberNeedsType, "Compile").WithLocation(2, 84), 3800Diagnostic(ErrorCode.ERR_MemberNeedsType, "Compile").WithLocation(2, 84),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RefFieldTests.cs (1)
21580Diagnostic(ErrorCode.ERR_MemberNeedsType, "M").WithLocation(3, 18),
Semantics\SemanticErrorTests.cs (2)
14291Diagnostic(ErrorCode.ERR_MemberNeedsType, "Main"), 14294Diagnostic(ErrorCode.ERR_MemberNeedsType, "Helper").WithLocation(4, 5)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\SymbolErrorTests.cs (1)
21155Diagnostic(ErrorCode.ERR_MemberNeedsType, "Y").WithLocation(4, 20));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\FileModifierParsingTests.cs (2)
2576Diagnostic(ErrorCode.ERR_MemberNeedsType, "record").WithLocation(3, 10) 2671Diagnostic(ErrorCode.ERR_MemberNeedsType, "record").WithLocation(3, 10)