示例#1
0
 public SynthesizedRecordPropertySymbol(
     SourceMemberContainerTypeSymbol containingType,
     ParameterSymbol backingParameter,
     DiagnosticBag diagnostics)
     : base(containingType,
            binder: null,
            backingParameter.GetNonNullSyntaxNode(),
            RefKind.None,
            backingParameter.Name,
            backingParameter.Locations[0],
            diagnostics)
 {
     BackingParameter = backingParameter;
 }
示例#2
0
 private static Location GetParameterLocation(ParameterSymbol parameter) => parameter.GetNonNullSyntaxNode().Location;