Skip to content

Commit

Permalink
Resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouv committed Sep 12, 2024
1 parent f56229e commit 2abe315
Show file tree
Hide file tree
Showing 26 changed files with 121 additions and 188 deletions.
7 changes: 1 addition & 6 deletions src/Compilers/CSharp/Portable/Errors/MessageID.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,8 @@ internal static LanguageVersion RequiredVersion(this MessageID feature)
// PREFER reporting diagnostics in binding when diagnostics do not affect the shape of the syntax tree

// C# preview features.
<<<<<<< HEAD
case MessageID.IDS_FeatureRefStructInterfaces:
case MessageID.IDS_FeatureFieldAndValueKeywords:
case MessageID.IDS_FeatureExtensions:
=======
case MessageID.IDS_FeatureFieldKeyword:
>>>>>>> origin/main
case MessageID.IDS_FeatureExtensions:
return LanguageVersion.Preview;

// C# 13.0 features.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,8 @@ BoundExpression visitArgumentsAndFinishRewrite(BoundCall node, BoundExpression?
ref temps,
invokedAsExtensionMethod);

<<<<<<< HEAD
// PROTOTYPE(roles): Disable interception for extensions?
InterceptCallAndAdjustArguments(ref method, ref rewrittenReceiver, ref rewrittenArguments, ref argRefKindsOpt, invokedAsExtensionMethod, node.InterceptableNameSyntax);
=======
InterceptCallAndAdjustArguments(ref method, ref rewrittenReceiver, ref rewrittenArguments, ref argRefKindsOpt, ref temps, invokedAsExtensionMethod, node.InterceptableNameSyntax);
>>>>>>> origin/main

if (Instrument)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,38 @@ public override TypeDeclarationSyntax UpdateCore(
semicolonToken);
}
}

internal partial class ExtensionDeclarationSyntax
{
public override TypeDeclarationSyntax UpdateCore(
CoreSyntax.SyntaxList<AttributeListSyntax> attributeLists,
CoreSyntax.SyntaxList<SyntaxToken> modifiers,
SyntaxToken keyword,
SyntaxToken identifier,
TypeParameterListSyntax typeParameterList,
ParameterListSyntax parameterList,
BaseListSyntax baseList,
CoreSyntax.SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses,
SyntaxToken openBraceToken,
CoreSyntax.SyntaxList<MemberDeclarationSyntax> members,
SyntaxToken closeBraceToken,
SyntaxToken semicolonToken)
{
return this.Update(
attributeLists,
modifiers,
this.ImplicitOrExplicitKeyword,
keyword,
identifier,
typeParameterList,
parameterList,
this.ForUnderlyingType,
baseList,
constraintClauses,
openBraceToken,
members,
closeBraceToken,
semicolonToken);
}
}
}
6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.pt-BR.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ru.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.tr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.zh-Hans.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.zh-Hant.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenTupleTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27918,13 +27918,8 @@ public ValueTuple(T1 item1)
}
}
}";
<<<<<<< HEAD
var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib45);
var type = (SourceNonExtensionNamedTypeSymbol)comp.GetMember("System.ValueTuple");
=======
var comp = CreateCompilation(source, targetFramework: TargetFramework.Mscorlib461);
var type = (SourceNamedTypeSymbol)comp.GetMember("System.ValueTuple");
>>>>>>> origin/main
var type = (SourceNonExtensionNamedTypeSymbol)comp.GetMember("System.ValueTuple");
var field = (SourceMemberFieldSymbolFromDeclarator)type.GetMember("Item1");
var underlyingField = field.TupleUnderlyingField;

Expand Down
Loading

0 comments on commit 2abe315

Please sign in to comment.