27 references to GetFirstLocationOrNone
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Statements.cs (2)
3917Location diagnosticsLocation = constructor.GetFirstLocationOrNone(); 3978Location diagnosticsLocation = constructor.GetFirstLocationOrNone();
Binder\InMethodBinder.cs (1)
247var oldLocation = parameter.GetFirstLocationOrNone();
CodeGen\EmitStatement.cs (1)
1771local.GetFirstLocationOrNone(),
Compiler\ClsComplianceChecker.cs (1)
1195if (_diagnostics.ReportUseSite(attributeClass, symbol.GetFirstLocationOrNone()))
FlowAnalysis\DefiniteAssignment.cs (4)
410: CurrentSymbol.GetFirstLocationOrNone(); 1953parameter.GetFirstLocationOrNone(), parameter.Name); 2327Diagnostics.Add(assigned && _writtenVariables.Contains(symbol) ? ErrorCode.WRN_UnreferencedVarAssg : ErrorCode.WRN_UnreferencedVar, symbol.GetFirstLocationOrNone(), symbol.Name); 2346Diagnostics.Add(ErrorCode.WRN_UnreferencedLocalFunction, symbol.GetFirstLocationOrNone(), symbol.Name);
FlowAnalysis\NullableWalker.cs (1)
790Diagnostics.Add(info, exitLocation ?? symbol.GetFirstLocationOrNone());
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
336F.Diagnostics.Add(field.GetFirstLocationOrNone(), useSiteInfo);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
274F.Diagnostics.Add(hoistedLocal.GetFirstLocationOrNone(), useSiteInfo);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
438F.Diagnostics.Add(field.GetFirstLocationOrNone(), useSiteInfo);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
192: internalSymbol2.GetFirstLocationOrNone().SourceTree is { } tree ? $"<tree {internalSymbol2.DeclaringCompilation.GetSyntaxTreeOrdinal(tree)}>"
Symbols\Source\SourceAssemblySymbol.cs (6)
1094diagnostics.Add(ErrorCode.ERR_DuplicateNameInNS, y.GetFirstLocationOrNone(), 2736diagnostics.Add(ErrorCode.WRN_UnreferencedEvent, associatedPropertyOrEvent.GetFirstLocationOrNone(), associatedPropertyOrEvent); 2741diagnostics.Add(ErrorCode.WRN_UnreferencedField, field.GetFirstLocationOrNone(), field); 2745diagnostics.Add(ErrorCode.WRN_UnassignedInternalRefField, field.GetFirstLocationOrNone(), field); 2749diagnostics.Add(ErrorCode.WRN_UnassignedInternalField, field.GetFirstLocationOrNone(), field, DefaultValue(field.Type)); 2769diagnostics.Add(ErrorCode.WRN_UnreferencedFieldAssg, field.GetFirstLocationOrNone(), field);
Symbols\Source\SourceModuleSymbol.cs (1)
337var location = this.GlobalNamespace.GetFirstLocationOrNone();
Symbols\Source\SourceNamespaceSymbol.cs (4)
354diagnostics.Add(ErrorCode.ERR_FileLocalDuplicateNameInNS, symbol.GetFirstLocationOrNone(), symbol.Name, @namespace); 357diagnostics.Add(ErrorCode.ERR_PartialTypeKindConflict, symbol.GetFirstLocationOrNone(), symbol); 360diagnostics.Add(ErrorCode.ERR_DuplicateNameInNS, symbol.GetFirstLocationOrNone(), symbol.Name, @namespace); 373diagnostics.Add(ErrorCode.ERR_NoNamespacePrivate, symbol.GetFirstLocationOrNone());
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
141diagnostics.Add(ErrorCode.ERR_BadFieldTypeInRecord, f.GetFirstLocationOrNone(), parameterType);
Symbols\TypeSymbol.cs (1)
2082return snt?.GetImplementsLocation(@interface) ?? implementingType.GetFirstLocationOrNone();