You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context.diagnose(Diagnostic(node: node, message:DiagnosticMsg(id:"unsafeInterpolation", message:"Interpolation may introduce raw HTML.", severity:.warning)))
Diagnostic(node: expr, message:DiagnosticMsg(id:"expectedFunctionCallOrMemberAccessExpr", message:"Expected function call or member access expression; got \(expr.kind)"))
context.context.diagnose(Diagnostic(node: node, message:DiagnosticMsg(id:"interpolationNotAllowedForDataType", message:"String Interpolation is not allowed for this data type. Runtime values get converted to raw text, which is not the intended result.")))
70
+
context.diagnose(Diagnostic(node: node, message:DiagnosticMsg(id:"interpolationNotAllowedForDataType", message:"String Interpolation is not allowed for this data type. Runtime values get converted to raw text, which is not the intended result.")))
Copy file name to clipboardExpand all lines: Sources/HTMLKitParse/InterpolationLookup.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ enum InterpolationLookup {
18
18
letparsed=Parser.parse(source: string).statements
19
19
cached[file]= parsed
20
20
}else{
21
-
context.context.diagnose(Diagnostic(node: node, message:DiagnosticMsg(id:"fileNotFound", message:"Could not find file (\(file)) on disk, or was denied disk access (file access is always denied on macOS due to the macro being in a sandbox).", severity:.warning)))
21
+
context.diagnose(Diagnostic(node: node, message:DiagnosticMsg(id:"fileNotFound", message:"Could not find file (\(file)) on disk, or was denied disk access (file access is always denied on macOS due to the macro being in a sandbox).", severity:.warning)))
context.context.diagnose(Diagnostic(node: node, message:DiagnosticMsg(id:"unsafeInterpolation", message:"Interpolation may introduce raw HTML.", severity:.warning)))
Copy file name to clipboardExpand all lines: Sources/HTMLKitParse/ParseGlobalAttributes.swift
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,10 @@ extension HTMLKitUtilities {
19
19
c.key = key
20
20
c.arguments = function.arguments
21
21
if key.contains(""){
22
-
context.context.diagnose(Diagnostic(node: firstExpression, message:DiagnosticMsg(id:"spacesNotAllowedInAttributeDeclaration", message:"Spaces are not allowed in attribute declaration.")))
context.diagnose(Diagnostic(node: firstExpression, message:DiagnosticMsg(id:"spacesNotAllowedInAttributeDeclaration", message:"Spaces are not allowed in attribute declaration.")))
0 commit comments