Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
1f4f6b14
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,发现更多精彩内容 >>
提交
1f4f6b14
编写于
3月 19, 2015
作者:
C
Charles Stoner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Correct typos
上级
8771786e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
9 addition
and
13 deletion
+9
-13
src/Compilers/CSharp/Portable/BoundTree/BoundNode.cs
src/Compilers/CSharp/Portable/BoundTree/BoundNode.cs
+2
-5
src/Compilers/CSharp/Portable/Symbols/AssemblySymbol.cs
src/Compilers/CSharp/Portable/Symbols/AssemblySymbol.cs
+1
-1
src/Compilers/Core/Portable/Compilation/OptimizationLevel.cs
src/Compilers/Core/Portable/Compilation/OptimizationLevel.cs
+1
-1
src/Compilers/Core/Portable/MetadataReference/MetadataReference.cs
...lers/Core/Portable/MetadataReference/MetadataReference.cs
+1
-1
src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs
...ble/ReferenceManager/CommonReferenceManager.Resolution.cs
+1
-1
src/Scripting/Core/ObjectFormatter.Formatter.cs
src/Scripting/Core/ObjectFormatter.Formatter.cs
+1
-1
src/Scripting/Core/ScriptBuilder.cs
src/Scripting/Core/ScriptBuilder.cs
+1
-2
src/Workspaces/Core/Portable/Shared/Utilities/CommonFormattingHelpers.cs
...Core/Portable/Shared/Utilities/CommonFormattingHelpers.cs
+1
-1
未找到文件。
src/Compilers/CSharp/Portable/BoundTree/BoundNode.cs
浏览文件 @
1f4f6b14
...
...
@@ -2,10 +2,7 @@
using
System
;
using
System.Diagnostics
;
using
System.Linq
;
using
Microsoft.CodeAnalysis.CSharp.Symbols
;
using
Microsoft.CodeAnalysis.CSharp.Syntax
;
using
Microsoft.CodeAnalysis.Text
;
namespace
Microsoft.CodeAnalysis.CSharp
{
...
...
@@ -48,11 +45,11 @@ protected BoundNode(BoundKind kind, CSharpSyntaxNode syntax)
}
/// <summary>
/// Determines if a bound node, or associated syntax or type has an error (not a waring)
/// Determines if a bound node, or associated syntax or type has an error (not a war
n
ing)
/// diagnostic associated with it.
///
/// Typically used in the binder as a way to prevent cascading errors.
/// In most other cases a more lightweig
th
HasErrors should be used.
/// In most other cases a more lightweig
ht
HasErrors should be used.
/// </summary>
public
bool
HasAnyErrors
{
...
...
src/Compilers/CSharp/Portable/Symbols/AssemblySymbol.cs
浏览文件 @
1f4f6b14
...
...
@@ -579,7 +579,7 @@ internal TypeSymbol GetTypeByReflectionType(Type type, bool includeReferences)
Debug
.
Assert
(!
typeInfo
.
IsByRef
);
// not supported
rigth now
(we don't accept open types as submission results nor host types):
// not supported (we don't accept open types as submission results nor host types):
Debug
.
Assert
(!
typeInfo
.
ContainsGenericParameters
);
if
(
typeInfo
.
IsArray
)
...
...
src/Compilers/Core/Portable/Compilation/OptimizationLevel.cs
浏览文件 @
1f4f6b14
...
...
@@ -34,7 +34,7 @@ public enum OptimizationLevel
/// <item><description>JIT optimizations are enabled via assembly level attribute (<see cref="DebuggableAttribute"/>).</description></item>
/// <item><description>Edit and Continue is disabled.</description></item>
/// <item><description>Sequence points may be optimized away. As a result it might not be possible to place or hit a breakpoint.</description></item>
/// <item><description>User-defined locals mig
th
be optimized away. They might not be available while debugging.</description></item>
/// <item><description>User-defined locals mig
ht
be optimized away. They might not be available while debugging.</description></item>
/// </list>
/// <para>
/// Corresponds to command line argument /optimize+.
...
...
src/Compilers/Core/Portable/MetadataReference/MetadataReference.cs
浏览文件 @
1f4f6b14
...
...
@@ -297,7 +297,7 @@ public static MetadataReference CreateFromAssembly(Assembly assembly)
Stream
peStream
=
FileStreamLightUp
.
OpenFileStream
(
location
);
// The file is locked by the CLR assembly loader, so we can create a lazily read metadata,
// which mig
th
also lock the file until the reference is GC'd.
// which mig
ht
also lock the file until the reference is GC'd.
var
metadata
=
AssemblyMetadata
.
CreateFromStream
(
peStream
);
return
metadata
.
GetReference
(
filePath
:
location
);
...
...
src/Compilers/Core/Portable/ReferenceManager/CommonReferenceManager.Resolution.cs
浏览文件 @
1f4f6b14
...
...
@@ -616,7 +616,7 @@ private static void AddModule(PEModule module, int referenceIndex, ResolvedRefer
{
Debug
.
Assert
(
equivalent
.
Identity
.
IsStrongName
);
// versions mig
th
have been unified for a Framework assembly:
// versions mig
ht
have been unified for a Framework assembly:
if
(
identity
!=
equivalent
.
Identity
)
{
// Dev12 C# reports an error
...
...
src/Scripting/Core/ObjectFormatter.Formatter.cs
浏览文件 @
1f4f6b14
...
...
@@ -744,7 +744,7 @@ private void ObjectToString(Builder result, object obj)
/// The attribute doesn't specify what language (VB, C#, F#, etc.) to use to parse these expressions. Even if it did all languages
/// would need to be able to evaluate each other language's expressions, which is not viable and the Expression Evaluator doesn't
/// work that way today. Instead it evaluates the embedded expressions in the language of the current method frame. When consuming
/// VB objects from C#, for example, the evaluation mig
th
fail due to language mismatch (evaluating VB expression using C# parser).
/// VB objects from C#, for example, the evaluation mig
ht
fail due to language mismatch (evaluating VB expression using C# parser).
///
/// Therefore we limit the expressions to a simple language independent syntax: {clr-member-name} '(' ')' ',nq',
/// where parentheses and ,nq suffix (no-quotes) are optional and the name is an arbitrary CLR field, property, or method name.
...
...
src/Scripting/Core/ScriptBuilder.cs
浏览文件 @
1f4f6b14
...
...
@@ -2,7 +2,6 @@
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Immutable
;
using
System.Diagnostics
;
using
System.Reflection
;
using
System.Reflection.Emit
;
...
...
@@ -27,7 +26,7 @@ internal class ScriptBuilder
/// identity into the same load context.
///
/// We are using a certain naming scheme for the generated assemblies (a fixed name prefix followed by a number).
/// If we allowed the compiled code to add references that match this exact pattern it mig
th
happen that
/// If we allowed the compiled code to add references that match this exact pattern it mig
ht
happen that
/// the user supplied reference identity conflicts with the identity we use for our generated assemblies and
/// the AppDomain assembly resolve event won't be able to correctly identify the target assembly.
///
...
...
src/Workspaces/Core/Portable/Shared/Utilities/CommonFormattingHelpers.cs
浏览文件 @
1f4f6b14
...
...
@@ -259,7 +259,7 @@ private static void AppendTrailingTriviaText(SyntaxToken token, StringBuilder bu
public
static
TextSpan
GetSpanIncludingTrailingAndLeadingTriviaOfAdjacentTokens
(
SyntaxToken
startToken
,
SyntaxToken
endToken
)
{
// most of cases we can just ask previous and next token to create the span, but in some corner cases such as omitted token case,
// those navigation function doesn't work, so we have to explore the tree ourselves to create
rigth
span
// those navigation function doesn't work, so we have to explore the tree ourselves to create
correct
span
var
startPosition
=
GetStartPositionOfSpan
(
startToken
);
var
endPosition
=
GetEndPositionOfSpan
(
endToken
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录