Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
dac472af
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dac472af
编写于
3月 25, 2014
作者:
P
Pharring
提交者:
RoslynTeam
3月 25, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix various typos. (changeset 1214478)
上级
8adaa7ae
变更
27
隐藏空白更改
内联
并排
Showing
27 changed file
with
40 addition
and
40 deletion
+40
-40
Src/Compilers/CSharp/Source/Binder/Binder_Expressions.cs
Src/Compilers/CSharp/Source/Binder/Binder_Expressions.cs
+1
-1
Src/Compilers/CSharp/Source/Symbols/Source/SourceAssemblySymbol.cs
...lers/CSharp/Source/Symbols/Source/SourceAssemblySymbol.cs
+1
-1
Src/Compilers/CSharp/Source/Symbols/Symbol_Attributes.cs
Src/Compilers/CSharp/Source/Symbols/Symbol_Attributes.cs
+1
-1
Src/Compilers/Core/Source/MetadataReader/PEModule.cs
Src/Compilers/Core/Source/MetadataReader/PEModule.cs
+1
-1
Src/Compilers/Core/Source/MetadataReference/AssemblyIdentity.DisplayName.cs
.../Source/MetadataReference/AssemblyIdentity.DisplayName.cs
+1
-1
Src/Compilers/Core/Source/PEWriter/Members.cs
Src/Compilers/Core/Source/PEWriter/Members.cs
+1
-1
Src/Compilers/Core/Source/PEWriter/Miscellaneous.cs
Src/Compilers/Core/Source/PEWriter/Miscellaneous.cs
+1
-1
Src/Compilers/Core/Source/PEWriter/PeWriter.cs
Src/Compilers/Core/Source/PEWriter/PeWriter.cs
+2
-2
Src/Compilers/VisualBasic/Source/Binding/Binder_Expressions.vb
...ompilers/VisualBasic/Source/Binding/Binder_Expressions.vb
+4
-4
Src/Compilers/VisualBasic/Source/Binding/Binder_Statements.vb
...Compilers/VisualBasic/Source/Binding/Binder_Statements.vb
+1
-1
Src/Compilers/VisualBasic/Source/BoundTree/BoundExpressionExtensions.vb
...VisualBasic/Source/BoundTree/BoundExpressionExtensions.vb
+1
-1
Src/Compilers/VisualBasic/Source/CodeGen/EmitAddress.vb
Src/Compilers/VisualBasic/Source/CodeGen/EmitAddress.vb
+1
-1
Src/Compilers/VisualBasic/Source/CodeGen/EmitExpression.vb
Src/Compilers/VisualBasic/Source/CodeGen/EmitExpression.vb
+1
-1
Src/Compilers/VisualBasic/Source/CommandLine/CommandLineParser.vb
...ilers/VisualBasic/Source/CommandLine/CommandLineParser.vb
+2
-2
Src/Compilers/VisualBasic/Source/Lowering/AsyncRewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.vb
...ewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.vb
+2
-2
Src/Compilers/VisualBasic/Source/Lowering/IteratorRewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb
...ewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb
+2
-2
Src/Compilers/VisualBasic/Source/Lowering/LambdaRewriter/LambdaRewriter.vb
...ualBasic/Source/Lowering/LambdaRewriter/LambdaRewriter.vb
+4
-4
Src/Compilers/VisualBasic/Source/Lowering/LocalRewriter/LocalRewriter_AddRemoveHandler.vb
.../Lowering/LocalRewriter/LocalRewriter_AddRemoveHandler.vb
+1
-1
Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.SynthesizedMethod.vb
...oClassRewriter/MethodToClassRewriter.SynthesizedMethod.vb
+1
-1
Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.vb
...e/Lowering/MethodToClassRewriter/MethodToClassRewriter.vb
+1
-1
Src/Compilers/VisualBasic/Source/Preprocessor/ExpressionEvaluator.vb
...rs/VisualBasic/Source/Preprocessor/ExpressionEvaluator.vb
+2
-2
Src/Compilers/VisualBasic/Source/Symbols/Source/SourceAssemblySymbol.vb
...VisualBasic/Source/Symbols/Source/SourceAssemblySymbol.vb
+1
-1
Src/Compilers/VisualBasic/Source/Syntax/Syntax.xml
Src/Compilers/VisualBasic/Source/Syntax/Syntax.xml
+1
-1
Src/Workspaces/CSharp/CodeGeneration/CSharpSyntaxFactory.cs
Src/Workspaces/CSharp/CodeGeneration/CSharpSyntaxFactory.cs
+1
-1
Src/Workspaces/Core/FindSymbols/FindReferences/DependentProjectsFinder.cs
...ore/FindSymbols/FindReferences/DependentProjectsFinder.cs
+3
-3
Src/Workspaces/Core/Formatting/Context/FormattingContext.InitialContextFinder.cs
...matting/Context/FormattingContext.InitialContextFinder.cs
+1
-1
Src/Workspaces/VisualBasic/Extensions/CastAnalyzer.vb
Src/Workspaces/VisualBasic/Extensions/CastAnalyzer.vb
+1
-1
未找到文件。
Src/Compilers/CSharp/Source/Binder/Binder_Expressions.cs
浏览文件 @
dac472af
...
...
@@ -1405,7 +1405,7 @@ private BoundBaseReference BindBase(BaseExpressionSyntax node, DiagnosticBag dia
}
else
if
(
IsRefOrOutThisParameterCaptured
(
node
,
diagnostics
))
{
// error has been reported by CheckThisRefer
ne
ce
// error has been reported by CheckThisRefer
en
ce
}
else
{
...
...
Src/Compilers/CSharp/Source/Symbols/Source/SourceAssemblySymbol.cs
浏览文件 @
dac472af
...
...
@@ -44,7 +44,7 @@ internal sealed class SourceAssemblySymbol : MetadataOrSourceAssemblySymbol, IAt
// granted provided the simple assembly names match. When such access is granted
// the assembly to which we have been granted access is noted (optimisticallyGrantedInternalsAccess).
// After the public key has been computed, the set of optimistic grants is reexamined
// to
i
nsure that full identities match. This may produce diagnostics.
// to
e
nsure that full identities match. This may produce diagnostics.
private
StrongNameKeys
lazyStrongNameKeys
;
/// <summary>
...
...
Src/Compilers/CSharp/Source/Symbols/Symbol_Attributes.cs
浏览文件 @
dac472af
...
...
@@ -326,7 +326,7 @@ internal virtual void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttribu
wellKnownAttributeData
=
this
.
ValidateAttributeUsageAndDecodeWellKnownAttributes
(
binders
,
attributesToBind
,
boundAttributes
,
diagnostics
,
symbolPart
);
// Store data decoded from remaining well-known attributes.
// TODO: what if this suceeds on another thread but not this thread?
// TODO: what if this suc
c
eeds on another thread but not this thread?
lazyCustomAttributesBag
.
SetDecodedWellKnownAttributeData
(
wellKnownAttributeData
);
}
else
if
(
earlyDecodingOnly
)
...
...
Src/Compilers/Core/Source/MetadataReader/PEModule.cs
浏览文件 @
dac472af
...
...
@@ -1890,7 +1890,7 @@ internal AssemblyReferenceHandle GetAssemblyRef(string assemblyName)
// Check whether matching name
if
(
MetadataReader
.
StringEquals
(
MetadataReader
.
GetAssemblyReference
(
assemblyRef
).
Name
,
assemblyName
))
{
// Return assemby ref token
// Return assemb
l
y ref token
return
assemblyRef
;
}
}
...
...
Src/Compilers/Core/Source/MetadataReference/AssemblyIdentity.DisplayName.cs
浏览文件 @
dac472af
...
...
@@ -754,7 +754,7 @@ private static bool Unescape(StringBuilder sb, string str, ref int i)
{
int
codepoint
=
Convert
.
ToInt32
(
str
.
Substring
(
i
,
semicolon
-
i
),
16
);
// \0 is not valid in an asembly name
// \0 is not valid in an as
s
embly name
if
(
codepoint
==
0
)
{
return
false
;
...
...
Src/Compilers/Core/Source/PEWriter/Members.cs
浏览文件 @
dac472af
...
...
@@ -39,7 +39,7 @@ internal enum CallingConvention
FastCall
=
4
,
/// <summary>
/// Win32 API calling convention for calling unmanged methods via PlatformInvoke. The call stack is cleaned up by the callee.
/// Win32 API calling convention for calling unman
a
ged methods via PlatformInvoke. The call stack is cleaned up by the callee.
/// </summary>
Standard
=
2
,
...
...
Src/Compilers/Core/Source/PEWriter/Miscellaneous.cs
浏览文件 @
dac472af
...
...
@@ -126,7 +126,7 @@ string CustomMarshallerRuntimeArgument
}
/// <summary>
/// The unmanged element type of the unmanaged array.
/// The unman
a
ged element type of the unmanaged array.
/// -1 if it should be omitted from the marshal blob.
/// </summary>
System
.
Runtime
.
InteropServices
.
UnmanagedType
ElementType
...
...
Src/Compilers/Core/Source/PEWriter/PeWriter.cs
浏览文件 @
dac472af
...
...
@@ -7394,7 +7394,7 @@ private void WriteTextSection(System.IO.Stream peStream, MemoryStream metadataSt
this
.
WriteManagedResources
(
peStream
);
this
.
WriteSpaceForHash
(
peStream
);
this
.
WriteDebugTable
(
peStream
);
// this.WriteUnmangedExportStubs();
// this.WriteUnman
a
gedExportStubs();
if
(
this
.
emitRuntimeStartupStub
)
this
.
WriteImportTable
(
peStream
);
if
(
this
.
emitRuntimeStartupStub
)
this
.
WriteNameTable
(
peStream
);
if
(
this
.
emitRuntimeStartupStub
)
this
.
WriteRuntimeStartupStub
(
peStream
);
...
...
@@ -7579,7 +7579,7 @@ private void WriteDebugTable(System.IO.Stream peStream)
stream
.
Free
();
}
// private void WriteUnmangedExportStubs() { }
// private void WriteUnman
a
gedExportStubs() { }
private
void
WriteRuntimeStartupStub
(
System
.
IO
.
Stream
peStream
)
{
...
...
Src/Compilers/VisualBasic/Source/Binding/Binder_Expressions.vb
浏览文件 @
dac472af
...
...
@@ -3425,7 +3425,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
' If we can't find a common type, create an error type. If all the types have a common name,
' that name is used as the type of the error type (useful in ambiguous type lookup situations)
Private
Function
GetCommonExpressionType
(
symbolRefernce
As
VisualBasicSyntaxNode
,
symbolRefer
e
nce
As
VisualBasicSyntaxNode
,
symbols
As
ImmutableArray
(
Of
Symbol
),
constantFieldsInProgress
As
SymbolsInProgress
(
Of
FieldSymbol
)
)
As
TypeSymbol
...
...
@@ -3438,7 +3438,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
For
i
As
Integer
=
0
To
symbols
.
Length
-
1
Dim
expressionType
As
TypeSymbol
=
GetExpressionType
(
symbolRefernce
,
symbols
(
i
),
constantFieldsInProgress
,
diagnostics
)
Dim
expressionType
As
TypeSymbol
=
GetExpressionType
(
symbolRefer
e
nce
,
symbols
(
i
),
constantFieldsInProgress
,
diagnostics
)
If
expressionType
IsNot
Nothing
Then
...
...
@@ -3471,7 +3471,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
' Get the "expression type" of a symbol when used in an expression.
Private
Function
GetExpressionType
(
symbolRefernce
As
VisualBasicSyntaxNode
,
symbolRefer
e
nce
As
VisualBasicSyntaxNode
,
s
As
Symbol
,
constantFieldsInProgress
As
SymbolsInProgress
(
Of
FieldSymbol
),
diagnostics
As
DiagnosticBag
...
...
@@ -3488,7 +3488,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Case
SymbolKind
.
Parameter
Return
DirectCast
(
s
,
ParameterSymbol
).
Type
Case
SymbolKind
.
Local
Return
GetLocalSymbolType
(
DirectCast
(
s
,
LocalSymbol
),
symbolRefernce
,
diagnostics
)
Return
GetLocalSymbolType
(
DirectCast
(
s
,
LocalSymbol
),
symbolRefer
e
nce
,
diagnostics
)
Case
SymbolKind
.
RangeVariable
Return
DirectCast
(
s
,
RangeVariableSymbol
).
Type
Case
Else
...
...
Src/Compilers/VisualBasic/Source/Binding/Binder_Statements.vb
浏览文件 @
dac472af
...
...
@@ -2254,7 +2254,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
<
Out
()
>
ByRef
actualEventAccess
As
BoundEventAccess
,
<
Out
()
>
ByRef
eventSymbol
As
EventSymbol
)
As
BoundExpression
' event must be a simple name that could be qualified and perhaps parethesi
s
ed
' event must be a simple name that could be qualified and perhaps parethesi
z
ed
' Examples: foo , (foo) , (bar.foo) , baz.moo(of T).goo
Dim
notParenthesizedSyntax
=
node
While
notParenthesizedSyntax
.
Kind
=
SyntaxKind
.
ParenthesizedExpression
...
...
Src/Compilers/VisualBasic/Source/BoundTree/BoundExpressionExtensions.vb
浏览文件 @
dac472af
...
...
@@ -27,7 +27,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End
If
'TODO: I have seen other places where we do similar digging.
' It seems a bit bug-prone. What if Nothing is wrapped in more than one conversion or a parenthesi
s
ed or whatever...?
' It seems a bit bug-prone. What if Nothing is wrapped in more than one conversion or a parenthesi
z
ed or whatever...?
' Perhaps it may be worth it to introduce BoundDefault and reduce the "default value" patterns to
' a node with unambiguous meaning?
...
...
Src/Compilers/VisualBasic/Source/CodeGen/EmitAddress.vb
浏览文件 @
dac472af
...
...
@@ -86,7 +86,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.CodeGen
Case
BoundKind
.
Parenthesized
' rewriter should take care of Parethesized
'
' we do not know how to emit address of a parethesi
s
ed without context.
' we do not know how to emit address of a parethesi
z
ed without context.
' when it is an argument like foo((arg)), it must be cloned,
' in other cases like (receiver).foo() it might not need to be...
'
...
...
Src/Compilers/VisualBasic/Source/CodeGen/EmitExpression.vb
浏览文件 @
dac472af
...
...
@@ -1253,7 +1253,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.CodeGen
syntaxNode
As
VisualBasicSyntaxNode
)
Debug
.
Assert
(
Not
constructor
.
IsParameterlessStructConstructor
(
requireSynthesized
:
=
True
),
"do not call synthesi
s
ed struct constructors, they do not exist"
)
"do not call synthesi
z
ed struct constructors, they do not exist"
)
EmitArguments
(
arguments
,
constructor
.
Parameters
)
_builder
.
EmitOpCode
(
ILOpCode
.
Newobj
,
ILOpCode
.
Newobj
.
StackPushCount
()
-
arguments
.
Length
)
...
...
Src/Compilers/VisualBasic/Source/CommandLine/CommandLineParser.vb
浏览文件 @
dac472af
...
...
@@ -1617,7 +1617,7 @@ lVbRuntimePlus:
Exit
Do
End
If
' Expresion parsed successfully --> evaluate it
' Expres
s
ion parsed successfully --> evaluate it
Dim
value
As
InternalSyntax
.
CConst
=
InternalSyntax
.
ExpressionEvaluator
.
EvaluateExpression
(
...
...
@@ -1636,7 +1636,7 @@ lVbRuntimePlus:
Exit
Do
End
If
' Expresion evaluated successfully --> add to 'defines'
' Expres
s
ion evaluated successfully --> add to 'defines'
If
defines
.
ContainsKey
(
symbolName
)
Then
defines
=
defines
.
Remove
(
symbolName
)
End
If
...
...
Src/Compilers/VisualBasic/Source/Lowering/AsyncRewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.vb
浏览文件 @
dac472af
...
...
@@ -260,8 +260,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Return
Me
.
F
.
Block
(
blockBuilder
.
ToImmutableAndFree
())
End
Function
Protected
Overrides
Function
MaterializeProxy
(
origExpresion
As
BoundExpression
,
proxy
As
CapturedSymbolOrExpression
)
As
BoundNode
Return
proxy
.
Materialize
(
Me
,
origExpresion
.
IsLValue
)
Protected
Overrides
Function
MaterializeProxy
(
origExpres
s
ion
As
BoundExpression
,
proxy
As
CapturedSymbolOrExpression
)
As
BoundNode
Return
proxy
.
Materialize
(
Me
,
origExpres
s
ion
.
IsLValue
)
End
Function
Friend
Overrides
Sub
AddProxyFieldsForStateMachineScope
(
proxy
As
CapturedSymbolOrExpression
,
proxyFields
As
ArrayBuilder
(
Of
FieldSymbol
))
...
...
Src/Compilers/VisualBasic/Source/Lowering/IteratorRewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb
浏览文件 @
dac472af
...
...
@@ -209,11 +209,11 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
proxyFields
.
Add
(
proxy
)
End
Sub
Protected
Overrides
Function
MaterializeProxy
(
origExpresion
As
BoundExpression
,
proxy
As
FieldSymbol
)
As
BoundNode
Protected
Overrides
Function
MaterializeProxy
(
origExpres
s
ion
As
BoundExpression
,
proxy
As
FieldSymbol
)
As
BoundNode
Dim
syntax
As
VisualBasicSyntaxNode
=
Me
.
F
.
Syntax
Dim
framePointer
As
BoundExpression
=
Me
.
FramePointer
(
syntax
,
proxy
.
ContainingType
)
Dim
proxyFieldParented
=
proxy
.
AsMember
(
DirectCast
(
framePointer
.
Type
,
NamedTypeSymbol
))
Return
Me
.
F
.
Field
(
framePointer
,
proxyFieldParented
,
origExpresion
.
IsLValue
)
Return
Me
.
F
.
Field
(
framePointer
,
proxyFieldParented
,
origExpres
s
ion
.
IsLValue
)
End
Function
End
Class
End
Class
...
...
Src/Compilers/VisualBasic/Source/Lowering/LambdaRewriter/LambdaRewriter.vb
浏览文件 @
dac472af
...
...
@@ -251,13 +251,13 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Return
New
BoundLocal
(
syntax
,
localFrame
,
isLValue
:
=
False
,
type
:
=
localFrame
.
Type
)
End
Function
Protected
Overrides
Function
MaterializeProxy
(
origExpresion
As
BoundExpression
,
proxy
As
FieldSymbol
)
As
BoundNode
Dim
frame
As
BoundExpression
=
FramePointer
(
origExpresion
.
Syntax
,
proxy
.
ContainingType
)
Protected
Overrides
Function
MaterializeProxy
(
origExpres
s
ion
As
BoundExpression
,
proxy
As
FieldSymbol
)
As
BoundNode
Dim
frame
As
BoundExpression
=
FramePointer
(
origExpres
s
ion
.
Syntax
,
proxy
.
ContainingType
)
Dim
constructedProxyField
=
proxy
.
AsMember
(
DirectCast
(
frame
.
Type
,
NamedTypeSymbol
))
Return
New
BoundFieldAccess
(
origExpresion
.
Syntax
,
Return
New
BoundFieldAccess
(
origExpres
s
ion
.
Syntax
,
frame
,
constructedProxyField
,
origExpresion
.
IsLValue
,
origExpres
s
ion
.
IsLValue
,
constructedProxyField
.
Type
)
End
Function
...
...
Src/Compilers/VisualBasic/Source/Lowering/LocalRewriter/LocalRewriter_AddRemoveHandler.vb
浏览文件 @
dac472af
...
...
@@ -233,7 +233,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Return
DirectCast
(
node
,
BoundEventAccess
)
End
If
Debug
.
Assert
(
node
.
Kind
=
BoundKind
.
Parenthesized
,
"node can only be EventAccess or Parenthesi
s
ed"
)
Debug
.
Assert
(
node
.
Kind
=
BoundKind
.
Parenthesized
,
"node can only be EventAccess or Parenthesi
z
ed"
)
Return
UnwrapEventAccess
(
DirectCast
(
node
,
BoundParenthesized
).
Expression
)
End
Function
...
...
Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.SynthesizedMethod.vb
浏览文件 @
dac472af
...
...
@@ -20,7 +20,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
Inherits
BoundTreeRewriter
''' <summary>
''' Base for synthesi
s
ed Lambda methods.
''' Base for synthesi
z
ed Lambda methods.
''' Just provides a bunch of defaults
''' </summary>
Friend
MustInherit
Class
SynthesizedMethod
...
...
Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.vb
浏览文件 @
dac472af
...
...
@@ -153,7 +153,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End
If
End
Function
Protected
MustOverride
Function
MaterializeProxy
(
origExpresion
As
BoundExpression
,
proxy
As
TProxy
)
As
BoundNode
Protected
MustOverride
Function
MaterializeProxy
(
origExpres
s
ion
As
BoundExpression
,
proxy
As
TProxy
)
As
BoundNode
''' <summary>
''' Maps not-lifted parameter, since the parameter was not lifted, it must be an actual lambda's parameter
...
...
Src/Compilers/VisualBasic/Source/Preprocessor/ExpressionEvaluator.vb
浏览文件 @
dac472af
...
...
@@ -153,7 +153,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
Return
EvaluateLiteralExpression
(
DirectCast
(
expr
,
LiteralExpressionSyntax
))
Case
SyntaxKind
.
ParenthesizedExpression
Return
EvaluateParenthesi
s
edExpression
(
DirectCast
(
expr
,
ParenthesizedExpressionSyntax
))
Return
EvaluateParenthesi
z
edExpression
(
DirectCast
(
expr
,
ParenthesizedExpressionSyntax
))
Case
SyntaxKind
.
IdentifierName
Return
EvaluateIdentifierNameExpression
(
DirectCast
(
expr
,
IdentifierNameSyntax
))
...
...
@@ -264,7 +264,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
End
Function
Private
Function
EvaluateParenthesi
s
edExpression
(
expr
As
ParenthesizedExpressionSyntax
)
As
CConst
Private
Function
EvaluateParenthesi
z
edExpression
(
expr
As
ParenthesizedExpressionSyntax
)
As
CConst
Return
EvaluateExpressionInternal
(
expr
.
Expression
)
End
Function
...
...
Src/Compilers/VisualBasic/Source/Symbols/Source/SourceAssemblySymbol.vb
浏览文件 @
dac472af
...
...
@@ -779,7 +779,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
' granted provided the simple assembly names match. When such access is granted
' the assembly to which we have been granted access is noted (m_optimisticallyGrantedInternalsAccess).
' After the public key has been computed, the set of optimistic grants is reexamined
' to
i
nsure that full identities match. This may produce diagnostics.
' to
e
nsure that full identities match. This may produce diagnostics.
' EDMAURER please don't use thread local storage widely. This is hoped to be a one-off usage.
<
ThreadStatic
()
>
...
...
Src/Compilers/VisualBasic/Source/Syntax/Syntax.xml
浏览文件 @
dac472af
...
...
@@ -47,7 +47,7 @@ Most significant structural changes from native/LM trees:
Unify FromItem and LinqSource into the same node (CollectionRangeVariable).
W
Hen FromExpre
sison was used as the source of an Aggregate, instead use JoinOrAggregateSource.
W
hen FromExpres
sison was used as the source of an Aggregate, instead use JoinOrAggregateSource.
Remove CrossJoin node, just represent as FromOperators with a source.
-->
...
...
Src/Workspaces/CSharp/CodeGeneration/CSharpSyntaxFactory.cs
浏览文件 @
dac472af
...
...
@@ -95,7 +95,7 @@ public override SyntaxNode CreateElementAccessExpression(SyntaxNode expression,
public
override
SyntaxNode
CreateDefaultExpression
(
ITypeSymbol
type
)
{
// If it's just a reference type, then "null" is the default expresison for it. Note:
// If it's just a reference type, then "null" is the default expres
s
ison for it. Note:
// this counts for actual reference type, or a type parameter with a 'class' constraint.
// Also, if it's a nullable type, then we can use "null".
if
(
type
.
IsReferenceType
||
...
...
Src/Workspaces/Core/FindSymbols/FindReferences/DependentProjectsFinder.cs
浏览文件 @
dac472af
...
...
@@ -225,13 +225,13 @@ private static async Task AddSubmissionDependentProjectsAsync(Solution solution,
var
compilation
=
await
project
.
GetCompilationAsync
(
cancellationToken
).
ConfigureAwait
(
false
);
if
(
compilation
.
PreviousSubmission
!=
null
)
{
var
refrencedProject
=
solution
.
GetProject
(
compilation
.
PreviousSubmission
.
Assembly
);
var
ref
e
rencedProject
=
solution
.
GetProject
(
compilation
.
PreviousSubmission
.
Assembly
);
List
<
ProjectId
>
referencingSubmissions
=
null
;
if
(!
projectIdsToReferencingSubmissionIds
.
TryGetValue
(
refrencedProject
.
Id
,
out
referencingSubmissions
))
if
(!
projectIdsToReferencingSubmissionIds
.
TryGetValue
(
ref
e
rencedProject
.
Id
,
out
referencingSubmissions
))
{
referencingSubmissions
=
new
List
<
ProjectId
>();
projectIdsToReferencingSubmissionIds
.
Add
(
refrencedProject
.
Id
,
referencingSubmissions
);
projectIdsToReferencingSubmissionIds
.
Add
(
ref
e
rencedProject
.
Id
,
referencingSubmissions
);
}
referencingSubmissions
.
Add
(
project
.
Id
);
...
...
Src/Workspaces/Core/Formatting/Context/FormattingContext.InitialContextFinder.cs
浏览文件 @
dac472af
...
...
@@ -98,7 +98,7 @@ private List<IndentBlockOperation> GetInitialIndentBlockOperations(SyntaxToken s
node
=
node
.
Parent
;
}
// make sure operations we have has effects over the formating span
// make sure operations we have has effects over the format
t
ing span
operations
.
RemoveAll
(
o
=>
o
==
null
||
!
o
.
TextSpan
.
IntersectsWith
(
span
));
// we couldn't find anything
...
...
Src/Workspaces/VisualBasic/Extensions/CastAnalyzer.vb
浏览文件 @
dac472af
...
...
@@ -201,7 +201,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions
End
If
' If removing the cast will result in a change in semantics of any of the parenting nodes, we won't remove it.
' We do this even for identity casts in case removing that cast might affect type infer
r
ence.
' We do this even for identity casts in case removing that cast might affect type inference.
If
speculationAnalyzer
.
ReplacementChangesSemantics
()
Then
Return
False
End
If
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录