未验证 提交 69ea04ff 编写于 作者: V Vlad Zarytovskii 提交者: GitHub

Merge branch 'main' into merges/release/dev17.6-to-main

...@@ -23,4 +23,4 @@ RUN apt-get update \ ...@@ -23,4 +23,4 @@ RUN apt-get update \
ENV DEBIAN_FRONTEND=dialog ENV DEBIAN_FRONTEND=dialog
# Make sure we can build using plain dotnet # Make sure we can build using plain dotnet
ENV BUILDING_USING_DOTNET=true ENV BUILDING_USING_DOTNET="true"
\ No newline at end of file \ No newline at end of file
...@@ -15,9 +15,6 @@ ...@@ -15,9 +15,6 @@
"storage": "32gb" "storage": "32gb"
}, },
// Default settings are set in .vscode/settings.json
"settings": {},
// Add the IDs of extensions you want installed when the container is created. // Add the IDs of extensions you want installed when the container is created.
"extensions": [ "extensions": [
"ms-dotnettools.csharp", "ms-dotnettools.csharp",
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
"*.fs": "${capture}.fsi" "*.fs": "${capture}.fsi"
}, },
"FSharp.suggestGitignore": false, "FSharp.suggestGitignore": false,
"FSharp.enableMSBuildProjectGraph": true, "FSharp.enableMSBuildProjectGraph": false,
"FSharp.enableAdaptiveLspServer": false, "FSharp.enableAdaptiveLspServer": true,
"FSharp.workspacePath": "FSharp.Compiler.Service.sln", "FSharp.workspacePath": "FSharp.Compiler.Service.sln",
"FSharp.workspaceModePeekDeepLevel": 1, "FSharp.workspaceModePeekDeepLevel": 1,
"FSharp.enableBackgroundServices": false, "FSharp.enableBackgroundServices": false,
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
"csharp.suppressDotnetInstallWarning": true, "csharp.suppressDotnetInstallWarning": true,
"csharp.suppressDotnetRestoreNotification": true, "csharp.suppressDotnetRestoreNotification": true,
"csharp.suppressHiddenDiagnostics": true, "csharp.suppressHiddenDiagnostics": true,
"omnisharp.autoStart": true, "omnisharp.autoStart": false,
"omnisharp.defaultLaunchSolution": "FSharp.Compiler.Service.sln", "omnisharp.defaultLaunchSolution": "FSharp.Compiler.Service.sln",
"omnisharp.enableMsBuildLoadProjectsOnDemand": true, "omnisharp.enableMsBuildLoadProjectsOnDemand": true,
"omnisharp.disableMSBuildDiagnosticWarning": true, "omnisharp.disableMSBuildDiagnosticWarning": true,
......
...@@ -11,7 +11,12 @@ ...@@ -11,7 +11,12 @@
All settings below can be overriden via CLI switches if needed. --> All settings below can be overriden via CLI switches if needed. -->
<PropertyGroup Condition="'$(SolutionName)' == 'FSharp.Compiler.Service' and '$(BUILDING_USING_DOTNET)' != 'false'"> <PropertyGroup Condition="'$(SolutionName)' == 'FSharp.Compiler.Service' and '$(BUILDING_USING_DOTNET)' != 'false'">
<BUILDING_USING_DOTNET Condition="'$(BUILDING_USING_DOTNET)' == ''">true</BUILDING_USING_DOTNET> <BUILDING_USING_DOTNET>true</BUILDING_USING_DOTNET>
</PropertyGroup>
<!-- Temporary workaround if proj-info is used, allows Ionide's evaluation to work correctly. -->
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' != 'false' and '$(DotnetProjInfo)' == 'true'">
<BUILDING_USING_DOTNET>true</BUILDING_USING_DOTNET>
</PropertyGroup> </PropertyGroup>
<Import Project="$(RepoRoot)/Directory.Build.props.user" Condition = "Exists('$(RepoRoot)/Directory.Build.props.user')" /> <Import Project="$(RepoRoot)/Directory.Build.props.user" Condition = "Exists('$(RepoRoot)/Directory.Build.props.user')" />
...@@ -25,7 +30,6 @@ ...@@ -25,7 +30,6 @@
<IntermediateOutputPath>$(ArtifactsDir)obj/$(MSBuildProjectName)/$(Configuration)/</IntermediateOutputPath> <IntermediateOutputPath>$(ArtifactsDir)obj/$(MSBuildProjectName)/$(Configuration)/</IntermediateOutputPath>
<FsLexPath>$(ArtifactsDir)/bin/fslex/$(Configuration)/net7.0/fslex.dll</FsLexPath> <FsLexPath>$(ArtifactsDir)/bin/fslex/$(Configuration)/net7.0/fslex.dll</FsLexPath>
<FsYaccPath>$(ArtifactsDir)/bin/fsyacc/$(Configuration)/net7.0/fsyacc.dll</FsYaccPath> <FsYaccPath>$(ArtifactsDir)/bin/fsyacc/$(Configuration)/net7.0/fsyacc.dll</FsYaccPath>
<OtherFlags>$(OtherFlags) --test:ParallelCheckingWithSignatureFilesOn</OtherFlags>
</PropertyGroup> </PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)/eng/Versions.props" Condition="'$(DISABLE_ARCADE)' == 'true'"/> <Import Project="$(MSBuildThisFileDirectory)/eng/Versions.props" Condition="'$(DISABLE_ARCADE)' == 'true'"/>
......
...@@ -243,6 +243,10 @@ function BuildSolution([string] $solutionName) { ...@@ -243,6 +243,10 @@ function BuildSolution([string] $solutionName) {
# Do not set the property to true explicitly, since that would override value projects might set. # Do not set the property to true explicitly, since that would override value projects might set.
$suppressExtensionDeployment = if (!$deployExtensions) { "/p:DeployExtension=false" } else { "" } $suppressExtensionDeployment = if (!$deployExtensions) { "/p:DeployExtension=false" } else { "" }
$BUILDING_USING_DOTNET_ORIG = $env:BUILDING_USING_DOTNET
$env:BUILDING_USING_DOTNET="false"
MSBuild $toolsetBuildProj ` MSBuild $toolsetBuildProj `
$bl ` $bl `
/p:Configuration=$configuration ` /p:Configuration=$configuration `
...@@ -261,10 +265,11 @@ function BuildSolution([string] $solutionName) { ...@@ -261,10 +265,11 @@ function BuildSolution([string] $solutionName) {
/p:TestTargetFrameworks=$testTargetFrameworks ` /p:TestTargetFrameworks=$testTargetFrameworks `
/p:DotNetBuildFromSource=$sourceBuild ` /p:DotNetBuildFromSource=$sourceBuild `
/p:CompressAllMetadata=$CompressAllMetadata ` /p:CompressAllMetadata=$CompressAllMetadata `
/p:BUILDING_USING_DOTNET=false `
/v:$verbosity ` /v:$verbosity `
$suppressExtensionDeployment ` $suppressExtensionDeployment `
@properties @properties
$env:BUILDING_USING_DOTNET=$BUILDING_USING_DOTNET_ORIG
} }
function TestAndAddToPath([string] $testPath) { function TestAndAddToPath([string] $testPath) {
...@@ -674,14 +679,14 @@ try { ...@@ -674,14 +679,14 @@ try {
$exitCode = Exec-Process "$dotnetExe" "restore $RepoRoot\buildtools\checkpackages\FSharp.Compiler.Service_notshipped.fsproj" $exitCode = Exec-Process "$dotnetExe" "restore $RepoRoot\buildtools\checkpackages\FSharp.Compiler.Service_notshipped.fsproj"
if ($exitCode -eq 0) { if ($exitCode -eq 0) {
Write-Host -ForegroundColor Red "Command succeeded but was expected to fail: this means that the fsharp.compiler.service nuget package is already published" Write-Host -ForegroundColor Red "Command succeeded but was expected to fail: this means that the fsharp.compiler.service nuget package is already published"
Write-Host -ForegroundColor Red "Modify the version number of FSharp.Compiler.Servoce to be published" Write-Host -ForegroundColor Red "Modify the version number of FSharp.Compiler.Service to be published"
$verifypackageshipstatusFailed = $True $verifypackageshipstatusFailed = $True
} }
$exitCode = Exec-Process "$dotnetExe" "restore $RepoRoot\buildtools\checkpackages\FSharp.Core_notshipped.fsproj" $exitCode = Exec-Process "$dotnetExe" "restore $RepoRoot\buildtools\checkpackages\FSharp.Core_notshipped.fsproj"
if ($exitCode -eq 0) { if ($exitCode -eq 0) {
Write-Host -ForegroundColor Red "Command succeeded but was expected to fail: this means that the fsharp.core nuget package is already published" Write-Host -ForegroundColor Red "Command succeeded but was expected to fail: this means that the fsharp.core nuget package is already published"
Write-Host -ForegroundColor Red "Modify the version number of FSharp.Compiler.Servoce to be published" Write-Host -ForegroundColor Red "Modify the version number of FSharp.Compiler.Service to be published"
$verifypackageshipstatusFailed = $True $verifypackageshipstatusFailed = $True
} }
if (-not $verifypackageshipstatusFailed) if (-not $verifypackageshipstatusFailed)
......
...@@ -207,6 +207,7 @@ function TestUsingNUnit() { ...@@ -207,6 +207,7 @@ function TestUsingNUnit() {
} }
function BuildSolution { function BuildSolution {
BUILDING_USING_DOTNET=false
BuildCategory="Build" BuildCategory="Build"
BuildMessage="Error preparing build" BuildMessage="Error preparing build"
local solution="FSharp.sln" local solution="FSharp.sln"
...@@ -295,7 +296,6 @@ function BuildSolution { ...@@ -295,7 +296,6 @@ function BuildSolution {
/p:QuietRestore=$quiet_restore \ /p:QuietRestore=$quiet_restore \
/p:QuietRestoreBinaryLog="$binary_log" \ /p:QuietRestoreBinaryLog="$binary_log" \
/p:ArcadeBuildFromSource=$source_build \ /p:ArcadeBuildFromSource=$source_build \
/p:BUILDING_USING_DOTNET=false \
$properties $properties
fi fi
} }
......
...@@ -881,7 +881,7 @@ type SynSimplePats = ...@@ -881,7 +881,7 @@ type SynSimplePats =
type SynArgPats = type SynArgPats =
| Pats of pats: SynPat list | Pats of pats: SynPat list
| NamePatPairs of pats: (Ident * range * SynPat) list * range: range * trivia: SynArgPatsNamePatPairsTrivia | NamePatPairs of pats: (Ident * range option * SynPat) list * range: range * trivia: SynArgPatsNamePatPairsTrivia
member x.Patterns = member x.Patterns =
match x with match x with
......
...@@ -1025,7 +1025,7 @@ type SynSimplePats = ...@@ -1025,7 +1025,7 @@ type SynSimplePats =
type SynArgPats = type SynArgPats =
| Pats of pats: SynPat list | Pats of pats: SynPat list
| NamePatPairs of pats: (Ident * range * SynPat) list * range: range * trivia: SynArgPatsNamePatPairsTrivia | NamePatPairs of pats: (Ident * range option * SynPat) list * range: range * trivia: SynArgPatsNamePatPairsTrivia
member Patterns: SynPat list member Patterns: SynPat list
......
...@@ -3133,7 +3133,12 @@ namePatPairs: ...@@ -3133,7 +3133,12 @@ namePatPairs:
namePatPair: namePatPair:
| ident EQUALS parenPattern | ident EQUALS parenPattern
{ let mEquals = rhs parseState 2 { let mEquals = rhs parseState 2
($1, mEquals, $3) } ($1, Some mEquals, $3) }
| ident EQUALS recover
{ let mEquals = rhs parseState 2
($1, Some mEquals, patFromParseError (SynPat.Wild mEquals.EndRange)) }
| ident recover
{ ($1, None, patFromParseError (SynPat.Wild $1.idRange.EndRange)) }
constrPattern: constrPattern:
| atomicPatternLongIdent explicitValTyparDecls | atomicPatternLongIdent explicitValTyparDecls
......
...@@ -249,7 +249,7 @@ ...@@ -249,7 +249,7 @@
<ItemGroup> <ItemGroup>
<None Include="**\*.cs;**\*.fs;**\*.fsx;**\*.fsi" Exclude="@(Compile)"> <None Include="**\*.cs;**\*.fs;**\*.fsx;**\*.fsi" Exclude="@(Compile)">
<Link>%(RelativeDir)\TestSource\%(Filename)%(Extension)</Link> <Link>%(RelativeDir)TestSource\%(Filename)%(Extension)</Link>
</None> </None>
</ItemGroup> </ItemGroup>
......
...@@ -5770,8 +5770,8 @@ FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.Syn ...@@ -5770,8 +5770,8 @@ FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.Syn
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia trivia FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia trivia
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range get_range() FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range get_range()
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range range FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range range
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,FSharp.Compiler.Text.Range,FSharp.Compiler.Syntax.SynPat]] get_pats() FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,Microsoft.FSharp.Core.FSharpOption`1[FSharp.Compiler.Text.Range],FSharp.Compiler.Syntax.SynPat]] get_pats()
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,FSharp.Compiler.Text.Range,FSharp.Compiler.Syntax.SynPat]] pats FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,Microsoft.FSharp.Core.FSharpOption`1[FSharp.Compiler.Text.Range],FSharp.Compiler.Syntax.SynPat]] pats
FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] get_pats() FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] get_pats()
FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] pats FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] pats
FSharp.Compiler.Syntax.SynArgPats+Tags: Int32 NamePatPairs FSharp.Compiler.Syntax.SynArgPats+Tags: Int32 NamePatPairs
...@@ -5780,7 +5780,7 @@ FSharp.Compiler.Syntax.SynArgPats: Boolean IsNamePatPairs ...@@ -5780,7 +5780,7 @@ FSharp.Compiler.Syntax.SynArgPats: Boolean IsNamePatPairs
FSharp.Compiler.Syntax.SynArgPats: Boolean IsPats FSharp.Compiler.Syntax.SynArgPats: Boolean IsPats
FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsNamePatPairs() FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsNamePatPairs()
FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsPats() FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsPats()
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewNamePatPairs(Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,FSharp.Compiler.Text.Range,FSharp.Compiler.Syntax.SynPat]], FSharp.Compiler.Text.Range, FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia) FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewNamePatPairs(Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,Microsoft.FSharp.Core.FSharpOption`1[FSharp.Compiler.Text.Range],FSharp.Compiler.Syntax.SynPat]], FSharp.Compiler.Text.Range, FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia)
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewPats(Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat]) FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewPats(Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat])
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+NamePatPairs FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+NamePatPairs
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+Pats FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+Pats
...@@ -5770,8 +5770,8 @@ FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.Syn ...@@ -5770,8 +5770,8 @@ FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.Syn
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia trivia FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia trivia
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range get_range() FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range get_range()
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range range FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: FSharp.Compiler.Text.Range range
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,FSharp.Compiler.Text.Range,FSharp.Compiler.Syntax.SynPat]] get_pats() FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,Microsoft.FSharp.Core.FSharpOption`1[FSharp.Compiler.Text.Range],FSharp.Compiler.Syntax.SynPat]] get_pats()
FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,FSharp.Compiler.Text.Range,FSharp.Compiler.Syntax.SynPat]] pats FSharp.Compiler.Syntax.SynArgPats+NamePatPairs: Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,Microsoft.FSharp.Core.FSharpOption`1[FSharp.Compiler.Text.Range],FSharp.Compiler.Syntax.SynPat]] pats
FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] get_pats() FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] get_pats()
FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] pats FSharp.Compiler.Syntax.SynArgPats+Pats: Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat] pats
FSharp.Compiler.Syntax.SynArgPats+Tags: Int32 NamePatPairs FSharp.Compiler.Syntax.SynArgPats+Tags: Int32 NamePatPairs
...@@ -5780,7 +5780,7 @@ FSharp.Compiler.Syntax.SynArgPats: Boolean IsNamePatPairs ...@@ -5780,7 +5780,7 @@ FSharp.Compiler.Syntax.SynArgPats: Boolean IsNamePatPairs
FSharp.Compiler.Syntax.SynArgPats: Boolean IsPats FSharp.Compiler.Syntax.SynArgPats: Boolean IsPats
FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsNamePatPairs() FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsNamePatPairs()
FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsPats() FSharp.Compiler.Syntax.SynArgPats: Boolean get_IsPats()
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewNamePatPairs(Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,FSharp.Compiler.Text.Range,FSharp.Compiler.Syntax.SynPat]], FSharp.Compiler.Text.Range, FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia) FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewNamePatPairs(Microsoft.FSharp.Collections.FSharpList`1[System.Tuple`3[FSharp.Compiler.Syntax.Ident,Microsoft.FSharp.Core.FSharpOption`1[FSharp.Compiler.Text.Range],FSharp.Compiler.Syntax.SynPat]], FSharp.Compiler.Text.Range, FSharp.Compiler.SyntaxTrivia.SynArgPatsNamePatPairsTrivia)
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewPats(Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat]) FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats NewPats(Microsoft.FSharp.Collections.FSharpList`1[FSharp.Compiler.Syntax.SynPat])
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+NamePatPairs FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+NamePatPairs
FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+Pats FSharp.Compiler.Syntax.SynArgPats: FSharp.Compiler.Syntax.SynArgPats+Pats
ImplFile
(ParsedImplFileInput
("/root/Pattern/NamedPatPairRecoverAfterEquals.fs", false,
QualifiedNameOfFile NamedPatPairRecoverAfterEquals, [], [],
[SynModuleOrNamespace
([NamedPatPairRecoverAfterEquals], false, AnonModule,
[Expr
(Match
(Yes (1,0--1,12), Ident x,
[SynMatchClause
(LongIdent
(SynLongIdent ([Y], [], [None]), None, None,
NamePatPairs
([(z, Some (2,6--2,7),
FromParseError (Wild (2,7--2,7), (2,7--2,7)))],
(2,4--2,9), { ParenRange = (2,3--2,9) }), None,
(2,2--2,9)), None, Const (Unit, (2,13--2,15)),
(2,2--2,15), Yes, { ArrowRange = Some (2,10--2,12)
BarRange = Some (2,0--2,1) })],
(1,0--2,15), { MatchKeyword = (1,0--1,5)
WithKeyword = (1,8--1,12) }), (1,0--2,15))],
PreXmlDocEmpty, [], None, (1,0--3,0), { LeadingKeyword = None })],
(true, true), { ConditionalDirectives = []
CodeComments = [] }, set []))
(2,8)-(2,9) parse error Unexpected symbol ')' in pattern
ImplFile
(ParsedImplFileInput
("/root/Pattern/NamedPatPairRecoverAfterIdentifier.fs", false,
QualifiedNameOfFile NamedPatPairRecoverAfterIdentifier, [], [],
[SynModuleOrNamespace
([NamedPatPairRecoverAfterIdentifier], false, AnonModule,
[Expr
(Match
(Yes (1,0--1,12), Ident x,
[SynMatchClause
(LongIdent
(SynLongIdent ([Y], [], [None]), None, None,
NamePatPairs
([(a, Some (2,6--2,7), Const (Int32 1, (2,8--2,9)));
(b, Some (2,13--2,14), Const (Int32 2, (2,15--2,16)));
(c, None,
FromParseError (Wild (2,19--2,19), (2,19--2,19)))],
(2,4--2,20), { ParenRange = (2,3--2,20) }), None,
(2,2--2,20)), None, Const (Unit, (2,24--2,26)),
(2,2--2,26), Yes, { ArrowRange = Some (2,21--2,23)
BarRange = Some (2,0--2,1) })],
(1,0--2,26), { MatchKeyword = (1,0--1,5)
WithKeyword = (1,8--1,12) }), (1,0--2,26))],
PreXmlDocEmpty, [], None, (1,0--3,0), { LeadingKeyword = None })],
(true, true), { ConditionalDirectives = []
CodeComments = [] }, set []))
(2,19)-(2,20) parse error Unexpected symbol ')' in pattern. Expected '=' or other token.
...@@ -11,7 +11,7 @@ ImplFile ...@@ -11,7 +11,7 @@ ImplFile
(LongIdent (LongIdent
(SynLongIdent ([OnePartData], [], [None]), None, None, (SynLongIdent ([OnePartData], [], [None]), None, None,
NamePatPairs NamePatPairs
([(part1, (4,10--4,11), ([(part1, Some (4,10--4,11),
Named Named
(SynIdent (p1, None), false, None, (4,12--4,14)))], (SynIdent (p1, None), false, None, (4,12--4,14)))],
(4,4--5,13), { ParenRange = (3,13--5,13) }), None, (4,4--5,13), { ParenRange = (3,13--5,13) }), None,
......
...@@ -14,7 +14,7 @@ ImplFile ...@@ -14,7 +14,7 @@ ImplFile
(LongIdent (LongIdent
(SynLongIdent ([X], [], [None]), None, None, (SynLongIdent ([X], [], [None]), None, None,
NamePatPairs NamePatPairs
([(Y, (3,7--3,8), ([(Y, Some (3,7--3,8),
Named Named
(SynIdent (y, None), false, None, (3,9--3,10)))], (SynIdent (y, None), false, None, (3,9--3,10)))],
(3,4--3,11), { ParenRange = (3,3--3,11) }), None, (3,4--3,11), { ParenRange = (3,3--3,11) }), None,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册