File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -39,24 +39,30 @@ public enum ParserError: Error, CustomStringConvertible {
39
39
/// normal circumstances, and it should be reported as a bug.
40
40
case invalidSyntaxData
41
41
42
- /// The SwiftSyntax parser library isn't compatible with this client
42
+ /// The SwiftSyntax parser library isn't compatible with this SwiftSyntax version.
43
+ ///
44
+ /// Incompatibility can occur if the loaded `lib_InternalSwiftSyntaxParser.dylib/.so`
45
+ /// is from a toolchain that is not compatible with this version of SwiftSyntax.
43
46
case parserCompatibilityCheckFailed
44
47
45
48
public var description : String {
46
49
switch self {
47
50
case . invalidSyntaxData:
48
51
return " parser created invalid syntax data "
49
52
case . parserCompatibilityCheckFailed:
50
- return " SwiftSyntax parser library isn't compatible"
53
+ return " The loaded '_InternalSwiftSyntaxParser' library is from a toolchain that is not compatible with this version of SwiftSyntax "
51
54
}
52
55
}
53
56
}
54
57
55
58
/// Namespace for functions to parse swift source and retrieve a syntax tree.
56
59
public enum SyntaxParser {
57
60
58
- /// True if the parser library is compatible with the SwiftSyntax client ;
61
+ /// True if the parser library is compatible with this SwiftSyntax version ;
59
62
/// false otherwise.
63
+ ///
64
+ /// Incompatibility can occur if the loaded `lib_InternalSwiftSyntaxParser.dylib/.so`
65
+ /// is from a toolchain that is not compatible with this version of SwiftSyntax.
60
66
fileprivate static var nodeHashVerifyResult : Bool = verifyNodeDeclarationHash ( )
61
67
62
68
/// Parses the string into a full-fidelity Syntax tree.
You can’t perform that action at this time.
0 commit comments