21 references to ERR_MemberNeedsType
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1217or ErrorCode.ERR_MemberNeedsType
Parser\LanguageParser.cs (1)
2620this.AddError(SyntaxFactory.MissingToken(SyntaxKind.VoidKeyword), ErrorCode.ERR_MemberNeedsType));
Symbols\Source\SourceConstructorSymbol.cs (1)
51diagnostics.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)
3478Diagnostic(ErrorCode.ERR_MemberNeedsType, "Compile").WithLocation(2, 84), 3528Diagnostic(ErrorCode.ERR_MemberNeedsType, "Compile").WithLocation(2, 84),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
PartialEventsAndConstructorsTests.cs (2)
48Diagnostic(ErrorCode.ERR_MemberNeedsType, "F").WithLocation(6, 17), 114Diagnostic(ErrorCode.ERR_MemberNeedsType, "F").WithLocation(3, 13),
Semantics\ExtensionTests.cs (1)
2416Diagnostic(ErrorCode.ERR_MemberNeedsType, "Extensions").WithLocation(3, 25),
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
1074Diagnostic(ErrorCode.ERR_MemberNeedsType, "M").WithLocation(1, 9),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\RefFieldTests.cs (1)
22187Diagnostic(ErrorCode.ERR_MemberNeedsType, "M").WithLocation(3, 18),
Semantics\SemanticErrorTests.cs (2)
14404Diagnostic(ErrorCode.ERR_MemberNeedsType, "Main"), 14407Diagnostic(ErrorCode.ERR_MemberNeedsType, "Helper").WithLocation(4, 5)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\SymbolErrorTests.cs (1)
21313Diagnostic(ErrorCode.ERR_MemberNeedsType, "Y").WithLocation(4, 20));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\ExtensionsParsingTests.cs (2)
2648Diagnostic(ErrorCode.ERR_MemberNeedsType, "Constructor").WithLocation(5, 9), 2719Diagnostic(ErrorCode.ERR_MemberNeedsType, "Constructor").WithLocation(5, 16),
Parsing\FileModifierParsingTests.cs (2)
2577Diagnostic(ErrorCode.ERR_MemberNeedsType, "record").WithLocation(3, 10) 2672Diagnostic(ErrorCode.ERR_MemberNeedsType, "record").WithLocation(3, 10)