-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Reference Assembly support - 'refonly' and 'refout' compiler options #12334
Changes from 124 commits
2411f75
1b6dc26
ee89986
9dcdbb0
84cd6a8
3a0a7be
5d78b77
2f1af9b
512743c
4af859b
6b5c032
84354ba
6d93c92
c31ce72
0d02203
8f5cbf5
daf1847
9d0c7f6
47d3b5a
5e4460e
3468094
23d0da7
8a1504f
d7e491e
7ff20d6
a023c38
6801573
91dbaa0
4931062
e5c1cc8
bb26684
7415f4a
ee33c6d
180f339
e36c696
32044c5
3088747
f475e58
cfa275c
1604fa0
6f6b2a6
f4c9980
193ba49
4793882
69fb788
067091b
5e14bbc
2a9bcf1
7a5ba80
cb85986
cebcc6c
e4c046f
3bdd39d
c0c83e4
d4984eb
1b3fdcf
b6ac933
447ab7a
2e4f679
6f22cb8
50a041d
78f53ac
222dad3
b22c2e5
f1f2cc6
3c2d413
246bcfe
1da9044
9babedc
c353628
2e6caaa
62c3254
a452cba
19e9ce5
eac93e3
ee90edc
ee77c70
f868a05
e4b2e1e
70c2fb1
a188671
ddd4103
d29ffde
eb998bf
2284b7c
4873683
0d453b5
c1bc0f7
a461988
dca1a16
ed1bdc0
9d5c0d2
919c100
575d38a
aea1908
c124e18
c90d810
18717bc
460e408
01bf4d9
42b783d
1104455
f12e73b
70ffc39
bafd958
94d29b7
1c39033
6ef6eea
e701883
dad0c8c
a93d820
591cfb6
ad1e2c0
00ed291
990e09b
0e9c3ad
f552651
22f89e5
48f91d9
095987d
f204e20
b90c2fd
7cf2676
f1a7ff4
2b7a114
033a112
1b4ff9d
74ff369
7ba8563
51e9d5a
897d9c1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
powershell -noprofile -executionPolicy RemoteSigned -file "%~dp0\test-determinism.ps1" %* | ||
powershell -noprofile -executionPolicy RemoteSigned -file "%~dp0\test-determinism.ps1" %* |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2102,12 +2102,12 @@ let convertInitSemantics (init: ILTypeInit) = | |
[<NoComparison; NoEquality>] | ||
type ILTypeDef(name: string, attributes: TypeAttributes, layout: ILTypeDefLayout, implements: ILTypes, genericParams: ILGenericParameterDefs, | ||
extends: ILType option, methods: ILMethodDefs, nestedTypes: ILTypeDefs, fields: ILFieldDefs, methodImpls: ILMethodImplDefs, | ||
events: ILEventDefs, properties: ILPropertyDefs, securityDeclsStored: ILSecurityDeclsStored, customAttrsStored: ILAttributesStored, metadataIndex: int32) = | ||
events: ILEventDefs, properties: ILPropertyDefs, isAttribute: bool, securityDeclsStored: ILSecurityDeclsStored, customAttrsStored: ILAttributesStored, metadataIndex: int32) = | ||
|
||
let mutable customAttrsStored = customAttrsStored | ||
|
||
new (name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, securityDecls, customAttrs) = | ||
ILTypeDef (name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, storeILSecurityDecls securityDecls, storeILCustomAttrs customAttrs, NoMetadataIdx) | ||
new (name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, isAttribute, securityDecls, customAttrs) = | ||
ILTypeDef (name, attributes, layout, implements, genericParams, extends, methods, nestedTypes, fields, methodImpls, events, properties, isAttribute, storeILSecurityDecls securityDecls, storeILCustomAttrs customAttrs, NoMetadataIdx) | ||
|
||
member _.Name = name | ||
member _.Attributes = attributes | ||
|
@@ -2122,10 +2122,11 @@ type ILTypeDef(name: string, attributes: TypeAttributes, layout: ILTypeDefLayout | |
member _.MethodImpls = methodImpls | ||
member _.Events = events | ||
member _.Properties = properties | ||
member _.IsAttribute = isAttribute | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Storing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking about it, looking at There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just note that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because As a possible alternative, we could build some kind of storage in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah, that was a main reason of computing it for
Let me experiment with. |
||
member _.CustomAttrsStored = customAttrsStored | ||
member _.MetadataIndex = metadataIndex | ||
|
||
member x.With(?name, ?attributes, ?layout, ?implements, ?genericParams, ?extends, ?methods, ?nestedTypes, ?fields, ?methodImpls, ?events, ?properties, ?customAttrs, ?securityDecls) = | ||
member x.With(?name, ?attributes, ?layout, ?implements, ?genericParams, ?extends, ?methods, ?nestedTypes, ?fields, ?methodImpls, ?events, ?properties, ?isAttribute, ?customAttrs, ?securityDecls) = | ||
ILTypeDef(name=defaultArg name x.Name, | ||
attributes=defaultArg attributes x.Attributes, | ||
layout=defaultArg layout x.Layout, | ||
|
@@ -2139,6 +2140,7 @@ type ILTypeDef(name: string, attributes: TypeAttributes, layout: ILTypeDefLayout | |
methodImpls = defaultArg methodImpls x.MethodImpls, | ||
events = defaultArg events x.Events, | ||
properties = defaultArg properties x.Properties, | ||
isAttribute = defaultArg isAttribute x.IsAttribute, | ||
customAttrs = defaultArg customAttrs x.CustomAttrs) | ||
|
||
member x.CustomAttrs = | ||
|
@@ -3345,6 +3347,7 @@ let mkILGenericClass (nm, access, genparams, extends, impl, methods, fields, nes | |
methodImpls=emptyILMethodImpls, | ||
properties=props, | ||
events=events, | ||
isAttribute=false, | ||
securityDecls=emptyILSecurityDecls) | ||
|
||
let mkRawDataValueTypeDef (iltyp_ValueType: ILType) (nm, size, pack) = | ||
|
@@ -3362,6 +3365,7 @@ let mkRawDataValueTypeDef (iltyp_ValueType: ILType) (nm, size, pack) = | |
methodImpls=emptyILMethodImpls, | ||
properties=emptyILProperties, | ||
events=emptyILEvents, | ||
isAttribute=false, | ||
securityDecls=emptyILSecurityDecls) | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"do not specify"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vzarytovskii
This should read something like: