Skip to content

Commit 96342d9

Browse files
Populating extent
1 parent 110b53c commit 96342d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rules/DscExamplesPresent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeDSCResource(Ast ast, string fileName
6161
if (!examplesPresent)
6262
{
6363
yield return new DiagnosticRecord(string.Format(CultureInfo.CurrentCulture, Strings.DscExamplesPresentNoExamplesError, resourceName),
64-
null, GetName(), DiagnosticSeverity.Information, fileName);
64+
ast.Extent, GetName(), DiagnosticSeverity.Information, fileName);
6565
}
6666
}
6767

@@ -103,7 +103,7 @@ item is TypeDefinitionAst
103103
if (!examplesPresent)
104104
{
105105
yield return new DiagnosticRecord(string.Format(CultureInfo.CurrentCulture, Strings.DscExamplesPresentNoExamplesError, resourceName),
106-
null, GetName(), DiagnosticSeverity.Information, fileName);
106+
dscClass.Extent, GetName(), DiagnosticSeverity.Information, fileName);
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)