mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
Compare commits
664
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0511d99a29 | ||
|
|
e587464d80 | ||
|
|
406bd743d8 | ||
|
|
b790bf549e | ||
|
|
afbe09bbca | ||
|
|
c98c771228 | ||
|
|
e6dd37fa96 | ||
|
|
2099acf5f4 | ||
|
|
2c542fdc1b | ||
|
|
b17b5f38d6 | ||
|
|
25765e8d97 | ||
|
|
e7a5ef4aeb | ||
|
|
d189c74fa7 | ||
|
|
a9e73e7370 | ||
|
|
ea954f481b | ||
|
|
897ecfd59c | ||
|
|
d417b6d7dc | ||
|
|
2d4106dd06 | ||
|
|
200dff9cd1 | ||
|
|
cefa02738c | ||
|
|
7e24a650a8 | ||
|
|
a2083326f5 | ||
|
|
a2ec6eb28e | ||
|
|
778388f9ee | ||
|
|
62385ee390 | ||
|
|
75eacd49ae | ||
|
|
42aafd4c01 | ||
|
|
bf52e31dc2 | ||
|
|
68c053315e | ||
|
|
a3304910e9 | ||
|
|
91c849e442 | ||
|
|
5a36c9f1fd | ||
|
|
c3194fdd4a | ||
|
|
232236bed7 | ||
|
|
87d566aa5a | ||
|
|
30d0db2e53 | ||
|
|
d7b0d18bf0 | ||
|
|
13f3aab33e | ||
|
|
eeb5d4c670 | ||
|
|
17aa73d0ae | ||
|
|
327ef5d7a5 | ||
|
|
a616c819ef | ||
|
|
8f0f3c934a | ||
|
|
41bbde6add | ||
|
|
1c1a8550f3 | ||
|
|
171e74beab | ||
|
|
0cbf3e4a3c | ||
|
|
dd398d3481 | ||
|
|
1a5a4384d2 | ||
|
|
e8ee7f1f1d | ||
|
|
2ab495d049 | ||
|
|
60c26e4dd9 | ||
|
|
136f149c28 | ||
|
|
f76ffd46ce | ||
|
|
82a606c516 | ||
|
|
61ccc132bc | ||
|
|
8476f66ff2 | ||
|
|
41f760c673 | ||
|
|
cc0eb1b4cc | ||
|
|
781e549c48 | ||
|
|
4735975f0c | ||
|
|
c4597c7b8d | ||
|
|
507c619003 | ||
|
|
1a2e6167f4 | ||
|
|
17fb976edf | ||
|
|
fc5ed9af92 | ||
|
|
3478b0aa86 | ||
|
|
dce4401036 | ||
|
|
b058816edd | ||
|
|
b8688a447f | ||
|
|
c39797389a | ||
|
|
9cad7ff740 | ||
|
|
747c9fdc79 | ||
|
|
3830a53dc4 | ||
|
|
85bd889b9f | ||
|
|
ffaa990747 | ||
|
|
4c5545630d | ||
|
|
a86062cef0 | ||
|
|
580ccb1ffb | ||
|
|
8cc92b3c9a | ||
|
|
648916b028 | ||
|
|
c90f2f651f | ||
|
|
6fafd08b50 | ||
|
|
cbc30eb58e | ||
|
|
752ae75341 | ||
|
|
3922cd7d77 | ||
|
|
2a2c317d07 | ||
|
|
8c9259e7e9 | ||
|
|
3e7abade0e | ||
|
|
7a5658f388 | ||
|
|
ba36f4d622 | ||
|
|
9e79e88494 | ||
|
|
3bfd0fd2f8 | ||
|
|
d570afec5f | ||
|
|
c4512332ed | ||
|
|
4d1c90a812 | ||
|
|
4638c98ba0 | ||
|
|
ce44460fc7 | ||
|
|
b9448d5320 | ||
|
|
e6f020d390 | ||
|
|
5217f963e7 | ||
|
|
8435306c98 | ||
|
|
e461e9c6d2 | ||
|
|
41d647d252 | ||
|
|
25a5bedec1 | ||
|
|
70828363f1 | ||
|
|
45db742590 | ||
|
|
b6d57b4107 | ||
|
|
bbdba7d191 | ||
|
|
90efacbec9 | ||
|
|
66f47e25e9 | ||
|
|
3e906acfe2 | ||
|
|
0014f68478 | ||
|
|
123daf5e46 | ||
|
|
87bb2f5814 | ||
|
|
4ab98d81cd | ||
|
|
6393dc1926 | ||
|
|
dba2b07309 | ||
|
|
786cbe76a8 | ||
|
|
6443cd04c1 | ||
|
|
4d1e45d76a | ||
|
|
90b11833ff | ||
|
|
2115cd7394 | ||
|
|
15277e6bd6 | ||
|
|
f53004b171 | ||
|
|
59083b6912 | ||
|
|
665ef73634 | ||
|
|
fe3454a2de | ||
|
|
80e57d368b | ||
|
|
4771dc97ce | ||
|
|
a0fa08a524 | ||
|
|
a9c402ffda | ||
|
|
c1c09bc78d | ||
|
|
4d5f823b0f | ||
|
|
6c600321a7 | ||
|
|
1592e1e3da | ||
|
|
2811e6d984 | ||
|
|
496c5871ca | ||
|
|
6217218134 | ||
|
|
31e3260a36 | ||
|
|
7edc2b4a5f | ||
|
|
3ff66ac985 | ||
|
|
9bec7d1d33 | ||
|
|
a4806314e1 | ||
|
|
11987ed3a8 | ||
|
|
5d4a9aa7f9 | ||
|
|
a146700e40 | ||
|
|
a9e3ef2e13 | ||
|
|
a5076ac021 | ||
|
|
b715527f92 | ||
|
|
66a6782051 | ||
|
|
11e5c801a2 | ||
|
|
7b114d1942 | ||
|
|
96fc5f6350 | ||
|
|
1540749175 | ||
|
|
a483c550d7 | ||
|
|
4018527279 | ||
|
|
54a98ba74e | ||
|
|
463cf3b5c1 | ||
|
|
d86c6dce1c | ||
|
|
a333f0685b | ||
|
|
1312784075 | ||
|
|
1006d04ff6 | ||
|
|
74c2ce1ff8 | ||
|
|
6447228e30 | ||
|
|
b8285f3c99 | ||
|
|
395814d25f | ||
|
|
ec0624edc6 | ||
|
|
a715c0daee | ||
|
|
622840da56 | ||
|
|
c0dd559ee4 | ||
|
|
ddae67da8a | ||
|
|
99a0b46327 | ||
|
|
5a06ca6c04 | ||
|
|
59e8fa77d7 | ||
|
|
09c7afbc75 | ||
|
|
15145d0554 | ||
|
|
0af1ea70c2 | ||
|
|
5e8abc1c40 | ||
|
|
ebbdb78a35 | ||
|
|
00dac826ca | ||
|
|
f4a7a5242a | ||
|
|
a22bb15e6b | ||
|
|
a82fcb2c9c | ||
|
|
1b5338dc5f | ||
|
|
2e31504f02 | ||
|
|
cd57ffcd04 | ||
|
|
03c249026e | ||
|
|
f376e49d95 | ||
|
|
cdd571a071 | ||
|
|
882d805b9d | ||
|
|
8632f59dd2 | ||
|
|
1ba011835d | ||
|
|
96db2c2751 | ||
|
|
9f1983da90 | ||
|
|
2a927126d3 | ||
|
|
a2b79b241d | ||
|
|
a6155cbc4a | ||
|
|
85b2056a36 | ||
|
|
44f06623bd | ||
|
|
e0e93f396d | ||
|
|
780743d055 | ||
|
|
881dc69fef | ||
|
|
7ad842c95c | ||
|
|
4a1c47f4bd | ||
|
|
b94bebc69b | ||
|
|
b182c70602 | ||
|
|
588b905349 | ||
|
|
53ac1b026b | ||
|
|
a4bbf29c15 | ||
|
|
0fc77091f3 | ||
|
|
fc662e3ffe | ||
|
|
c37ef087cf | ||
|
|
b1d1a9d662 | ||
|
|
b0876880fd | ||
|
|
401e28d28f | ||
|
|
5f5a66ee96 | ||
|
|
35405bee31 | ||
|
|
1a17c39b23 | ||
|
|
067f012082 | ||
|
|
d3a4abc745 | ||
|
|
94c2a5434f | ||
|
|
c078f357c6 | ||
|
|
e98342bf74 | ||
|
|
8a83c3eb2c | ||
|
|
3e220c5b7b | ||
|
|
49b2bdeafb | ||
|
|
c27b70cc43 | ||
|
|
847ed21be0 | ||
|
|
88a6ae00a2 | ||
|
|
2bf7d1b525 | ||
|
|
01262e9104 | ||
|
|
294148d27d | ||
|
|
0b442e8430 | ||
|
|
e02828877e | ||
|
|
af7195e349 | ||
|
|
5bc0917df2 | ||
|
|
1e227ddee1 | ||
|
|
f58bc6e295 | ||
|
|
ae1822075d | ||
|
|
a21fae83b7 | ||
|
|
092f4c6ac0 | ||
|
|
a350f8f0f4 | ||
|
|
da3bd8368b | ||
|
|
be84042525 | ||
|
|
81129b83c3 | ||
|
|
8b7eee9788 | ||
|
|
5bb4b3d154 | ||
|
|
6f33b62f39 | ||
|
|
a28e700ff5 | ||
|
|
ad2d093d06 | ||
|
|
721ad57069 | ||
|
|
c0712cb163 | ||
|
|
64da05d517 | ||
|
|
5f7db6b93f | ||
|
|
bae654cbf7 | ||
|
|
d4513c61d4 | ||
|
|
1283104761 | ||
|
|
8fd5b8e0f5 | ||
|
|
914733cd27 | ||
|
|
fef19961d7 | ||
|
|
78072e093d | ||
|
|
a60e3b1497 | ||
|
|
6757632ae7 | ||
|
|
25869d138a | ||
|
|
4f187040c6 | ||
|
|
ab93bc9a7b | ||
|
|
b353ba1788 | ||
|
|
58ad70577a | ||
|
|
f6a855df8c | ||
|
|
067ed199d2 | ||
|
|
705d2361ca | ||
|
|
ca6d958db0 | ||
|
|
69b48401c9 | ||
|
|
51278a7b25 | ||
|
|
a3195b79f6 | ||
|
|
572e92c597 | ||
|
|
1de81ff1da | ||
|
|
3821e9bead | ||
|
|
ab66a6156f | ||
|
|
eb0e423499 | ||
|
|
814d37f556 | ||
|
|
ea5c5fe093 | ||
|
|
aad9126f5f | ||
|
|
c63aa7cd12 | ||
|
|
f2ba124191 | ||
|
|
03bd0ea9e6 | ||
|
|
0f2b159ed9 | ||
|
|
c12b559df3 | ||
|
|
420b6c3145 | ||
|
|
1bad3716e3 | ||
|
|
a4a794266d | ||
|
|
65025fea2c | ||
|
|
982646c232 | ||
|
|
65cddd7727 | ||
|
|
21dec72083 | ||
|
|
eff552d9bd | ||
|
|
6218be7200 | ||
|
|
d772d6a0e3 | ||
|
|
eea2d3e250 | ||
|
|
3a5adbd2af | ||
|
|
d455c0d234 | ||
|
|
4339c540ca | ||
|
|
6504758616 | ||
|
|
3a3baaf72a | ||
|
|
eda8722273 | ||
|
|
392de95a84 | ||
|
|
ceb5151a23 | ||
|
|
b5ea5215ef | ||
|
|
0b7b9d2bff | ||
|
|
b9d5083353 | ||
|
|
ddbea4b85a | ||
|
|
52c9310997 | ||
|
|
3ffd7c6ca8 | ||
|
|
b9480403b5 | ||
|
|
4b393c4e68 | ||
|
|
0560b20dad | ||
|
|
548e5ad0f7 | ||
|
|
cc82f7647f | ||
|
|
9e0e78ad64 | ||
|
|
b22850efd7 | ||
|
|
b2a93db718 | ||
|
|
cd1797fac9 | ||
|
|
fd8a5f9ebf | ||
|
|
8cdf86ee69 | ||
|
|
fa171c4369 | ||
|
|
78fb960c6a | ||
|
|
243d65d765 | ||
|
|
9862d66925 | ||
|
|
a2a647ca37 | ||
|
|
fa7f66c939 | ||
|
|
c6ceaa11df | ||
|
|
396ea09438 | ||
|
|
722e5ff2c5 | ||
|
|
cd8880b0c3 | ||
|
|
6761073b2a | ||
|
|
d46883ac2d | ||
|
|
d38d6580e2 | ||
|
|
2889a73335 | ||
|
|
e1c694a6c6 | ||
|
|
c013b533f2 | ||
|
|
5a5cca1bc0 | ||
|
|
8112950205 | ||
|
|
d3d1b2d56a | ||
|
|
b85b691a1a | ||
|
|
1651cf1ae3 | ||
|
|
2c9e4379c9 | ||
|
|
ed12a1d4da | ||
|
|
81a4224c7d | ||
|
|
b0b4fb685a | ||
|
|
15deb5b223 | ||
|
|
3ad43b66e7 | ||
|
|
abf1a37e2e | ||
|
|
2c50197c33 | ||
|
|
123e545dee | ||
|
|
fb14f43a98 | ||
|
|
c1b9fc566a | ||
|
|
62de061fb2 | ||
|
|
8c7b88f1aa | ||
|
|
6f2cbfaade | ||
|
|
aaa5b33e18 | ||
|
|
6ce41773fb | ||
|
|
af0192d09a | ||
|
|
fbdf874ee5 | ||
|
|
d1be740678 | ||
|
|
725d5fdcc2 | ||
|
|
7d1d8f51d8 | ||
|
|
fb4d198131 | ||
|
|
b39878bbda | ||
|
|
690c34df5f | ||
|
|
b37a2639e9 | ||
|
|
6bb074bbfb | ||
|
|
a56212b5ae | ||
|
|
b85e7c862b | ||
|
|
b41347b9f4 | ||
|
|
875ab8db4c | ||
|
|
3e4783c04b | ||
|
|
9547921445 | ||
|
|
5eb363dbf1 | ||
|
|
3f3be880fa | ||
|
|
1a07a83f17 | ||
|
|
30d60224a8 | ||
|
|
c667ba8f62 | ||
|
|
a5624bf9ea | ||
|
|
5134b17082 | ||
|
|
a19175129f | ||
|
|
c6de69eb21 | ||
|
|
f9e87491df | ||
|
|
eec02ff936 | ||
|
|
86aa29ba9c | ||
|
|
3f86444112 | ||
|
|
eca868c73c | ||
|
|
e71a7f33ef | ||
|
|
d2a6ce3a93 | ||
|
|
4d7109cceb | ||
|
|
f6b11e2213 | ||
|
|
d01c819b05 | ||
|
|
8059fb5c5c | ||
|
|
2b10be3758 | ||
|
|
16e5b3dbf8 | ||
|
|
8b671a8c31 | ||
|
|
5aa5218a13 | ||
|
|
9a09cb3ca5 | ||
|
|
f9dcaa74a9 | ||
|
|
271f003d33 | ||
|
|
b5a4413ca9 | ||
|
|
78da0216d2 | ||
|
|
f39517dcc9 | ||
|
|
a9fc05d4af | ||
|
|
9c630f56ce | ||
|
|
57172b4f19 | ||
|
|
e6de93e0c3 | ||
|
|
8946cb628f | ||
|
|
29455cce9b | ||
|
|
c0eb4ba374 | ||
|
|
a5aa5a1354 | ||
|
|
5b30a15806 | ||
|
|
550d7b0095 | ||
|
|
4accf0d718 | ||
|
|
1e7d4e1401 | ||
|
|
02782549c3 | ||
|
|
3f6f50317d | ||
|
|
959d68eacc | ||
|
|
bf71c7a73c | ||
|
|
bc59e605dd | ||
|
|
159153b539 | ||
|
|
84e9a10987 | ||
|
|
ca8f94773d | ||
|
|
f14b6234e4 | ||
|
|
66d987e38b | ||
|
|
d135465fba | ||
|
|
d899b02874 | ||
|
|
5e0d39a8a1 | ||
|
|
2a239b5205 | ||
|
|
c2c4503360 | ||
|
|
0c38b2846a | ||
|
|
6025544e01 | ||
|
|
34012db895 | ||
|
|
f35595be4d | ||
|
|
e461b821b1 | ||
|
|
b7f7f8c40d | ||
|
|
cb21cf2519 | ||
|
|
f88093694b | ||
|
|
91cd0472de | ||
|
|
f89d6b0c76 | ||
|
|
530ad57bc9 | ||
|
|
8120d7baad | ||
|
|
79f69c8cd7 | ||
|
|
52d4b9dcb7 | ||
|
|
3e2a367d91 | ||
|
|
68c190b1d6 | ||
|
|
ce4977fd6c | ||
|
|
487b036c28 | ||
|
|
bc25f308ca | ||
|
|
7dc414e181 | ||
|
|
655ac68c8a | ||
|
|
5c11fe6475 | ||
|
|
6a8c21d3ea | ||
|
|
de9d6af30d | ||
|
|
7584a761ba | ||
|
|
244d35f301 | ||
|
|
98a369ffa9 | ||
|
|
4fb9e11be7 | ||
|
|
874d6d4481 | ||
|
|
caaad87769 | ||
|
|
bafdce393e | ||
|
|
5927c87748 | ||
|
|
491730fbc3 | ||
|
|
26748dcdbf | ||
|
|
b36c8440d3 | ||
|
|
6d107fdeca | ||
|
|
a7bed9a7fc | ||
|
|
995e5620fb | ||
|
|
8d0e921d8b | ||
|
|
f1fa4ecd4d | ||
|
|
421088dfce | ||
|
|
8e7cae914b | ||
|
|
a5f5ca7e4b | ||
|
|
368c02f522 | ||
|
|
0fc4608b1b | ||
|
|
8d3e2a3c82 | ||
|
|
8fdae0685f | ||
|
|
ef88a33d1c | ||
|
|
cb947b7a56 | ||
|
|
25a554dc6b | ||
|
|
f03f5bf483 | ||
|
|
53925041e1 | ||
|
|
9389d44cba | ||
|
|
e1328b4a36 | ||
|
|
16dd36fe77 | ||
|
|
f8f323d671 | ||
|
|
4c4176ac3f | ||
|
|
46a0e22cc5 | ||
|
|
a794f55d16 | ||
|
|
0d2d3266b7 | ||
|
|
3d7713edcc | ||
|
|
f786b0d001 | ||
|
|
3ab1a56f73 | ||
|
|
c51a8e79ef | ||
|
|
77779a3798 | ||
|
|
539a6580da | ||
|
|
4ccd94d7cc | ||
|
|
9aa9822808 | ||
|
|
bc209e41d7 | ||
|
|
4ebb99f7a2 | ||
|
|
1171b0c1c0 | ||
|
|
70deea8dde | ||
|
|
c5efaeb498 | ||
|
|
ea9d8f02a9 | ||
|
|
79c1053d83 | ||
|
|
1339280bf5 | ||
|
|
5d373fb3e2 | ||
|
|
09e456bd98 | ||
|
|
dd4c3c2277 | ||
|
|
4f1a64acb0 | ||
|
|
779d417c8f | ||
|
|
765b41d0eb | ||
|
|
a26b7f61fe | ||
|
|
15a6c8a875 | ||
|
|
cd1fb04733 | ||
|
|
b495a722fe | ||
|
|
cb44ebe851 | ||
|
|
721a1200e4 | ||
|
|
f18e9a35e7 | ||
|
|
f50619864a | ||
|
|
2fc85bb367 | ||
|
|
4281399ba4 | ||
|
|
bdc40b7009 | ||
|
|
6a1bc81524 | ||
|
|
f0e2ab213d | ||
|
|
5f6f7b17bc | ||
|
|
a26da0742b | ||
|
|
5a20b20939 | ||
|
|
27b511e9e8 | ||
|
|
9c4c68f6c0 | ||
|
|
66f515c6e6 | ||
|
|
36506fd65b | ||
|
|
4b6221f88e | ||
|
|
1d38766f1d | ||
|
|
04fd965bc6 | ||
|
|
42d14faddb | ||
|
|
1be92405d9 | ||
|
|
2e591671a4 | ||
|
|
2b8362fa4a | ||
|
|
069b2287b0 | ||
|
|
65a94cb15f | ||
|
|
daae700d53 | ||
|
|
8d11edbb18 | ||
|
|
0d08e2b3fb | ||
|
|
3c31172e41 | ||
|
|
804044e4bd | ||
|
|
ad4eb74c6f | ||
|
|
f48449d629 | ||
|
|
28e8525372 | ||
|
|
ed1d25225b | ||
|
|
2166f0315a | ||
|
|
f0945bf7f6 | ||
|
|
b6f511dc16 | ||
|
|
deda0b8d8c | ||
|
|
cb0267cf43 | ||
|
|
e697335417 | ||
|
|
ff5956eacb | ||
|
|
fd6829c5b9 | ||
|
|
ed685e8b76 | ||
|
|
b7f2b467d6 | ||
|
|
1063240b86 | ||
|
|
5f7e9663af | ||
|
|
a4df7d4923 | ||
|
|
aaf7b009c0 | ||
|
|
a6c34bea95 | ||
|
|
36f29ca619 | ||
|
|
75702b65c9 | ||
|
|
b50ac20959 | ||
|
|
c363aae8d1 | ||
|
|
6e89ac3b20 | ||
|
|
85f0de201f | ||
|
|
b117a53b8f | ||
|
|
09d49bbe57 | ||
|
|
e98d3b9ca2 | ||
|
|
b472a0391c | ||
|
|
0605fe6928 | ||
|
|
1e1016775e | ||
|
|
779b5e8aed | ||
|
|
17c5a00c59 | ||
|
|
965750f13a | ||
|
|
f238640c9f | ||
|
|
16edc1e552 | ||
|
|
769d2a66b7 | ||
|
|
cd7a379d4d | ||
|
|
516e1cf793 | ||
|
|
4e54ac3d4b | ||
|
|
35ffcbc1a3 | ||
|
|
c283d07830 | ||
|
|
d14339d661 | ||
|
|
466765f73f | ||
|
|
9887662433 | ||
|
|
e4bd4dbb15 | ||
|
|
7bfb9bcb78 | ||
|
|
764de0ed5d | ||
|
|
2fb5b32d59 | ||
|
|
6a5690b9af | ||
|
|
9433d2c80a | ||
|
|
f7f2aadc63 | ||
|
|
85b89a1f4c | ||
|
|
ac10f4e562 | ||
|
|
aad8adc02d | ||
|
|
cfd8ee350b | ||
|
|
eedeb428d6 | ||
|
|
7100d93117 | ||
|
|
7e96bcfa38 | ||
|
|
611f3eea3e | ||
|
|
eaeadc3cdd | ||
|
|
fa4c0b6af3 | ||
|
|
7da0d3c26b | ||
|
|
b17ddc5c15 | ||
|
|
6c856a2dce | ||
|
|
8e49b6eb26 | ||
|
|
28173013b5 | ||
|
|
2436b702f9 | ||
|
|
97ad3a34d9 | ||
|
|
82974a28da | ||
|
|
2ac4e6a5c8 | ||
|
|
cc8d9648c0 | ||
|
|
95ac41a19b | ||
|
|
f26e4b2f6e | ||
|
|
9393226b12 | ||
|
|
924d93d1c5 | ||
|
|
ecf2510108 | ||
|
|
12b44a0e94 | ||
|
|
686fae761c | ||
|
|
3b2913ca03 | ||
|
|
41fced547f | ||
|
|
9780c4d801 | ||
|
|
82bcac8efa | ||
|
|
6df483ca43 | ||
|
|
740380de09 | ||
|
|
8b18c84289 | ||
|
|
d46d59e019 | ||
|
|
63aec27545 | ||
|
|
4c6c6f0ef8 | ||
|
|
1894134817 | ||
|
|
8bbf58446d | ||
|
|
5ceccbe744 | ||
|
|
202a99c4eb | ||
|
|
a878333ecd | ||
|
|
aeabef2ae6 | ||
|
|
9281d4a7e6 | ||
|
|
d3aa5f9504 | ||
|
|
ede498bb6f | ||
|
|
38ceab1547 | ||
|
|
1ce00698ff | ||
|
|
ce46242d2c | ||
|
|
bb3db1248b | ||
|
|
08f1fdcf14 | ||
|
|
76f89cdb64 | ||
|
|
0311475c60 | ||
|
|
f2f19e9503 | ||
|
|
c4034198f8 | ||
|
|
7b847a8d61 | ||
|
|
1c3c4d86b3 | ||
|
|
4ecb683985 | ||
|
|
17c867e883 | ||
|
|
863ddf25bf | ||
|
|
a4d4872884 |
No files matched your search
+3
-4
@@ -4,6 +4,9 @@ config.rpath crlf=input
|
||||
configure.host crlf=input
|
||||
mkinstalldirs crlf=input
|
||||
*.sh crlf=input
|
||||
*.sources crlf=input
|
||||
.gitattributes crlf=input
|
||||
*akefile* crlf=input
|
||||
|
||||
# ensure native line endings on checkout
|
||||
*.c crlf
|
||||
@@ -11,10 +14,6 @@ mkinstalldirs crlf=input
|
||||
*.cs crlf
|
||||
*.il crlf
|
||||
|
||||
.gitattributes crlf
|
||||
*akefile* crlf
|
||||
*.sources crlf
|
||||
|
||||
# don't do anything to line-endings. Let CRLFs go into the repo, and CRLF on checkout
|
||||
*.bat -crlf
|
||||
*.sln -crlf
|
||||
|
||||
@@ -55,3 +55,6 @@
|
||||
[submodule "external/corert"]
|
||||
path = external/corert
|
||||
url = git://github.com/mono/corert.git
|
||||
[submodule "external/xunit-binaries"]
|
||||
path = external/xunit-binaries
|
||||
url = git://github.com/mono/xunit-binaries.git
|
||||
+2
-6
@@ -49,9 +49,6 @@ dist-hook:
|
||||
# Disable this for now because it is very slow and causes wrench to timeout:
|
||||
# test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
|
||||
|
||||
mac-sdk-package:
|
||||
external/bockbuild/bb MacSDK --package
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
noinst_DATA = mono-uninstalled.pc
|
||||
DISTCLEANFILES= mono-uninstalled.pc
|
||||
@@ -59,15 +56,14 @@ DISTCLEANFILES= mono-uninstalled.pc
|
||||
# building with monolite
|
||||
mcslib = $(mcs_topdir)/class/lib
|
||||
monolite = $(mcslib)/monolite
|
||||
mono_corlib_version = $(shell sed -n "s/\#define MONO_CORLIB_VERSION //p" $(srcdir)/mono/metadata/appdomain.c)
|
||||
monolite_url = http://download.mono-project.com/monolite/monolite-$(mono_corlib_version)-latest.tar.gz
|
||||
monolite_url = https://download.mono-project.com/monolite/monolite-$(MONO_CORLIB_VERSION)-latest.tar.gz
|
||||
.PHONY: get-monolite-latest
|
||||
get-monolite-latest:
|
||||
-rm -fr $(mcslib)/monolite-*
|
||||
-mkdir -p $(mcslib)
|
||||
test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
|
||||
test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
|
||||
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
|
||||
cd $(mcslib) && { (wget -O- $(monolite_url) || curl -L $(monolite_url)) | gzip -d | tar xf - ; }
|
||||
cd $(mcslib) && mv -f monolite-* monolite
|
||||
|
||||
if BITCODE
|
||||
|
||||
@@ -29,6 +29,7 @@ The Mono project is part of the [.NET Foundation](http://www.dotnetfoundation.or
|
||||
| Windows | amd64 | [![windows-amd64][15]][16] |
|
||||
| Windows | i386 | [![windows-amd64][17]][18] |
|
||||
| CentOS | s390x (cs) | [![centos-s390x][19]][20] |
|
||||
| Debian 8 | ppc64el (cs) | [![debian-8-ppc64el][21]][22]|
|
||||
|
||||
_(cs) = community supported architecture_
|
||||
|
||||
@@ -50,8 +51,10 @@ _(cs) = community supported architecture_
|
||||
[16]: https://jenkins.mono-project.com/job/z/label=w64/
|
||||
[17]: https://jenkins.mono-project.com/job/z/label=w32/badge/icon
|
||||
[18]: https://jenkins.mono-project.com/job/z/label=w32/
|
||||
[19]: https://jenkins.mono-project.com/job/z/label=centos-s390x/badge/icon
|
||||
[20]: https://jenkins.mono-project.com/job/z/label=centos-s390x
|
||||
[19]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=centos-s390x/badge/icon
|
||||
[20]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=centos-s390x
|
||||
[21]: https://jenkins.mono-project.com/job/test-mono-mainline-community-chroot/label=debian-8-ppc64el/badge/icon
|
||||
[22]: https://jenkins.mono-project.com/job/test-mono-mainline-community-chroot/label=debian-8-ppc64el
|
||||
|
||||
Compilation and Installation
|
||||
============================
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
{
|
||||
"name": "ms-test-suite",
|
||||
"url": "[email protected]:xamarin/ms-test-suite.git",
|
||||
"rev": "55b6637eb1de61c743323ec82db1e0cadfee5b32",
|
||||
"rev": "73c155f76b55839f26ba707d6d40091060e4f5d8",
|
||||
"remote-branch": "origin/master",
|
||||
"branch": "master",
|
||||
"directory": "ms-test-suite"
|
||||
|
||||
+79
-32
@@ -1,8 +1,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
#AC_PREREQ([2.62])
|
||||
|
||||
# when bumping version number below, keep it in sync with man/mono.1 too
|
||||
AC_INIT(mono, [4.9.0],
|
||||
AC_INIT(mono, [5.1.0],
|
||||
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
|
||||
|
||||
AC_CONFIG_SRCDIR([README.md])
|
||||
@@ -29,6 +28,24 @@ AC_PROG_LN_S
|
||||
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
|
||||
MONO_VERSION_MAJOR=`echo $VERSION | cut -d . -f 1`
|
||||
MONO_VERSION_MINOR=`echo $VERSION | cut -d . -f 2`
|
||||
MONO_VERSION_BUILD=`echo $VERSION | cut -d . -f 3`
|
||||
|
||||
# This is the version number of the corlib-runtime interface. When
|
||||
# making changes to this interface (by changing the layout
|
||||
# of classes the runtime knows about, changing icall signature or
|
||||
# semantics etc), increment this variable.
|
||||
#
|
||||
# This can be reset to 0 when Mono's version number is bumped
|
||||
# since it's part of the corlib version (the prefix '1' in the full
|
||||
# version number is to ensure the number isn't treated as octal in C)
|
||||
MONO_CORLIB_COUNTER=1
|
||||
MONO_CORLIB_VERSION=`printf "1%02d%02d%02d%03d" $MONO_VERSION_MAJOR $MONO_VERSION_MINOR $MONO_VERSION_BUILD $MONO_CORLIB_COUNTER`
|
||||
|
||||
AC_DEFINE_UNQUOTED(MONO_CORLIB_VERSION,$MONO_CORLIB_VERSION,[Version of the corlib-runtime interface])
|
||||
AC_SUBST(MONO_CORLIB_VERSION)
|
||||
|
||||
case $host_os in
|
||||
*cygwin* )
|
||||
echo "Run configure using ./configure --host=i686-pc-mingw32"
|
||||
@@ -216,9 +233,6 @@ case "$host" in
|
||||
CFLAGS="$CFLAGS -DPAGE_SIZE=4096 -DS_IWRITE=S_IWUSR"
|
||||
CXXFLAGS="$CXXFLAGS -DPAGE_SIZE=4096 -DS_IWRITE=S_IWUSR"
|
||||
|
||||
# The configure check can't detect this
|
||||
AC_DEFINE(HAVE_LARGE_FILE_SUPPORT, 1, [Have large file support])
|
||||
|
||||
# to bypass the underscore linker check, can't work when cross-compiling
|
||||
mono_cv_uscore=yes
|
||||
mono_cv_clang=no
|
||||
@@ -334,9 +348,13 @@ case "$host" in
|
||||
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_THREAD_SAFE"
|
||||
libmono_cflags="-D_REENTRANT -D_THREAD_SAFE"
|
||||
libdl=
|
||||
LIBS="$LIBS -lnetwork"
|
||||
LIBS="$LIBS -lnetwork -ltextencoding"
|
||||
need_link_unlink=yes
|
||||
AC_DEFINE(PTHREAD_POINTER_ID)
|
||||
dnl Haiku does not support static TLS with __thread
|
||||
with_tls=pthread
|
||||
dnl Boehm is too much work to backport Haiku support for
|
||||
support_boehm=no
|
||||
libgc_threads=pthreads
|
||||
use_sigposix=yes
|
||||
;;
|
||||
@@ -858,9 +876,9 @@ elif test x$with_runtime_preset = xfullaot; then
|
||||
mono_feature_disable_reflection_emit='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
AOT_BUILD_FLAGS="-O=gsharedvt --aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_BUILD_FLAGS="--runtime=mobile -O=gsharedvt --aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
|
||||
AOT_RUN_FLAGS="--full-aot"
|
||||
AOT_RUN_FLAGS="--runtime=mobile --full-aot"
|
||||
elif test x$with_runtime_preset = xbitcode; then
|
||||
DISABLE_MCS_DOCS_default=yes
|
||||
with_testing_aot_full_default=yes
|
||||
@@ -875,19 +893,15 @@ elif test x$with_runtime_preset = xbitcode; then
|
||||
mono_feature_disable_reflection_emit='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
AOT_BUILD_FLAGS="--aot=llvmonly,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--llvmonly"
|
||||
AOT_BUILD_FLAGS="--runtime=mobile --aot=llvmonly,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--runtime=mobile --llvmonly"
|
||||
elif test x$with_runtime_preset = xhybridaot; then
|
||||
DISABLE_MCS_DOCS_default=yes
|
||||
with_testing_aot_hybrid_default=yes
|
||||
TEST_PROFILE=testing_aot_hybrid
|
||||
|
||||
mono_feature_disable_com='yes'
|
||||
mono_feature_disable_remoting='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
AOT_BUILD_FLAGS="--aot=hybrid,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--hybrid-aot"
|
||||
AOT_BUILD_FLAGS="--runtime=mobile --aot=hybrid,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--runtime=mobile --hybrid-aot"
|
||||
elif test x$with_runtime_preset = xaot; then
|
||||
with_profile4_x_default=yes
|
||||
|
||||
@@ -906,8 +920,8 @@ elif test x$with_runtime_preset = xwinaot; then
|
||||
mono_feature_disable_reflection_emit='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
AOT_BUILD_FLAGS="--aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--full-aot"
|
||||
AOT_BUILD_FLAGS="--runtime=mobile --aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--runtime=mobile --full-aot"
|
||||
elif test x$with_runtime_preset = xorbis; then
|
||||
DISABLE_MCS_DOCS_default=yes
|
||||
with_orbis_default=yes
|
||||
@@ -919,8 +933,8 @@ elif test x$with_runtime_preset = xorbis; then
|
||||
mono_feature_disable_reflection_emit='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
AOT_BUILD_FLAGS="--aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--full-aot"
|
||||
AOT_BUILD_FLAGS="--runtime=mobile --aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--runtime=mobile --full-aot"
|
||||
else
|
||||
with_profile4_x_default=yes
|
||||
fi
|
||||
@@ -1432,8 +1446,6 @@ if test x$host_win32 = xno; then
|
||||
|
||||
AC_CHECK_FUNCS(getgrgid_r)
|
||||
AC_CHECK_FUNCS(getgrnam_r)
|
||||
AC_CHECK_FUNCS(getpwnam_r)
|
||||
AC_CHECK_FUNCS(getpwuid_r)
|
||||
AC_CHECK_FUNCS(getresuid)
|
||||
AC_CHECK_FUNCS(setresuid)
|
||||
AC_CHECK_FUNCS(kqueue)
|
||||
@@ -1454,6 +1466,11 @@ if test x$host_win32 = xno; then
|
||||
AC_CHECK_FUNCS(sched_setaffinity)
|
||||
AC_CHECK_FUNCS(sched_getcpu)
|
||||
|
||||
if test x$platform_android != xyes; then
|
||||
AC_CHECK_FUNCS(getpwnam_r)
|
||||
AC_CHECK_FUNCS(getpwuid_r)
|
||||
fi
|
||||
|
||||
dnl ****************************************************************
|
||||
dnl *** Check for sched_setaffinity from glibc versions before ***
|
||||
dnl *** 2.3.4. The older versions of the function only take 2 ***
|
||||
@@ -1914,6 +1931,10 @@ if test x$host_win32 = xno; then
|
||||
# and libpthread does not exist
|
||||
#
|
||||
case "${host}" in
|
||||
*-*-*haiku*)
|
||||
dnl Haiku has pthread in libroot (libc equiv)
|
||||
AC_CHECK_LIB(pthread, main, LIBS="$LIBS")
|
||||
;;
|
||||
*-*-*freebsd*)
|
||||
AC_CHECK_LIB(pthread, main, LIBS="$LIBS -pthread")
|
||||
;;
|
||||
@@ -2323,6 +2344,10 @@ if test x$host_win32 = xno; then
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
|
||||
dnl **********************************
|
||||
dnl *** Checks for proclib ***
|
||||
dnl **********************************
|
||||
AC_CHECK_HEADER(sys/errno.h, [AC_DEFINE(HAVE_SYS_ERRNO_H, 1, Define to 1 if you have the <sys/errno.h> header file.)])
|
||||
dnl **********************************
|
||||
dnl *** Checks for MonoPosixHelper ***
|
||||
dnl **********************************
|
||||
@@ -3314,7 +3339,6 @@ if test "x$host" != "x$target"; then
|
||||
TARGET=ARM;
|
||||
arch_target=arm;
|
||||
AC_DEFINE(TARGET_ARM, 1, [...])
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
ACCESS_UNALIGNED="no"
|
||||
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
|
||||
# Can't use tls, since it depends on the runtime detection of tls offsets
|
||||
@@ -3327,6 +3351,11 @@ if test "x$host" != "x$target"; then
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
;;
|
||||
armv5-*-linux-androideabi*)
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
;;
|
||||
*-linux-androideabi*)
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
;;
|
||||
esac
|
||||
@@ -3346,23 +3375,33 @@ if test "x$host" != "x$target"; then
|
||||
TARGET=X86;
|
||||
arch_target=x86;
|
||||
AC_DEFINE(TARGET_X86, 1, [...])
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
# Can't use tls, since it depends on the runtime detection of tls offsets
|
||||
# in mono-compiler.h
|
||||
with_tls=pthread
|
||||
target_mach=no
|
||||
|
||||
case "$target" in
|
||||
*-linux-android*)
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
x86_64*-linux-*)
|
||||
TARGET=AMD64;
|
||||
arch_target=amd64;
|
||||
AC_DEFINE(TARGET_AMD64, 1, [...])
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
# Can't use tls, since it depends on the runtime detection of tls offsets
|
||||
# in mono-compiler.h
|
||||
with_tls=pthread
|
||||
target_mach=no
|
||||
|
||||
case "$target" in
|
||||
*-linux-android*)
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
x86_64-ps4-freebsd)
|
||||
TARGET=AMD64;
|
||||
@@ -3381,12 +3420,16 @@ if test "x$host" != "x$target"; then
|
||||
TARGET=ARM64;
|
||||
arch_target=arm64;
|
||||
AC_DEFINE(TARGET_ARM64, 1, [...])
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
# Can't use tls, since it depends on the runtime detection of tls offsets
|
||||
# in mono-compiler.h
|
||||
with_tls=pthread
|
||||
target_mach=no
|
||||
case "$target" in
|
||||
*-linux-android*)
|
||||
AC_DEFINE(TARGET_ANDROID, 1, [...])
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
aarch64-*)
|
||||
TARGET=ARM64
|
||||
@@ -3580,13 +3623,13 @@ if test "x$have_deprecated" = "xyes"; then
|
||||
AC_DEFINE(HAVE_DEPRECATED, 1, [Support for the deprecated attribute])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(interpreter, [ --with-interpreter=yes|no Interpreter, default=no],[buildinterpreter=$with_interpreter],[buildinterpreter=no])
|
||||
if test "x$buildinterpreter" = "xyes"; then
|
||||
AC_DEFINE(ENABLE_INTERPRETER, 1, [Enable interpreter in the runtime.])
|
||||
AC_MSG_NOTICE([Enable interpreter in the runtime.])
|
||||
AC_ARG_ENABLE(interpreter, [ --enable-interpreter Enable Interpreter], enable_interpreter=$enableval, enable_interpreter=no)
|
||||
|
||||
if test "x$enable_interpreter" = "xyes"; then
|
||||
AC_DEFINE(ENABLE_INTERPRETER, 1, [Enable Interpreter])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([ENABLE_INTERPRETER], [test x$buildinterpreter != xno])
|
||||
AM_CONDITIONAL(ENABLE_INTERPRETER, [test x$enable_interpreter = xyes])
|
||||
|
||||
|
||||
dnl
|
||||
@@ -4106,6 +4149,8 @@ if test "x$enable_btls" = "xyes"; then
|
||||
BTLS_CMAKE_ARGS="$BTLS_CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=$BTLS_ROOT/util/android-cmake/android.toolchain.cmake"
|
||||
if test "x$with_btls_android_ndk" != "x"; then
|
||||
BTLS_CMAKE_ARGS="$BTLS_CMAKE_ARGS -DANDROID_NDK=\"$with_btls_android_ndk\""
|
||||
else
|
||||
AC_MSG_ERROR([Need to pass the --with-btls-android-ndk argument when building with BTLS support on Android.])
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -4394,6 +4439,7 @@ mono/tests/Makefile
|
||||
mono/tests/tests-config
|
||||
mono/tests/assemblyresolve/Makefile
|
||||
mono/tests/gc-descriptors/Makefile
|
||||
mono/tests/testing_gac/Makefile
|
||||
mono/unit-tests/Makefile
|
||||
mono/benchmark/Makefile
|
||||
mono/mini/Makefile
|
||||
@@ -4504,6 +4550,7 @@ fi
|
||||
}')]
|
||||
|
||||
echo "MONO_VERSION = $myver" >> $mcs_topdir/build/config.make
|
||||
echo "MONO_CORLIB_VERSION = $MONO_CORLIB_VERSION" >> $mcs_topdir/build/config.make
|
||||
|
||||
if test x$host_darwin = xyes; then
|
||||
echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make
|
||||
@@ -4582,7 +4629,7 @@ echo "
|
||||
BigArrays: $enable_big_arrays
|
||||
DTrace: $enable_dtrace
|
||||
LLVM Back End: $enable_llvm (dynamically loaded: $enable_loadedllvm)
|
||||
Interpreter: $buildinterpreter
|
||||
Interpreter: $enable_interpreter
|
||||
|
||||
Libraries:
|
||||
.NET 4.x: $with_profile4_x
|
||||
|
||||
@@ -18,8 +18,14 @@
|
||||
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
|
||||
<dllmap dll="libX11" target="@X11@" os="!windows" />
|
||||
<dllmap dll="libgdk-x11-2.0" target="@GDKX11@" os="!windows"/>
|
||||
<dllmap dll="libgdk_pixbuf-2.0" target="libgdk_pixbuf-2.0.so.0" os="!windows"/>
|
||||
<dllmap dll="libgtk-x11-2.0" target="@GTKX11@" os="!windows"/>
|
||||
<dllmap dll="libglib-2.0" target="libglib-2.0.so.0" os="!windows"/>
|
||||
<dllmap dll="libgobject-2.0" target="libgobject-2.0.so.0" os="!windows"/>
|
||||
<dllmap dll="libgnomeui-2" target="libgnomeui-2.so.0" os="!windows"/>
|
||||
<dllmap dll="librsvg-2" target="librsvg-2.so.2" os="!windows"/>
|
||||
<dllmap dll="libXinerama" target="@XINERAMA@" os="!windows" />
|
||||
<dllmap dll="libasound" target="libasound.so.2" os="!windows" />
|
||||
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
|
||||
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
|
||||
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
|
||||
|
||||
+27
-4
@@ -9,16 +9,38 @@ def print_frames(thread, num_frames, current_thread):
|
||||
|
||||
for frame in thread.frames[:+num_frames]:
|
||||
pc = str(frame.addr)
|
||||
fmt = ' %c %s'
|
||||
var = frame
|
||||
if pc[0] == '0':
|
||||
function_name = frame.GetFunctionName()
|
||||
if function_name == "ves_exec_method_with_context":
|
||||
try:
|
||||
s = 'frame->runtime_method->method'
|
||||
klassname = frame.EvaluateExpression('(char*) ' + s + '->klass->name').summary[1:-1]
|
||||
methodname = frame.EvaluateExpression('(char*) ' + s + '->name').summary[1:-1]
|
||||
|
||||
ipoffset = frame.EvaluateExpression('ip').GetValueAsUnsigned()
|
||||
insn = ''
|
||||
if ipoffset != 0:
|
||||
ipoffset -= frame.EvaluateExpression('rtm->code').GetValueAsUnsigned()
|
||||
insn = "\"" + frame.EvaluateExpression('mono_interp_opname [*ip]').summary[1:-1] + "\""
|
||||
var = '%s::%s @ %d %s || %s' % (klassname, methodname, ipoffset, insn, frame)
|
||||
except Exception as e:
|
||||
print "DBG: execfail:" + str(e)
|
||||
elif function_name == "mono_interp_transform_method":
|
||||
try:
|
||||
s = 'runtime_method->method'
|
||||
klassname = frame.EvaluateExpression('(char*) ' + s + '->klass->name').summary[1:-1]
|
||||
methodname = frame.EvaluateExpression('(char*) ' + s + '->name').summary[1:-1]
|
||||
var = 'transforming %s::%s || %s' % (klassname, methodname, frame)
|
||||
except Exception as e:
|
||||
print "DBG: transformfail:" + str(e)
|
||||
elif pc[0] == '0':
|
||||
try:
|
||||
framestr = frame.EvaluateExpression('(char*)mono_pmip((void*)%s)' % pc).summary[1:-1]
|
||||
var = 'frame #%i: %s%s' % (frame.idx, pc, framestr)
|
||||
except:
|
||||
pass
|
||||
|
||||
print fmt % ('*' if current_thread and frame.idx == selected_frame.idx else ' ', var)
|
||||
print ' %c %s' % ('*' if current_thread and frame.idx == selected_frame.idx else ' ', var)
|
||||
|
||||
def monobt(debugger, command, result, dict):
|
||||
opts = {'all_bt': False, 'num_frames': None}
|
||||
@@ -53,4 +75,5 @@ def __lldb_init_module (debugger, dict):
|
||||
# This initializer is being run from LLDB in the embedded command interpreter
|
||||
# Add any commands contained in this module to LLDB
|
||||
debugger.HandleCommand('command script add -f monobt.monobt monobt')
|
||||
print '"monobt" command installed'
|
||||
debugger.HandleCommand('command alias mbt monobt')
|
||||
print '"monobt" command installed'
|
||||
@@ -86,7 +86,7 @@ LOCK RULES
|
||||
Simple locks:
|
||||
Can be acquired at any point regardless of which locks are taken or not.
|
||||
No other locks can be acquired or released while holding a simple lock.
|
||||
Reentrancy is not recomended. (warning)
|
||||
Reentrancy is not recommended. (warning)
|
||||
Simple locks are leaf locks on the lock lattice.
|
||||
|
||||
Complex locks:
|
||||
@@ -129,7 +129,7 @@ ERROR: tried to acquire lock DomainLock at mono_domain_code_reserve_align while
|
||||
WARNING: tried to acquire lock ImageDataLock at mono_image_init_name_cache while holding ImageDataLock at mono_class_from_name
|
||||
WARNING: tried to acquire lock ImageDataLock at mono_image_init_name_cache while holding ImageDataLock at mono_image_add_to_name_cache
|
||||
Both of those happen when filling up the name_cache, as it needs to alloc image memory.
|
||||
This one is fixable by spliting mono_image_init_name_cache into a locked and an unlocked variants and calling them appropriatedly.
|
||||
This one is fixable by splitting mono_image_init_name_cache into a locked and an unlocked variants and calling them appropriately.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
check-coverage crlf=input
|
||||
check-exports crlf=input
|
||||
produce-lists crlf=input
|
||||
+1
-1
@@ -87,7 +87,7 @@ mono-file-formats.zip: mono-file-formats.tree
|
||||
mono-file-formats.tree: $(srcdir)/docs.make $(srcdir)/Makefile.am $(srcdir)/deploy/.stamp
|
||||
$(TOOL_MAKE) $@
|
||||
|
||||
deploy/.stamp: convert.exe Makefile.am
|
||||
deploy/.stamp: convert.exe Makefile.am exdoc
|
||||
$(mkdir_p) html
|
||||
runtimedir=`cd ../runtime && pwd`; export runtimedir; \
|
||||
MONO_PATH=$(CLASS) perl $(srcdir)/exdoc -h $(srcdir) -t . $(srcdir)/../mono/*/*.c
|
||||
|
||||
@@ -26,7 +26,7 @@ some combination of the two.
|
||||
|
||||
To be clearer, and give an idea of what the algorithm can and
|
||||
cannot do without describing it in detail... keep in mind that
|
||||
only "redunant" checks cannot be removed. By "redundant", I
|
||||
only "redundant" checks cannot be removed. By "redundant", I
|
||||
mean "already explicitly checked" in the method code.
|
||||
|
||||
Unfortunately, analyzing complex expressions is not so easy
|
||||
@@ -136,7 +136,7 @@ some combination of the two.
|
||||
In the first case, the BB has exactly two exit BBs, and their
|
||||
execution conditions are easy to get from the condition of the
|
||||
branch (see the "get_relation_from_branch_instruction"
|
||||
function, and expecially the end of "analyze_block" in
|
||||
function, and especially the end of "analyze_block" in
|
||||
abcremoval.c.
|
||||
|
||||
If there is a switch, the jump condition of every exit BB is
|
||||
@@ -303,7 +303,7 @@ some combination of the two.
|
||||
each BB tried to examine all possible conditions between all
|
||||
variables, filling a sort of "evaluation matrix". The problem
|
||||
was that the complexity of this evaluation was quadratic (or
|
||||
worse) on the number of variables, and that many wariables
|
||||
worse) on the number of variables, and that many variables
|
||||
were examined even if they were not involved in any array
|
||||
access.
|
||||
|
||||
@@ -332,7 +332,7 @@ some combination of the two.
|
||||
|
||||
[1b] Prepare the evaluation graph (empty)
|
||||
|
||||
[1b] Summarize each varible definition, and put
|
||||
[1b] Summarize each variable definition, and put
|
||||
the resulting relations in the evaluation
|
||||
graph
|
||||
|
||||
|
||||
+6
-4
@@ -19,7 +19,7 @@ ENUM_VALUES_PER_LINE = 1
|
||||
EXCLUDE_SYMLINKS = NO
|
||||
EXPAND_ONLY_PREDEF = NO
|
||||
EXTENSION_MAPPING = c=C h=C
|
||||
EXTRACT_ALL = YES
|
||||
EXTRACT_ALL = NO
|
||||
EXTRACT_STATIC = YES
|
||||
EXT_LINKS_IN_WINDOW = NO
|
||||
FILE_PATTERNS = *.c *.h
|
||||
@@ -27,9 +27,9 @@ FULL_PATH_NAMES = YES
|
||||
GENERATE_BUGLIST = YES
|
||||
GENERATE_DEPRECATEDLIST = YES
|
||||
GENERATE_HTML = YES
|
||||
GENERATE_PERLMOD = YES
|
||||
GENERATE_LEGEND = YES
|
||||
GENERATE_TESTLIST = YES
|
||||
GENERATE_PERLMOD = NO
|
||||
GENERATE_TESTLIST = NO
|
||||
GENERATE_TODOLIST = YES
|
||||
GENERATE_TREEVIEW = YES
|
||||
GRAPHICAL_HIERARCHY = YES
|
||||
@@ -60,6 +60,7 @@ MULTILINE_CPP_IS_BRIEF = NO
|
||||
OPTIMIZE_OUTPUT_FOR_C = YES
|
||||
OUTPUT_DIRECTORY = doxygen-output
|
||||
OUTPUT_LANGUAGE = English
|
||||
PREDEFINED = "HAVE_SGEN_GC="
|
||||
PROJECT_NAME = "Mono"
|
||||
QT_AUTOBRIEF = NO
|
||||
QUIET = NO
|
||||
@@ -77,6 +78,7 @@ SHOW_USED_FILES = YES
|
||||
SKIP_FUNCTION_MACROS = YES
|
||||
SORT_BRIEF_DOCS = YES
|
||||
SORT_GROUP_NAMES = YES
|
||||
SORT_MEMBER_DOCS = YES
|
||||
SOURCE_BROWSER = YES
|
||||
SOURCE_TOOLTIPS = YES
|
||||
STRIP_CODE_COMMENTS = NO
|
||||
@@ -89,4 +91,4 @@ VERBATIM_HEADERS = YES
|
||||
WARNINGS = YES
|
||||
WARN_IF_DOC_ERROR = YES
|
||||
WARN_IF_UNDOCUMENTED = YES
|
||||
WARN_NO_PARAMDOC = NO
|
||||
WARN_NO_PARAMDOC = YES
|
||||
+436
-259
@@ -1,91 +1,295 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
if ($ARGV[0] eq "-h"){
|
||||
$sourcedir = $ARGV[1];
|
||||
$dir = $sourcedir;
|
||||
$html = 1;
|
||||
shift @ARGV;
|
||||
shift @ARGV;
|
||||
}
|
||||
open (FILE, "$dir/api-style.css" || die "Did not find $dir/api-style.css");
|
||||
while (<FILE>){
|
||||
$css = $css . $_;
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
use Getopt::Long;
|
||||
use Pod::Usage;
|
||||
|
||||
# Options
|
||||
my $HELP = 0;
|
||||
my $SOURCE_DIR = '';
|
||||
my $TARGET_DIR = '';
|
||||
my $WARNINGS = 0;
|
||||
|
||||
GetOptions(
|
||||
"help" => \$HELP,
|
||||
"html|h=s" => \$SOURCE_DIR,
|
||||
"target|t=s" => \$TARGET_DIR,
|
||||
"warnings|W" => \$WARNINGS,
|
||||
) or pod2usage(1);
|
||||
|
||||
pod2usage(0) if $HELP;
|
||||
|
||||
exdoc();
|
||||
|
||||
#
|
||||
# Main entry point.
|
||||
#
|
||||
sub exdoc {
|
||||
my %templates = ();
|
||||
my %docs = ();
|
||||
my $stylesheet = load_stylesheet($SOURCE_DIR);
|
||||
load_templates($SOURCE_DIR, \%templates);
|
||||
process_source_files(\%docs);
|
||||
merge(\%docs, \%templates, \$stylesheet);
|
||||
}
|
||||
|
||||
if ($ARGV[0] eq "-t"){
|
||||
$dir = $ARGV[1];
|
||||
shift @ARGV;
|
||||
#
|
||||
# Load CSS stylesheet.
|
||||
#
|
||||
sub load_stylesheet {
|
||||
my ($dir_path) = @_;
|
||||
my $file_path = "$dir_path/api-style.css";
|
||||
open (my $file, '<', $file_path) or die "Could not open $file_path";
|
||||
local $/;
|
||||
my $contents = <$file>;
|
||||
close $file;
|
||||
return $contents;
|
||||
}
|
||||
|
||||
if ($html){
|
||||
opendir (D, "$sourcedir/sources/") || die "Can not open $dir";
|
||||
while ($n = readdir (D)){
|
||||
if ($n =~ /mono-api-.*\.html$/){
|
||||
open (IN, "$sourcedir/sources/$n") || die "Can not open $n";
|
||||
$files[$filecount] = $n;
|
||||
while (<IN>){
|
||||
@files_content[$filecount] .= $_;
|
||||
if (/name="api:(.*?)"/){
|
||||
$_ =~ s/.*name="api:(\w+?)".*/\1/;
|
||||
$apis[$filecount] .= "$_";
|
||||
}
|
||||
}
|
||||
$filecount++;
|
||||
close IN;
|
||||
}
|
||||
#
|
||||
# Load HTML templates.
|
||||
#
|
||||
sub load_templates {
|
||||
my ($dir_path, $templates) = @_;
|
||||
opendir (my $dir, "$dir_path/sources/") or die "Could not open $dir_path";
|
||||
while (my $file_name = readdir ($dir)) {
|
||||
next if $file_name !~ /mono-api-.*\.html$/;
|
||||
open (my $file, "$dir_path/sources/$file_name") or die "Could not open $file_name";
|
||||
my $contents = '';
|
||||
my @api = ();
|
||||
while (<$file>) {
|
||||
$contents .= $_;
|
||||
if (/name="api:(.*?)"/) {
|
||||
s/.*name="api:(\w+?)".*/$1/;
|
||||
push @api, $_;
|
||||
}
|
||||
}
|
||||
close $file;
|
||||
$templates->{$file_name}->{contents} = $contents;
|
||||
$templates->{$file_name}->{api} = \@api;
|
||||
}
|
||||
closedir $dir;
|
||||
}
|
||||
|
||||
#
|
||||
# Extract documentation from all source files.
|
||||
#
|
||||
sub process_source_files {
|
||||
my ($docs) = @_;
|
||||
for my $file_path (@ARGV) {
|
||||
process_source_file($file_path, $docs);
|
||||
}
|
||||
}
|
||||
|
||||
while (<ARGV>){
|
||||
if (/\/\*\* *\n/){
|
||||
&process_doc;
|
||||
} else {
|
||||
#print "IGNORING: $_";
|
||||
}
|
||||
#
|
||||
# Extract documentation from a single source file.
|
||||
#
|
||||
sub process_source_file {
|
||||
my ($file_path, $docs) = @_;
|
||||
open (my $file, '<', $file_path) or die "Could not open $file_path";
|
||||
while (<$file>) {
|
||||
next if (!/\/\*\* *\n/);
|
||||
process_function($file, $file_path, $docs);
|
||||
}
|
||||
close $file;
|
||||
}
|
||||
|
||||
if ($html){
|
||||
for ($f = 0; $f < $filecount; $f++){
|
||||
$name = $files[$f];
|
||||
open (OUT, "> $dir/html/$name") || die "Can not create $dir/html/$name";
|
||||
print "Merging: $name\n";
|
||||
print OUT<<EOF;
|
||||
#
|
||||
# Extract documentation from a single function.
|
||||
#
|
||||
sub process_function {
|
||||
|
||||
my ($file, $file_path, $docs) = @_;
|
||||
|
||||
my $PARAMETER_SECTION = 0;
|
||||
my $BODY_SECTION = 1;
|
||||
my $RETURN_SECTION = 2;
|
||||
my $section = $PARAMETER_SECTION;
|
||||
|
||||
my $name = do {
|
||||
$_ = <$file>;
|
||||
chomp;
|
||||
s/^ \* //;
|
||||
s/:$//;
|
||||
$_
|
||||
};
|
||||
|
||||
# Ignore irrelevant functions, and those with the wrong doc format.
|
||||
return if $name !~ /^mono_\w+$/;
|
||||
|
||||
my $deprecated;
|
||||
my @parameters = ();
|
||||
my $body = '';
|
||||
my $returns = '';
|
||||
my $prototype = '';
|
||||
|
||||
while (<$file>) {
|
||||
|
||||
# We've reached the last line in the documentation block.
|
||||
if (/^ \*\*?\//) {
|
||||
|
||||
# Grab function prototype.
|
||||
while (<$file>) {
|
||||
$prototype .= $_;
|
||||
last if /\{/;
|
||||
}
|
||||
|
||||
# Clean up prototype.
|
||||
$prototype = do {
|
||||
$_ = $prototype;
|
||||
# Strip braces and trailing whitespace.
|
||||
s/{//;
|
||||
s/ +$//;
|
||||
# Turn "Type * xxx" into "Type* xxx"
|
||||
s/^(\w+)\W+\*/$1*/;
|
||||
$_;
|
||||
};
|
||||
|
||||
# Process formatting within sections.
|
||||
for my $parameter (@parameters) {
|
||||
process_formatting(\$parameter->{description}, $file_path, $.);
|
||||
}
|
||||
process_formatting(\$returns, $file_path, $.);
|
||||
process_formatting(\$body, $file_path, $.);
|
||||
if (defined($deprecated)) {
|
||||
process_formatting(\$deprecated, $file_path, $.);
|
||||
}
|
||||
$body =~ s/\n/ /g;
|
||||
|
||||
if (exists($docs->{body}->{$name})) {
|
||||
my $origin = $docs->{origin}->{$name};
|
||||
if ($WARNINGS) {
|
||||
warn
|
||||
"$file_path:$.: Redundant documentation for $name\n",
|
||||
"$origin->{file}:$origin->{line}: Previously defined here\n";
|
||||
}
|
||||
}
|
||||
$docs->{origin}->{$name} = { file => $file_path, line => $. };
|
||||
$docs->{body}->{$name} = $body;
|
||||
$docs->{parameters}->{$name} = \@parameters;
|
||||
$docs->{deprecated}->{$name} = $deprecated if defined $deprecated;
|
||||
$docs->{return}->{$name} = $returns;
|
||||
$docs->{prototype}->{$name} = $prototype;
|
||||
last;
|
||||
|
||||
}
|
||||
|
||||
# Strip newlines and asterisk prefix.
|
||||
chomp;
|
||||
s/^ +\*//;
|
||||
|
||||
# Replace blank lines with paragraph breaks.
|
||||
$_ = '<p>' if /^\s*$/;
|
||||
|
||||
if ($section == $PARAMETER_SECTION) {
|
||||
if (/\s*\\param +(\w+)(.*)/) {
|
||||
# print "$file_path:$.: warning: Got parameter $1\n";
|
||||
push @parameters, { name => $1, description => $2 };
|
||||
} elsif (/\s*\\deprecated(.*)/) {
|
||||
# print "$file_path:$.: warning: Got deprecated annotation\n";
|
||||
$deprecated = $1;
|
||||
} elsif (/\s*(\w+):(.*)/) {
|
||||
if ($1 eq 'deprecated') {
|
||||
warn "$file_path:$.: Old-style monodoc notation 'deprecated:' used\n"
|
||||
if $WARNINGS;
|
||||
$deprecated = $2;
|
||||
} else {
|
||||
warn "$file_path:$.: Old-style monodoc notation 'param:' used\n"
|
||||
if $WARNINGS;
|
||||
push @parameters, { name => $1, description => $2 };
|
||||
}
|
||||
} else {
|
||||
# $body = "\t$_\n";
|
||||
$section = $BODY_SECTION;
|
||||
redo;
|
||||
}
|
||||
} elsif ($section == $BODY_SECTION) {
|
||||
if (s/(Returns?:\s*|\\returns?\s*)//) {
|
||||
$returns = "\t$_\n";
|
||||
$section = $RETURN_SECTION;
|
||||
} else {
|
||||
$body .= "\n\t$_";
|
||||
}
|
||||
} elsif ($section == $RETURN_SECTION) {
|
||||
$returns .= "\n\t$_";
|
||||
} else {
|
||||
die "Invalid section $section\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Substitute formatting within documentation text.
|
||||
#
|
||||
sub process_formatting {
|
||||
my ($content, $file_path, $current_line) = @_;
|
||||
$_ = $$content;
|
||||
|
||||
# Constants
|
||||
s{NULL}{<code>NULL</code>}g;
|
||||
s{TRUE}{<code>TRUE</code>}g;
|
||||
s{FALSE}{<code>FALSE</code>}g;
|
||||
|
||||
# Parameters
|
||||
warn "$file_path:$current_line: Old-style monodoc notation '\@param' used\n"
|
||||
if s{@(\w+)}{<i>$1</i>}g && $WARNINGS;
|
||||
s{\\p +(\w+)}{<i>$1</i>}g;
|
||||
|
||||
# Code
|
||||
warn "$file_path:$current_line: Old-style monodoc notation '#code' used\n"
|
||||
if s{#(\w+)}{<code>$1</code>}g && $WARNINGS;
|
||||
warn "$file_path:$current_line: Old-style monodoc notation '`code`' used\n"
|
||||
if s{\`((?!api:)[:.\w\*]+)\`}{<code>$1</code>}g && $WARNINGS;
|
||||
s{\\c +(\S+(?<![.,:;]))}{<code>$1</code>}g;
|
||||
|
||||
$$content = $_;
|
||||
}
|
||||
|
||||
#
|
||||
# Merge templates with stylesheet and documentation extracted from sources.
|
||||
#
|
||||
sub merge {
|
||||
my ($docs, $templates, $stylesheet) = @_;
|
||||
my $last = '';
|
||||
for my $name (keys %$templates) {
|
||||
open (my $output_file, '>', "$TARGET_DIR/html/$name")
|
||||
or die "Could not create $TARGET_DIR/html/$name";
|
||||
print "Merging: $name\n";
|
||||
print $output_file <<EOF;
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>$name</title>
|
||||
<style type="text/css">
|
||||
$css
|
||||
$stylesheet
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mapi-docs">
|
||||
EOF
|
||||
@a = split (/\n/, $files_content[$f]);
|
||||
$strikeextra = "";
|
||||
$api_shown = 0;
|
||||
for ($ai = 0; $ai < $#a; $ai++){
|
||||
$line = $a[$ai];
|
||||
|
||||
($api,$caption) = $line =~ /<h4><a name=\"api:(\w+)\">(\w+)<\/a><\/h4>/;
|
||||
if ($api ne ""){
|
||||
if ($api_shown == 1){
|
||||
print OUT "</div> <!-- class=mapi -->\n\n";
|
||||
if ($deprecated{$api}){
|
||||
$strike = "mapi-strike";
|
||||
$strikeextra = "</div><br><div class='mapi-deprecated'><b>Deprecated:</b> " . $deprecated{$api};
|
||||
} else {
|
||||
$strike = "";
|
||||
$strikeextra = "";
|
||||
}
|
||||
}
|
||||
$api_shown = 1;
|
||||
$proto = $prototype{$api};
|
||||
if ($proto eq ""){
|
||||
$proto = "$api";
|
||||
}
|
||||
my @a = split (/\n/, $templates->{$name}->{contents});
|
||||
my $strike = '';
|
||||
my $strikeextra = '';
|
||||
my $api_shown = 0;
|
||||
for (my $ai = 0; $ai < $#a; $ai++) {
|
||||
my $line = $a[$ai];
|
||||
if (my ($api, $caption) = ($line =~ /<h4><a name=\"api:(\w+)\">(\w+)<\/a><\/h4>/)) {
|
||||
if ($api_shown == 1) {
|
||||
print $output_file "</div> <!-- class=mapi -->\n\n";
|
||||
if ($docs->{deprecated}->{$api}) {
|
||||
$strike = "mapi-strike";
|
||||
$strikeextra = "</div><br><div class='mapi-deprecated'><b>Deprecated:</b> " . $docs->{deprecated}->{$api};
|
||||
} else {
|
||||
$strike = "";
|
||||
$strikeextra = "";
|
||||
}
|
||||
}
|
||||
$api_shown = 1;
|
||||
my $proto = $docs->{prototype}->{$api} // $api;
|
||||
|
||||
print OUT<<EOF;
|
||||
print $output_file <<EOF;
|
||||
<a name="api:$api"></a>
|
||||
<div class="mapi">
|
||||
<div class="mapi-entry $strike"><code>$api$strikeextra</code></div>
|
||||
@@ -98,228 +302,201 @@ EOF
|
||||
<div class="mapi-prototype">$proto</div>
|
||||
<p>
|
||||
EOF
|
||||
$ppars = $arguments{$api};
|
||||
if ($ppars ne "" && (!($ppars =~ /^[ \t]+$/))){
|
||||
print OUT " <div class=\"mapi-section\">Parameters</div>\n";
|
||||
print OUT " <table class=\"mapi-parameters\"><tbody>".${arguments{$api}}."</tbody></table>";
|
||||
}
|
||||
|
||||
&opt_print ("Return value", $returns{$api}, 0);
|
||||
&opt_print ("Description", $bodies{$api}, 0);
|
||||
print OUT " </div><!--mapi-description-->\n </div><!--height container-->\n";
|
||||
} else {
|
||||
if ($line =~ /@API_IDX@/){
|
||||
$apis_toc = &create_toc ($apis[$f]);
|
||||
$line =~ s/\@API_IDX\@/$apis_toc/;
|
||||
}
|
||||
if ($line =~ /^<h4/){
|
||||
print OUT "</div>\n";
|
||||
$api_shown = 0;
|
||||
}
|
||||
if ($line =~ /`/){
|
||||
}
|
||||
print OUT "$line\n";
|
||||
}
|
||||
}
|
||||
print OUT<<EOF;
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
close OUT;
|
||||
system ("$ENV{runtimedir}/mono-wrapper convert.exe $dir/html/$name $dir/html/x-$name");
|
||||
if (exists ($docs->{parameters}->{$api})) {
|
||||
my $ppars = $docs->{parameters}->{$api};
|
||||
if (@$ppars) {
|
||||
print $output_file
|
||||
" <div class=\"mapi-section\">Parameters</div>\n",
|
||||
" <table class=\"mapi-parameters\"><tbody>",
|
||||
render_parameters($ppars),
|
||||
"</tbody></table>";
|
||||
}
|
||||
}
|
||||
|
||||
opt_print ($output_file, "Return value", $docs->{return}->{$api});
|
||||
opt_print ($output_file, "Description", $docs->{body}->{$api});
|
||||
print $output_file " </div><!--mapi-description-->\n </div><!--height container-->\n";
|
||||
} else {
|
||||
if ($line =~ /\@API_IDX\@/) {
|
||||
my $apis_toc = create_toc ($docs, $templates->{$name}->{api});
|
||||
$line =~ s/\@API_IDX\@/$apis_toc/;
|
||||
}
|
||||
if ($line =~ /^<h4/) {
|
||||
print $output_file "</div>\n";
|
||||
$api_shown = 0;
|
||||
}
|
||||
if ($line =~ /`/) {
|
||||
}
|
||||
print $output_file "$line\n";
|
||||
}
|
||||
}
|
||||
print $output_file
|
||||
" </div>",
|
||||
"</body>",
|
||||
"</html>";
|
||||
close $output_file;
|
||||
system ("$ENV{runtimedir}/mono-wrapper convert.exe $TARGET_DIR/html/$name $TARGET_DIR/html/x-$name");
|
||||
|
||||
# clean up the mess that AgilityPack does, it CDATAs our CSS
|
||||
open HACK, "$dir/html/x-$name" || die "Could not open $dir/html/x-$name";
|
||||
open HACKOUT, ">$dir/deploy/$name" || die "Could not open output";
|
||||
# Clean up the mess that AgilityPack makes (it CDATAs our CSS).
|
||||
open (my $hack_input, '<', "$TARGET_DIR/html/x-$name")
|
||||
or die "Could not open $TARGET_DIR/html/x-$name";
|
||||
open (my $hack_output, '>', "$TARGET_DIR/deploy/$name")
|
||||
or die "Could not open output";
|
||||
|
||||
$line = 0;
|
||||
$doprint = 0;
|
||||
while (<HACK>){
|
||||
print HACKOUT $last if ($doprint);
|
||||
$line++;
|
||||
s/^\/\/<!\[CDATA\[//;
|
||||
s/^\/\/\]\]>\/\///;
|
||||
my $line = 0;
|
||||
my $doprint = 0;
|
||||
while (<$hack_input>) {
|
||||
print $hack_output $last if ($doprint);
|
||||
$line++;
|
||||
s/^\/\/<!\[CDATA\[//;
|
||||
s/^\/\/\]\]>\/\///;
|
||||
|
||||
# Remove the junk <span> wrapper generated by AgilityPack
|
||||
if ($line==1){
|
||||
s/<span>//;
|
||||
}
|
||||
if (/<style type/){
|
||||
# Replace the CSS in the XHTML output with the original CSS
|
||||
print HACKOUT $_;
|
||||
print HACKOUT $css;
|
||||
while (<HACK>){
|
||||
last if (/<\/style>/);
|
||||
}
|
||||
}
|
||||
$last = $_;
|
||||
$doprint = 1;
|
||||
}
|
||||
if (!($last =~ /span/)){
|
||||
print HACKOUT $last;
|
||||
}
|
||||
|
||||
#system ("cp.exe $dir/html/$name $dir/deploy/$name");
|
||||
# Remove the junk <span> wrapper generated by AgilityPack.
|
||||
if ($line==1) {
|
||||
s/<span>//;
|
||||
}
|
||||
if (/<style type/) {
|
||||
# Replace the CSS in the XHTML output with the original CSS.
|
||||
print $hack_output $_;
|
||||
print $hack_output $$stylesheet;
|
||||
while (<$hack_input>) {
|
||||
last if (/<\/style>/);
|
||||
}
|
||||
}
|
||||
$last = $_;
|
||||
$doprint = 1;
|
||||
}
|
||||
if (!($last =~ /span/)) {
|
||||
print $hack_output $last;
|
||||
}
|
||||
# system ("cp.exe $TARGET_DIR/html/$name $TARGET_DIR/deploy/$name");
|
||||
}
|
||||
}
|
||||
|
||||
sub process_doc {
|
||||
$doc = "";
|
||||
$func = <>;
|
||||
chop $func;
|
||||
$func =~ s/^ \* //;
|
||||
$func =~ s/:$//;
|
||||
print "Function: $func\n" if (!$html);
|
||||
$args = "";
|
||||
$inbody = 0;
|
||||
$returns = "";
|
||||
$body = "";
|
||||
$functions[$fn++] = $func;
|
||||
$deprecated = 0;
|
||||
# Process arguments
|
||||
while (<>){
|
||||
s/NULL/<code>NULL<\/code>/g;
|
||||
s/TRUE/<code>TRUE<\/code>/g;
|
||||
s/FALSE/<code>FALSE<\/code>/g;
|
||||
if (/^ \*\*?\//){
|
||||
$body =~ s/@(\w+)/<i>\1<\/i>/g;
|
||||
$returns =~ s/@(\w+)/<i>\1<\/i>/g;
|
||||
$args =~ s/@(\w+)/<i>\1<\/i>/g;
|
||||
|
||||
$body =~ s/#(\w+)/<code>\1<\/code>/g;
|
||||
$returns =~ s/#(\w+)/<code>\1<\/code>/g;
|
||||
$args =~ s/#(\w+)/<code>\1<\/code>/g;
|
||||
|
||||
$returns =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
|
||||
$args =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
|
||||
$body =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
|
||||
|
||||
$body =~ s/\n/ /;
|
||||
$bodies{$func} = $body;
|
||||
$arguments{$func} = $args;
|
||||
$deprecated{$func} = $deprecated;
|
||||
$returns{$func} = $returns;
|
||||
$proto = "";
|
||||
while (<>){
|
||||
$proto .= $_;
|
||||
last if (/\{/);
|
||||
}
|
||||
$proto =~ s/{//;
|
||||
# clean it up a little, remove newlines, empty space at end
|
||||
$proto =~ s/ +$//;
|
||||
# Turn "Type * xxx" into "Type* xxx"
|
||||
$proto =~ s/^(\w+)\W+\*/\1\*/;
|
||||
$prototype{$func} = $proto;
|
||||
return;
|
||||
}
|
||||
chop;
|
||||
s/^\ \*//;
|
||||
$_ = "<p>" if (/^\s*$/);
|
||||
|
||||
if ($inbody == 0){
|
||||
if (/\s*(\w+):(.*)/){
|
||||
if ($1 eq "deprecated"){
|
||||
$deprecated = $2;
|
||||
} else {
|
||||
#$args .= "<dt><i>$1:</i></dt><dd>$2</dd>";
|
||||
$args .= "<tr><td><i>$1</i><td>$2</td></td></tr>";
|
||||
}
|
||||
} else {
|
||||
|
||||
$body = "\t$_\n";
|
||||
|
||||
$inbody = 1;
|
||||
}
|
||||
} elsif ($inbody == 1) {
|
||||
if (/Returns?:/){
|
||||
s/Returns?://;
|
||||
$returns = "\t$_\n";
|
||||
$inbody = 2;
|
||||
} else {
|
||||
$body .= "\n\t$_";
|
||||
}
|
||||
} else {
|
||||
$returns .= "\n\t$_";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
sub create_toc {
|
||||
my ($apis_listed) = @_;
|
||||
my ($docs, $apis_listed) = @_;
|
||||
my $type_size = 0;
|
||||
my $name_size = 0;
|
||||
my $ret, $xname, $args, $line;
|
||||
$apis_toc = "";
|
||||
my ($ret, $xname, $args);
|
||||
my $apis_toc = "";
|
||||
|
||||
|
||||
# Try to align things, so compute type size, method size, and arguments
|
||||
foreach $line (split /\n/, $apis_listed){
|
||||
$p = $prototype{$line};
|
||||
($ret, $xname, $args) = $p =~ /(.*)\n(\w+)[ \t](.*)/;
|
||||
$tl = length ($ret);
|
||||
$pl = length ($xname);
|
||||
|
||||
$type_size = $tl if ($tl > $type_size);
|
||||
$name_size = $pl if ($pl > $name_size);
|
||||
# Try to align things; compute type size, method size, and arguments.
|
||||
foreach my $line (split /\n/, $apis_listed) {
|
||||
if (exists ($docs->{prototype}->{$line})) {
|
||||
my $p = $docs->{prototype}->{$line};
|
||||
if (my ($ret, $xname, $args) = ($p =~ /(.*)\n(\w+)[ \t](.*)/)) {
|
||||
my $tl = length ($ret);
|
||||
my $pl = length ($xname);
|
||||
$type_size = $tl if ($tl > $type_size);
|
||||
$name_size = $pl if ($pl > $name_size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$type_size++;
|
||||
$name_size++;
|
||||
|
||||
foreach $line (split /\n/, $apis_listed){
|
||||
chop;
|
||||
$p = $prototype{$line};
|
||||
($ret, $xname, $args) = $p =~ /(.*)\n(\w+)[ \t](.*)/;
|
||||
if ($xname eq ""){
|
||||
$xname = $line;
|
||||
}
|
||||
|
||||
$rspace = " " x ($type_size - length ($ret));
|
||||
$nspace = " " x ($name_size - length ($xname));
|
||||
$args = &format ($args, length ($ret . $rspace . $xname . $nspace), 60);
|
||||
$apis_toc .= "$ret$rspace<a href=\"\#api:$line\">$xname</a>$nspace$args\n";
|
||||
foreach my $line (split /\n/, $apis_listed) {
|
||||
chomp($line);
|
||||
if (exists($docs->{prototype}->{$line})) {
|
||||
my $p = $docs->{prototype}->{$line};
|
||||
if (my ($ret, $xname, $args) = ($p =~ /(.*)\n(\w+)[ \t](.*)/)) {
|
||||
$xname = $line if $xname eq "";
|
||||
my $rspace = " " x ($type_size - length ($ret));
|
||||
my $nspace = " " x ($name_size - length ($xname));
|
||||
$args = wrap ($args, length ($ret . $rspace . $xname . $nspace), 60);
|
||||
$apis_toc .= "$ret$rspace<a href=\"\#api:$line\">$xname</a>$nspace$args\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
return $apis_toc;
|
||||
}
|
||||
|
||||
#
|
||||
# Formats the rest of the arguments in a way that will fit in N columns
|
||||
#
|
||||
sub format {
|
||||
sub wrap {
|
||||
my ($args, $size, $limit) = @_;
|
||||
my $sret = "";
|
||||
|
||||
# return $args if ((length (args) + size) < $limit);
|
||||
# return $args if ((length (args) + size) < $limit);
|
||||
|
||||
$remain = $limit - $size;
|
||||
@sa = split /,/, $args;
|
||||
$linelen = $size;
|
||||
foreach $arg (@sa){
|
||||
if ($sret eq ""){
|
||||
$sret = $arg . ", ";
|
||||
$linelen += length ($sret);
|
||||
} else {
|
||||
if ($linelen + length ($arg) < $limit){
|
||||
$sret .= "FITS" . $arg . ", ";
|
||||
} else {
|
||||
$newline = " " x ($size) . $arg . ", ";
|
||||
$linelen = length ($newline);
|
||||
$sret .= "\n" . $newline;
|
||||
}
|
||||
}
|
||||
my $remain = $limit - $size;
|
||||
my @sa = split /,/, $args;
|
||||
my $linelen = $size;
|
||||
foreach my $arg (@sa) {
|
||||
if ($sret eq "") {
|
||||
$sret = $arg . ", ";
|
||||
$linelen += length ($sret);
|
||||
} else {
|
||||
if ($linelen + length ($arg) < $limit) {
|
||||
$sret .= "FITS" . $arg . ", ";
|
||||
} else {
|
||||
my $newline = " " x ($size) . $arg . ", ";
|
||||
my $linelen = length ($newline);
|
||||
$sret .= "\n" . $newline;
|
||||
}
|
||||
}
|
||||
}
|
||||
$sret =~ s/, $/;/;
|
||||
return $sret;
|
||||
}
|
||||
|
||||
#
|
||||
# Print a section if non-empty.
|
||||
#
|
||||
sub opt_print {
|
||||
my ($caption, $opttext, $quote) = @_;
|
||||
|
||||
if ($opttext ne "" && (!($opttext =~ /^[ \t]+$/))){
|
||||
print OUT " <div class=\"mapi-section\">$caption</div>\n";
|
||||
print OUT " <div>$opttext</div>\n";
|
||||
my ($output, $caption, $opttext) = @_;
|
||||
if (defined($opttext) && $opttext ne '' && $opttext !~ /^[ \t]+$/) {
|
||||
print $output
|
||||
" <div class=\"mapi-section\">$caption</div>\n",
|
||||
" <div>$opttext</div>\n";
|
||||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Render parameter information as table.
|
||||
#
|
||||
sub render_parameters {
|
||||
my ($parameters) = @_;
|
||||
my $result = '';
|
||||
for my $parameter (@$parameters) {
|
||||
$result .= "<tr><td><i>$parameter->{name}</i></td><td>$parameter->{description}</td></tr>";
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
__END__
|
||||
|
||||
=head1 NAME
|
||||
|
||||
exdoc - Compiles API docs from Mono sources and HTML templates.
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
exdoc [OPTIONS] [FILE...]
|
||||
|
||||
=head1 OPTIONS
|
||||
|
||||
=over 4
|
||||
|
||||
=item B<--help>
|
||||
|
||||
Print this help message.
|
||||
|
||||
=item B<--html> I<DIR>, B<-h> I<DIR>
|
||||
|
||||
Use I<DIR> as the input path for HTML sources.
|
||||
|
||||
=item B<--target> I<DIR>, B<-t> I<DIR>
|
||||
|
||||
Use I<DIR> as the target path for output.
|
||||
|
||||
=item B<--warnings>, B<-W>
|
||||
|
||||
Enable warnings about documentation errors.
|
||||
|
||||
=back
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Reads HTML templates and C sources, extracting documentation from the sources and splicing it into the templates.
|
||||
|
||||
=cut
|
||||
@@ -27,7 +27,6 @@ typedef enum {
|
||||
|
||||
<h3>Opening and closing MonoImages</h3>
|
||||
|
||||
<h4><a name="api:mono_load_image">mono_load_image</a></h4>
|
||||
<h4><a name="api:mono_image_open">mono_image_open</a></h4>
|
||||
<h4><a name="api:mono_image_open_full">mono_image_open_full</a></h4>
|
||||
<h4><a name="api:mono_image_open_from_data">mono_image_open_from_data</a></h4>
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
<h4><a name="api:mono_marshal_get_delegate_invoke">mono_marshal_get_delegate_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_icall_wrapper">mono_marshal_get_icall_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_isinst">mono_marshal_get_isinst</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ldfld_remote_wrapper">mono_marshal_get_ldfld_remote_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_ldfld_wrapper">mono_marshal_get_ldfld_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_managed_wrapper">mono_marshal_get_managed_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_native_wrapper">mono_marshal_get_native_wrapper</a></h4>
|
||||
@@ -51,7 +50,6 @@
|
||||
<h4><a name="api:mono_marshal_get_remoting_invoke_with_check">mono_marshal_get_remoting_invoke_with_check</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_runtime_invoke">mono_marshal_get_runtime_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stelemref">mono_marshal_get_stelemref</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stfld_remote_wrapper">mono_marshal_get_stfld_remote_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_stfld_wrapper">mono_marshal_get_stfld_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_struct_to_ptr">mono_marshal_get_struct_to_ptr</a></h4>
|
||||
<h4><a name="api:mono_marshal_get_synchronized_wrapper">mono_marshal_get_synchronized_wrapper</a></h4>
|
||||
@@ -59,47 +57,9 @@
|
||||
<h4><a name="api:mono_marshal_get_xappdomain_invoke">mono_marshal_get_xappdomain_invoke</a></h4>
|
||||
<h4><a name="api:mono_marshal_load_type_info">mono_marshal_load_type_info</a></h4>
|
||||
<h4><a name="api:mono_marshal_method_from_wrapper">mono_marshal_method_from_wrapper</a></h4>
|
||||
<h4><a name="api:mono_marshal_realloc">mono_marshal_realloc</a></h4>
|
||||
<h4><a name="api:mono_marshal_set_last_error">mono_marshal_set_last_error</a></h4>
|
||||
<h4><a name="api:mono_marshal_type_size">mono_marshal_type_size</a></h4>
|
||||
|
||||
<h2>Metadata Loading Errors</h2>
|
||||
|
||||
<p>The routines in this section are used to cope with errors
|
||||
during metadata loading. Errors in metadata handling can
|
||||
happen for many reason, and these include (this is not an
|
||||
exhaustive list).
|
||||
|
||||
<ul>
|
||||
<li>An assembly referenced is missing.
|
||||
<li>Fields referenced are missing.
|
||||
<li>Methods referenced are missing.
|
||||
</ul>
|
||||
|
||||
<p>The <tt>mono_loader_set_*</tt> routines are invoked during
|
||||
metadata loading to flag that an error has happened. The
|
||||
class loading errros are flagged in a per-thread basis.
|
||||
|
||||
<P>In various spots in the runtime the
|
||||
<tt>mono_loader_get_last_error</tt> routine is called to check
|
||||
if there was a problem, and then errors are propagated upwards
|
||||
on the stack until we reach a point where an exception can be
|
||||
raised and no runtime locks are held.
|
||||
|
||||
<p>The <tt>mono_loader_error_prepare_exception</tt> takes a
|
||||
<tt>MonoLoaderError</tt> structure (the value returned from
|
||||
<tt>mono_loader_get_last_error</tt>), turns that into an
|
||||
exception and clears the error condition from the current
|
||||
thread.
|
||||
|
||||
<h4><a name="api:mono_loader_set_error_field_load">mono_loader_set_error_field_load</a></h4>
|
||||
<h4><a name="api:mono_loader_set_error_method_load">mono_loader_set_error_method_load</a></h4>
|
||||
<h4><a name="api:mono_loader_set_error_type_load">mono_loader_set_error_type_load</a></h4>
|
||||
|
||||
<h4><a name="api:mono_loader_get_last_error">mono_loader_get_last_error</a></h4>
|
||||
<h4><a name="api:mono_loader_clear_error">mono_loader_clear_error</a></h4>
|
||||
<h4><a name="api:mono_loader_error_prepare_exception">mono_loader_error_prepare_exception</a></h4>
|
||||
|
||||
<h2>Metadata Loader Locking: Internals</h2>
|
||||
|
||||
<p>The locking functions here are used by code in class.c and
|
||||
@@ -114,10 +74,6 @@
|
||||
<p>The internal interface of the Mono GC is the interface used
|
||||
between the runtime engine and the garbage collector.
|
||||
|
||||
<h4><a name="api:mono_gc_disable">mono_gc_disable</a></h4>
|
||||
<h4><a name="api:mono_gc_enable">mono_gc_enable</a></h4>
|
||||
<h4><a name="api:mono_gc_start_world">mono_gc_start_world</a></h4>
|
||||
<h4><a name="api:mono_gc_stop_world">mono_gc_stop_world</a></h4>
|
||||
<h4><a name="api:mono_gc_alloc_fixed">mono_gc_alloc_fixed</a></h4>
|
||||
<h4><a name="api:mono_gc_free_fixed">mono_gc_free_fixed</a></h4>
|
||||
<h4><a name="api:mono_gc_make_descr_from_bitmap">mono_gc_make_descr_from_bitmap</a></h4>
|
||||
|
||||
@@ -31,17 +31,12 @@
|
||||
<h4><a name="api:mono_g_hash_table_destroy">mono_g_hash_table_destroy</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach">mono_g_hash_table_foreach</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach_remove">mono_g_hash_table_foreach_remove</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach_steal">mono_g_hash_table_foreach_steal</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_insert">mono_g_hash_table_insert</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_lookup">mono_g_hash_table_lookup</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_lookup_extended">mono_g_hash_table_lookup_extended</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_new">mono_g_hash_table_new</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_new_full">mono_g_hash_table_new_full</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_remap">mono_g_hash_table_remap</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_remove">mono_g_hash_table_remove</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_replace">mono_g_hash_table_replace</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_size">mono_g_hash_table_size</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_steal">mono_g_hash_table_steal</a></h4>
|
||||
|
||||
|
||||
<h3>Memory Pools</h3>
|
||||
@@ -67,7 +62,6 @@
|
||||
<h4><a name="api:mono_mempool_destroy">mono_mempool_destroy</a></h4>
|
||||
<h4><a name="api:mono_mempool_alloc">mono_mempool_alloc</a></h4>
|
||||
<h4><a name="api:mono_mempool_alloc0">mono_mempool_alloc0</a></h4>
|
||||
<h4><a name="api:mono_mempool_empty">mono_mempool_empty</a></h4>
|
||||
<h4><a name="api:mono_mempool_invalidate">mono_mempool_invalidate</a></h4>
|
||||
<h4><a name="api:mono_mempool_stats">mono_mempool_stats</a></h4>
|
||||
<h4><a name="api:mono_mempool_contains_addr">mono_mempool_contains_addr</a></h4>
|
||||
@@ -153,6 +147,4 @@
|
||||
<h4><a name="api:mono_profiler_startup">mono_profiler_startup</a></h4>
|
||||
<h4><a name="api:mono_profiler_gc_event">mono_profiler_gc_event</a></h4>
|
||||
<h4><a name="api:mono_profiler_gc_heap_resize">mono_profiler_gc_heap_resize</a></h4>
|
||||
<h4><a name="api:mono_profiler_gc_event">mono_profiler_gc_event</a></h4>
|
||||
<h4><a name="api:mono_profiler_gc_heap_resize">mono_profiler_gc_heap_resize</a></h4>
|
||||
<h4><a name="api:mono_profiler_stat_hit">mono_profiler_stat_hit</a></h4>
|
||||
@@ -669,15 +669,12 @@ MONO_TYPESPEC_SIZE
|
||||
<h4><a name="api:mono_metadata_parse_method_signature">mono_metadata_parse_method_signature</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_mh">mono_metadata_parse_mh</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_param">mono_metadata_parse_param</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_ret_type">mono_metadata_parse_ret_type</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_signature">mono_metadata_parse_signature</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_typedef_or_ref">mono_metadata_parse_typedef_or_ref</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_type">mono_metadata_parse_type</a></h4>
|
||||
|
||||
<h2>Generics Support</h2>
|
||||
|
||||
<h4><a name="api:mono_metadata_generic_class_equal">mono_metadata_generic_class_equal</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_class_hash">mono_metadata_generic_class_hash</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_class_is_valuetype">mono_metadata_generic_class_is_valuetype</a></h4>
|
||||
|
||||
<h2>Tokens</h2>
|
||||
|
||||
@@ -94,6 +94,9 @@ arm*-darwin*|aarch64*-*)
|
||||
i*86-*-darwin*)
|
||||
ORDER=G_LITTLE_ENDIAN
|
||||
;;
|
||||
*-*-haiku*)
|
||||
LDFLAGS="$LDFLAGS -ltextencoding"
|
||||
;;
|
||||
*-*-openbsd*)
|
||||
CFLAGS="$CFLAGS -pthread"
|
||||
LDFLAGS="$LDFLAGS -pthread"
|
||||
|
||||
+26
-26
@@ -5,6 +5,32 @@
|
||||
#include "cygconfig.h"
|
||||
#else
|
||||
|
||||
#ifndef HAVE_WINAPI_FAMILY_SUPPORT
|
||||
|
||||
#define HAVE_WINAPI_FAMILY_SUPPORT
|
||||
|
||||
/* WIN API Family support */
|
||||
#include <winapifamily.h>
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
#define HAVE_CLASSIC_WINAPI_SUPPORT 1
|
||||
#define HAVE_UWP_WINAPI_SUPPORT 0
|
||||
#elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
||||
#define HAVE_CLASSIC_WINAPI_SUPPORT 0
|
||||
#define HAVE_UWP_WINAPI_SUPPORT 1
|
||||
#ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT
|
||||
#error Unsupported WINAPI family
|
||||
#endif
|
||||
#else
|
||||
#define HAVE_CLASSIC_WINAPI_SUPPORT 0
|
||||
#define HAVE_UWP_WINAPI_SUPPORT 0
|
||||
#ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT
|
||||
#error Unsupported WINAPI family
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
@@ -78,30 +104,4 @@
|
||||
#define VERSION "0.1"
|
||||
|
||||
#define HAVE_STRTOK_R 1
|
||||
|
||||
#ifndef HAVE_WINAPI_FAMILY_SUPPORT
|
||||
|
||||
#define HAVE_WINAPI_FAMILY_SUPPORT
|
||||
|
||||
/* WIN API Family support */
|
||||
#include <winapifamily.h>
|
||||
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
||||
#define HAVE_CLASSIC_WINAPI_SUPPORT 1
|
||||
#define HAVE_UWP_WINAPI_SUPPORT 0
|
||||
#elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
||||
#define HAVE_CLASSIC_WINAPI_SUPPORT 0
|
||||
#define HAVE_UWP_WINAPI_SUPPORT 1
|
||||
#ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT
|
||||
#error Unsupported WINAPI family
|
||||
#endif
|
||||
#else
|
||||
#define HAVE_CLASSIC_WINAPI_SUPPORT 0
|
||||
#define HAVE_UWP_WINAPI_SUPPORT 0
|
||||
#ifndef HAVE_EXTERN_DEFINED_WINAPI_SUPPORT
|
||||
#error Unsupported WINAPI family
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Vendored
+1
-1
Submodule external/bockbuild updated: 512ba41a94...fd1d6c404d.
Vendored
+1
-1
Submodule external/buildtools updated: 9b6ee8686b...b5cc6e6ab5.
Vendored
+1
-1
Submodule external/cecil updated: f7733aca62...229946f543.
Vendored
+1
-1
Submodule external/corefx updated: f7ed7c88fe...f646c9d6a6.
Vendored
+1
-1
Submodule external/corert updated: d87c966d80...8dce492077.
Vendored
+1
-1
Submodule external/ikdasm updated: e4deabf61c...88b67c42ca.
Vendored
+1
-1
Submodule external/ikvm updated: 367864ef81...7c1e61bec8.
Vendored
+1
-1
Submodule external/linker updated: e4d9784ac3...1bdcf6b7bf.
Vendored
+1
-1
Submodule external/roslyn-binaries updated: 69ce5c6b08...0d4198b129.
+1
Submodule external/xunit-binaries added at b8e20d265b.
+1
-1
@@ -21,7 +21,7 @@
|
||||
* See the definition of page_hash_table in gc_private.h.
|
||||
* False hits from the stack(s) are much more dangerous than false hits
|
||||
* from elsewhere, since the former can pin a large object that spans the
|
||||
* block, eventhough it does not start on the dangerous block.
|
||||
* block, even though it does not start on the dangerous block.
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
@@ -1872,7 +1872,7 @@ Since 6.2alpha6:
|
||||
- Fixed Makefile.direct for DARWIN. (Thanks to Manuel Serrano.)
|
||||
- There was a race between GC_pthread_detach and thread exit that could
|
||||
result in a thread structure being deallocated by GC_pthread_detach
|
||||
eventhough it was still needed by the thread exit code. (Thanks to
|
||||
even though it was still needed by the thread exit code. (Thanks to
|
||||
Dick Porter for the small test case that allowed this to be debugged.)
|
||||
- Fixed version parsing for non-alpha versions in acinclude.m4 and
|
||||
version checking in version.h.
|
||||
|
||||
@@ -19,7 +19,7 @@ relatively easy to adapt to new compilers with a different set of predefined
|
||||
macros. Currently these macros generally identify platforms instead of
|
||||
features. In many cases, this is a mistake.
|
||||
|
||||
3) The code currently avoids #elif, eventhough that would make it more
|
||||
3) The code currently avoids #elif, even though that would make it more
|
||||
readable. This was done since #elif would need to be understood by ALL
|
||||
compilers used to build the collector, and that hasn't always been the case.
|
||||
It makes sense to reconsider this decision at some point, since #elif has been
|
||||
|
||||
+1
-1
@@ -936,7 +936,7 @@ void GC_do_local_mark(mse *local_mark_stack, mse *local_top)
|
||||
/* Try to share the load, since the main stack is empty, */
|
||||
/* and helper threads are waiting for a refill. */
|
||||
/* The entries near the bottom of the stack are likely */
|
||||
/* to require more work. Thus we return those, eventhough */
|
||||
/* to require more work. Thus we return those, even though */
|
||||
/* it's harder. */
|
||||
mse * p;
|
||||
mse * new_bottom = local_mark_stack
|
||||
|
||||
+57
-18
@@ -2,31 +2,22 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH csharp 1 "4 September 2008"
|
||||
.TH csharp 1 "22 March 2017"
|
||||
.SH NAME
|
||||
csharp, gsharp \- Interactive C# Shell
|
||||
csharp \- Interactive C# Shell and Scripting
|
||||
.SH SYNOPSIS
|
||||
.B csharp [--attach PID] [-e EXPRESSION] [file1 [file2]]
|
||||
[options]
|
||||
.P
|
||||
.B gsharp [file1 [file2]]
|
||||
[compiler-options] [--|-s script-options]
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.I csharp
|
||||
is an interactive C# shell that allows the user to enter and evaluate
|
||||
C# statements and expressions from the command line. The regular
|
||||
command is an interactive C# shell and scripting host that allows
|
||||
the user to enter and evaluate C# statements and expressions from
|
||||
the command line or execute C# scripts.
|
||||
The regular
|
||||
.I mcs
|
||||
command line options can be used in this version of the compiler.
|
||||
.PP
|
||||
The
|
||||
.I gsharp
|
||||
command is a GUI version of the C# interpreter that uses Gtk# and
|
||||
provides an area to attach widgets as well. This version can be
|
||||
attached to other Gtk# applications in a safe way as it injects itself
|
||||
into the main loop of a Gtk# application, avoiding any problems
|
||||
arising from the multi-threaded nature of injecting itself into a
|
||||
target process.
|
||||
.PP
|
||||
Files specified in the command line will be loaded and executed as
|
||||
scripts.
|
||||
.PP
|
||||
@@ -35,9 +26,31 @@ Starting with Mono 2.10, the
|
||||
command can be used as an interpreter executed by executables flagged
|
||||
with the Unix execute attribute. To do this, make the first line of
|
||||
your C# source code look like this:
|
||||
.PP
|
||||
.nf
|
||||
"#!/usr/bin/csharp"
|
||||
Console.WriteLine ("Hello, World");
|
||||
#!/usr/bin/csharp
|
||||
Console.WriteLine ("Hello, World");
|
||||
.fi
|
||||
.PP
|
||||
Starting with Mono 5.0, command line arguments may now be passed
|
||||
to the
|
||||
.I csharp
|
||||
command by specifying either the
|
||||
.I -s
|
||||
or
|
||||
.I --
|
||||
(script) options.
|
||||
.PP
|
||||
The
|
||||
.I -s
|
||||
option is ideal for interpreting executable scripts that utilize
|
||||
shebang syntax (introduced in Mono 2.10). This allows command line
|
||||
arguments to be passed to and consumed cleanly by the script:
|
||||
.PP
|
||||
.nf
|
||||
#!/usr/bin/csharp -s
|
||||
foreach (var arg in Args)
|
||||
Console.WriteLine ($"script argument: {arg}");
|
||||
.fi
|
||||
.SH OPTIONS
|
||||
The commands accept all of the commands that are available to the
|
||||
@@ -45,6 +58,23 @@ The commands accept all of the commands that are available to the
|
||||
command, so you can reference assemblies, specify paths, language
|
||||
level and so on from the command line. In addition, the following
|
||||
command line options are supported:
|
||||
.TP
|
||||
.I "\-s" SCRIPT_FILE
|
||||
This option is ideal for authoring executable scripts that utilize
|
||||
the Unix shebang feature. Unix will implicitly append as an argument
|
||||
the path of the script to execute. When the executable is invoked,
|
||||
any arguments then passed to it will be available in the
|
||||
.I Args
|
||||
global. Example:
|
||||
.I "#!/usr/bin/env csharp -s"
|
||||
.TP
|
||||
.I "\-\-"
|
||||
Any arguments that follow will not be passed to the compiler driver,
|
||||
and instead will be made available in the
|
||||
.I Args
|
||||
global. Example:
|
||||
.I csharp -- a b c
|
||||
will result in Args = { "a", "b", "c" } in the interactive shell.
|
||||
.TP
|
||||
.I "\-\-attach"
|
||||
This is an advanced option and should only be used if you have a deep
|
||||
@@ -290,6 +320,15 @@ statements and expressions are executed are static, they can be
|
||||
invoked directly from the shell. These are the available properties
|
||||
and methods:
|
||||
.TP
|
||||
.I Args
|
||||
An easy to consume array of any arguments specified after either
|
||||
.I -s
|
||||
or
|
||||
.I --
|
||||
on the command line. Ideal for self-executing scripts utilizing the
|
||||
.I -s
|
||||
option.
|
||||
.TP
|
||||
.I void LoadAssembly(string assembly)
|
||||
Loads the given assembly. This is equivalent to passing the compiler
|
||||
the -r: flag with the specified string.
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH gacutil "Mono 1.0"
|
||||
.TH Mono "gacutil"
|
||||
.SH NAME
|
||||
gacutil \- Global Assembly Cache management utility.
|
||||
.SH SYNOPSIS
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH lc "Mono 2.6"
|
||||
.TH Mono "lc"
|
||||
.SH NAME
|
||||
lc \- Mono License Compiler
|
||||
.SH SYNOPSIS
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH macpack "Mono 1.0"
|
||||
.TH Mono "macpack"
|
||||
.SH NAME
|
||||
macpack \- Macintosh OS X Packager for managed gui assemblies
|
||||
.SH SYNOPSIS
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
.\"
|
||||
.\" mono manual page.
|
||||
.\" mdb2ppdb manual page.
|
||||
.\" Copyright 2017 Microsoft
|
||||
.\"
|
||||
.TH Mono "Mono 4.8.0"
|
||||
.TH Mono "mdb2ppdb"
|
||||
.SH NAME
|
||||
mdb2ppdb \- Convert Mono's debug file format (MDB) to Portable Program
|
||||
Database (PPDB) file formatn
|
||||
|
||||
+1
-1
@@ -765,7 +765,7 @@ Refers to a namespace, e.g. \fIN:System\fR.
|
||||
.I "P:"
|
||||
Refers to a property. If the property is an indexer or takes parameters,
|
||||
the parameter types are appended to the property name and enclosed with
|
||||
paranthesis:
|
||||
parenthesis:
|
||||
\fIP:System.String.Length\fR,
|
||||
\fIP:System.String.Chars(System.Int32)\fR.
|
||||
.TP
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH mkbundle "mkbundle 1.0"
|
||||
.TH Mono "mkbundle"
|
||||
.SH NAME
|
||||
mkbundle, mkbundle2 \- Creates a bundled executable.
|
||||
.SH SYNOPSIS
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
.\" Miguel de Icaza ([email protected])
|
||||
.\" Paolo Molaro ([email protected])
|
||||
.\"
|
||||
.TH Mono "Mono 1.0"
|
||||
.TH Mono "mono-config"
|
||||
.SH NAME
|
||||
mono-config \- Mono runtime file format configuration
|
||||
.SH DESCRIPTION
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH Mono "Mono 1.0"
|
||||
.TH Mono "mono-service"
|
||||
.SH NAME
|
||||
mono-service, mono-service2 \- Mono ServiceProcess host
|
||||
.SH SYNOPSIS
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH mono-xmltool "Mono 1.0"
|
||||
.TH Mono "mono-xmltool"
|
||||
.SH NAME
|
||||
mono-xmltool \- Mono XML validation and transformation tool.
|
||||
.SH SYNOPSIS
|
||||
|
||||
+126
-49
@@ -7,7 +7,7 @@
|
||||
.\" Author:
|
||||
.\" Miguel de Icaza ([email protected])
|
||||
.\"
|
||||
.TH Mono "Mono 4.7.0"
|
||||
.TH Mono "mono"
|
||||
.SH NAME
|
||||
mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
|
||||
.SH SYNOPSIS
|
||||
@@ -19,14 +19,6 @@ mono \- Mono's ECMA-CLI native code generator (Just-in-Time and Ahead-of-Time)
|
||||
\fImono\fP is a runtime implementation of the ECMA Common Language
|
||||
Infrastructure. This can be used to run ECMA and .NET applications.
|
||||
.PP
|
||||
The runtime contains a native code generator that transforms the
|
||||
Common Intermediate Language into native code.
|
||||
.PP
|
||||
The code generator can operate in two modes: just in time compilation
|
||||
(JIT) or ahead of time compilation (AOT). Since code can be
|
||||
dynamically loaded, the runtime environment and the JIT are always
|
||||
present, even if code is compiled ahead of time.
|
||||
.PP
|
||||
The runtime loads the specified
|
||||
.I file
|
||||
and optionally passes
|
||||
@@ -36,12 +28,26 @@ to it. The
|
||||
.I file
|
||||
is an ECMA assembly. They typically have a .exe or .dll extension.
|
||||
.PP
|
||||
These executables can reference additionaly functionality in the form
|
||||
of assembly references. By default those assembly references are
|
||||
resolved as follows: the \fBmscorlib.dll\fR is resolved from the
|
||||
system profile that is configured by Mono, and other assemblies are
|
||||
loaded from the Global Assembly Cache (GAC).
|
||||
.PP
|
||||
The runtime contains a native code generator that transforms the
|
||||
Common Intermediate Language into native code.
|
||||
.PP
|
||||
The code generator can operate in two modes: just in time compilation
|
||||
(JIT) or ahead of time compilation (AOT). Since code can be
|
||||
dynamically loaded, the runtime environment and the JIT are always
|
||||
present, even if code is compiled ahead of time.
|
||||
.PP
|
||||
The runtime provides a number of configuration options for running
|
||||
applications, for developing and debugging, and for testing and
|
||||
debugging the runtime itself.
|
||||
.PP
|
||||
The \fImono\fP command uses the Boehm conservative garbage collector
|
||||
while the \fImono-sgen\fP command uses a moving and generational
|
||||
The \fImono\fP command uses the moving and generational SGen garbage collector
|
||||
while the \fImono-boehm\fP command uses the conservative Boehm
|
||||
garbage collector.
|
||||
.SH PORTABILITY
|
||||
On Unix-based systems, Mono provides a mechanism to emulate the
|
||||
@@ -87,7 +93,7 @@ information which is not available on the generated file. When
|
||||
precompiling code, you might want to compile with all optimizations
|
||||
(-O=all). Pre-compiled code is position independent code.
|
||||
.Sp
|
||||
Pre compilation is just a mechanism to reduce startup time, increase
|
||||
Precompilation is just a mechanism to reduce startup time, increase
|
||||
code sharing across multiple mono processes and avoid just-in-time
|
||||
compilation program startup costs. The original assembly must still
|
||||
be present, as the metadata is contained there.
|
||||
@@ -104,11 +110,6 @@ than one can be specified:
|
||||
.RS
|
||||
.ne 8
|
||||
.TP
|
||||
.I autoreg
|
||||
The AOT compiler will emit a (ELF only) library initializer to automatically
|
||||
register the aot compiled module with the runtime. This is only useful in static
|
||||
mode
|
||||
.TP
|
||||
.I asmonly
|
||||
Instructs the AOT compiler to output assembly code instead of an
|
||||
object file.
|
||||
@@ -118,11 +119,6 @@ object file.
|
||||
If specified, forces the generated AOT files to be bound to the
|
||||
runtime version of the compiling Mono. This will prevent the AOT
|
||||
files from being consumed by a different Mono runtime.
|
||||
.I full
|
||||
.Sp
|
||||
This is currently an experimental feature as it is not complete.
|
||||
This instructs Mono to precompile code that has historically not been
|
||||
precompiled with AOT.
|
||||
.TP
|
||||
.I data-outfile=FILE.dll.aotdata
|
||||
.Sp
|
||||
@@ -134,10 +130,59 @@ on demand by using the
|
||||
.I mono_install_load_aot_data_hook
|
||||
method.
|
||||
.TP
|
||||
.I direct-icalls
|
||||
.Sp
|
||||
When this option is specified, icalls (internal calls made from the
|
||||
standard library into the mono runtime code) are invoked directly
|
||||
instead of going through the operating system symbol lookup operation.
|
||||
This requires use of the
|
||||
.I static
|
||||
option.
|
||||
.TP
|
||||
.I direct-pinvoke
|
||||
.Sp
|
||||
When this option is specified, P/Invoke methods are invoked directly
|
||||
instead of going through the operating system symbol lookup operation.
|
||||
This requires use of the
|
||||
.I static
|
||||
option.
|
||||
.TP
|
||||
.I dwarfdebug
|
||||
Instructs the AOT compiler to emit DWARF debugging information. When
|
||||
used together with the nodebug option, only DWARF debugging
|
||||
information is emitted, but not the information that can be used at
|
||||
runtime.
|
||||
.TP
|
||||
.I full
|
||||
.Sp
|
||||
This creates binaries which can be used with the --full-aot option.
|
||||
.TP
|
||||
.I hybrid
|
||||
.Sp
|
||||
This creates binaries which can be used with the --hybrid-aot option.
|
||||
.TP
|
||||
.I llvm
|
||||
AOT will be performed with the LLVM backend instead of the Mono backend where possible. This will be slower to compile but most likely result in a performance improvement.
|
||||
.TP
|
||||
.I llvmonly
|
||||
AOT will be performed with the LLVM backend exclusively and the Mono backend will not be used. The only output in this mode will be the bitcode file normally specified with the
|
||||
.I llvm-outfile
|
||||
option. Use of
|
||||
.I llvmonly
|
||||
automatically enables the
|
||||
.I full
|
||||
and
|
||||
.I llvm
|
||||
options. This feature is experimental.
|
||||
.TP
|
||||
.I llvm-outfile=[filename]
|
||||
Gives the path for the temporary LLVM bitcode file created during AOT.
|
||||
.TP
|
||||
.I info
|
||||
Print the architecture the AOT in this copy of Mono targets and quit.
|
||||
.TP
|
||||
.I ld-flags
|
||||
Additional flags to pass to the C linker (if the current AOT mode calls for invoking it).
|
||||
.TP
|
||||
.I llvm-path=<PREFIX>
|
||||
Same for the llvm tools 'opt' and 'llc'.
|
||||
@@ -156,7 +201,12 @@ llc compiler.
|
||||
.I nimt-trampolines=[number]
|
||||
When compiling in full aot mode, the IMT trampolines must be precreated
|
||||
in the AOT image. You can add additional method trampolines with this argument.
|
||||
Defaults to 128.
|
||||
Defaults to 512.
|
||||
.TP
|
||||
.I ngsharedvt-trampolines=[number]
|
||||
When compiling in full aot mode, the value type generic sharing trampolines must be precreated
|
||||
in the AOT image. You can add additional method trampolines with this argument.
|
||||
Defaults to 512.
|
||||
.TP
|
||||
.I nodebug
|
||||
Instructs the AOT compiler to not output any debugging information.
|
||||
@@ -166,23 +216,22 @@ This prevents the AOT compiler from generating a direct calls to a
|
||||
method. The AOT compiler usually generates direct calls for certain
|
||||
methods that do not require going through the PLT (for example,
|
||||
methods that are known to not require a hook like a static
|
||||
constructor) or call into simple internal calls.
|
||||
.TP
|
||||
.I dwarfdebug
|
||||
Instructs the AOT compiler to emit DWARF debugging information. When
|
||||
used together with the nodebug option, only DWARF debugging
|
||||
information is emitted, but not the information that can be used at
|
||||
runtime.
|
||||
constructor) or call into simple internal calls.
|
||||
.TP
|
||||
.I nrgctx-trampolines=[number]
|
||||
When compiling in full aot mode, the generic sharing trampolines must be precreated
|
||||
in the AOT image. You can add additional method trampolines with this argument.
|
||||
Defaults to 1024.
|
||||
Defaults to 4096.
|
||||
.TP
|
||||
.I nrgctx-fetch-trampolines=[number]
|
||||
When compiling in full aot mode, the generic sharing fetch trampolines must be precreated
|
||||
in the AOT image. You can add additional method trampolines with this argument.
|
||||
Defaults to 128.
|
||||
.TP
|
||||
.I ntrampolines=[number]
|
||||
When compiling in full aot mode, the method trampolines must be precreated
|
||||
in the AOT image. You can add additional method trampolines with this argument.
|
||||
Defaults to 1024.
|
||||
Defaults to 4096.
|
||||
.TP
|
||||
.I outfile=[filename]
|
||||
Instructs the AOT compiler to save the output to the specified file.
|
||||
@@ -191,6 +240,16 @@ Instructs the AOT compiler to save the output to the specified file.
|
||||
If the AOT compiler cannot compile a method for any reason, enabling this flag
|
||||
will output the skipped methods to the console.
|
||||
.TP
|
||||
.I profile=[file]
|
||||
Specify a file to use for profile-guided optimization. See the "AOT PROFILING" section. To specify multiple files, include the
|
||||
.I profile
|
||||
option multiple times.
|
||||
.TP
|
||||
.I profile-only
|
||||
AOT *only* the methods described in the files specified with the
|
||||
.I profile
|
||||
option. See the "AOT PROFILING" section.
|
||||
.TP
|
||||
.I readonly-value=namespace.typename.fieldname=type/value
|
||||
Override the value of a static readonly field. Usually, during JIT
|
||||
compilation, the static constructor is ran eagerly, so the value of
|
||||
@@ -203,7 +262,6 @@ Note that signed/unsigned numbers do not matter here, just the storage size.
|
||||
This option can be specified multiple times and it doesn't prevent the static
|
||||
constructor for the type defining the field to execute with the usual rules
|
||||
at runtime (hence possibly computing a different value for the field).
|
||||
|
||||
.TP
|
||||
.I save-temps,keep-temps
|
||||
Instructs the AOT compiler to keep temporary files.
|
||||
@@ -232,6 +290,9 @@ mono_aot_register_module (mono_aot_module_hello_info);
|
||||
.I stats
|
||||
Print various stats collected during AOT compilation.
|
||||
.TP
|
||||
.I temp_path=[path]
|
||||
Explicitly specify path to store temporary files created during AOT compilation.
|
||||
.TP
|
||||
.I threads=[number]
|
||||
This is an experimental option for the AOT compiler to use multiple threads
|
||||
when compiling the methods.
|
||||
@@ -241,8 +302,11 @@ Prepends <PREFIX> to the name of tools ran by the AOT compiler, i.e. 'as'/'ld'.
|
||||
example, --tool=prefix=arm-linux-gnueabi- will make the AOT compiler run
|
||||
'arm-linux-gnueabi-as' instead of 'as'.
|
||||
.TP
|
||||
.I write-symbols
|
||||
Instructs the AOT compiler to emit debug symbol information.
|
||||
.I verbose
|
||||
Prints additional information about type loading failures.
|
||||
.TP
|
||||
.I write-symbols,no-write-symbols
|
||||
Instructs the AOT compiler to emit (or not emit) debug symbol information.
|
||||
.PP
|
||||
For more information about AOT, see: http://www.mono-project.com/docs/advanced/aot/
|
||||
.RE
|
||||
@@ -264,8 +328,8 @@ List of additional directories to search for AOT images.
|
||||
This instructs the Mono runtime to
|
||||
start a debugging agent inside the Mono runtime and connect it to a
|
||||
client user interface will control the Mono process.
|
||||
This option is typically used by IDEs, like the MonoDevelop IDE.
|
||||
.PP
|
||||
This option is typically used by IDEs, like the MonoDevelop or Visual Studio IDEs.
|
||||
.RS
|
||||
The configuration is specified using one of more of the following options:
|
||||
.RS
|
||||
.ne 8
|
||||
@@ -292,10 +356,10 @@ actively waits for the debugger front end to connect to the Mono process.
|
||||
Mono will print out to stdout the IP address and port where it is listening.
|
||||
.TP
|
||||
.I setpgid=[y/n]
|
||||
If set to yes, Mono will call \fBsetpgid(0, 0)\fB on startup, if that function
|
||||
If set to yes, Mono will call \fBsetpgid(0, 0)\fR on startup, if that function
|
||||
is available on the system. This is useful for ensuring that signals delivered
|
||||
to a process that is executing the debuggee are not propagated to the debuggee,
|
||||
e.g. when Ctrl-C sends \fBSIGINT\fB to the \fBsdb\fB tool.
|
||||
e.g. when Ctrl-C sends \fBSIGINT\fR to the \fBsdb\fR tool.
|
||||
.TP
|
||||
.I suspend=[y/n]
|
||||
Defaults to yes, with the default option Mono will suspend the vm on startup
|
||||
@@ -318,10 +382,12 @@ the heap as much as possible at the expense of slowing down garbage
|
||||
collection a bit.
|
||||
.TP
|
||||
\fB--full-aot\fR
|
||||
This is an experimental flag that instructs the Mono runtime to not
|
||||
This flag instructs the Mono runtime to not
|
||||
generate any code at runtime and depend exclusively on the code
|
||||
generated from using mono --aot=full previously. This is useful for
|
||||
platforms that do not permit dynamic code generation.
|
||||
generated from using mono --aot=full previously. This is useful for
|
||||
platforms that do not permit dynamic code generation, or if you need
|
||||
to run assemblies that have been stripped of IL (for example using
|
||||
mono-cil-strip).
|
||||
.Sp
|
||||
Notice that this feature will abort execution at runtime if a codepath
|
||||
in your program, or Mono's class libraries attempts to generate code
|
||||
@@ -351,6 +417,14 @@ will switch to '/bin/mono64' iff '/bin/mono' is a 32-bit build).
|
||||
\fB--help\fR, \fB-h\fR
|
||||
Displays usage instructions.
|
||||
.TP
|
||||
\fB--hybrid-aot\fR
|
||||
This flag allows the Mono runtime to run assemblies
|
||||
that have been stripped of IL, for example using mono-cil-strip. For this to
|
||||
work, the assembly must have been AOT compiled with --aot=hybrid.
|
||||
|
||||
This flag is similar to --full-aot, but it does not disable the JIT. This means
|
||||
you can use dynamic features such as System.Reflection.Emit.
|
||||
.TP
|
||||
\fB--llvm\fR
|
||||
If the Mono runtime has been compiled with LLVM support (not available
|
||||
in all configurations), Mono will use the LLVM optimization and code
|
||||
@@ -528,7 +602,7 @@ platforms, and only when using gdb 7.0 or later.
|
||||
Turns on profiling. For more information about profiling applications
|
||||
and code coverage see the sections "PROFILING" and "CODE COVERAGE"
|
||||
below.
|
||||
.TP
|
||||
.Sp
|
||||
This option can be used multiple times, each time will load an
|
||||
additional profiler. This allows developers to use modules that
|
||||
extend the JIT through the Mono profiling interface.
|
||||
@@ -609,7 +683,7 @@ Finally, namespaces can be specified using the N: prefix:
|
||||
Don't align stack frames on the x86 architecture. By default, Mono
|
||||
aligns stack frames to 16 bytes on x86, so that local floating point
|
||||
and SIMD variables can be properly aligned. This option turns off the
|
||||
alignment, which usually saves one intruction per call, but might
|
||||
alignment, which usually saves one instruction per call, but might
|
||||
result in significantly lower floating point and SIMD performance.
|
||||
.TP
|
||||
\fB--jitmap\fR
|
||||
@@ -1692,7 +1766,7 @@ Captures the interrupt signal (Control-C) and displays a stack trace
|
||||
when pressed. Useful to find out where the program is executing at a
|
||||
given point. This only displays the stack trace of a single thread.
|
||||
.TP
|
||||
\fBinit-stacks\FR
|
||||
\fBinit-stacks\fR
|
||||
Instructs the runtime to initialize the stack with
|
||||
some known values (0x2a on x86-64) at the start of a method to assist
|
||||
in debuggin the JIT engine.
|
||||
@@ -1732,11 +1806,14 @@ values.
|
||||
This option allows using single-steps and breakpoints in hardware
|
||||
where we cannot do it with signals.
|
||||
.TP
|
||||
\fBsuspend-on-sigsegv\fR
|
||||
This option will suspend the program when a native SIGSEGV is received.
|
||||
\fBsuspend-on-native-crash\fR
|
||||
This option will suspend the program when a native crash occurs (SIGSEGV, SIGILL, ...).
|
||||
This is useful for debugging crashes which do not happen under gdb,
|
||||
since a live process contains more information than a core file.
|
||||
.TP
|
||||
\fBsuspend-on-sigsegv\fR
|
||||
Same as \fBsuspend-on-native-crash\fR.
|
||||
.TP
|
||||
\fBsuspend-on-exception\fR
|
||||
This option will suspend the program when an exception occurs.
|
||||
.TP
|
||||
@@ -1939,8 +2016,8 @@ http://www.mono-project.com/community/help/mailing-lists/
|
||||
http://www.mono-project.com
|
||||
.SH SEE ALSO
|
||||
.PP
|
||||
certmgr(1), csharp(1), mcs(1), mdb(1), monocov(1), monodis(1),
|
||||
mono-config(5), mozroots(1), mprof-report(1), pdb2mdb(1), xsp(1), mod_mono(8).
|
||||
certmgr(1), cert-sync(1), csharp(1), gacutil(1), mcs(1), mdb(1), monocov(1), monodis(1),
|
||||
mono-config(5), mprof-report(1), pdb2mdb(1), xsp(1), mod_mono(8).
|
||||
.PP
|
||||
For more information on AOT:
|
||||
http://www.mono-project.com/docs/advanced/aot/
|
||||
|
||||
+2
-2
@@ -237,7 +237,7 @@ to the type name, while methods append the method name (with an optional count
|
||||
of the number of generic parameters).
|
||||
.Sp
|
||||
If the constructor or method take arguments, these are listed within
|
||||
paranthesis after the constructor/method name:
|
||||
parenthesis after the constructor/method name:
|
||||
.Sp
|
||||
.I M:System.Object..ctor
|
||||
,
|
||||
@@ -259,7 +259,7 @@ Refers to a namespace, e.g.
|
||||
.I "P:"
|
||||
Refers to a property. If the property is an indexer or takes parameters,
|
||||
the parameter types are appended to the property name and enclosed with
|
||||
paranthesis:
|
||||
parenthesis:
|
||||
.I P:System.String.Length
|
||||
,
|
||||
.I P:System.String.Chars(System.Int32)
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
.if t .sp .5v
|
||||
.if n .sp
|
||||
..
|
||||
.TH resgen "resgen 1.0"
|
||||
.TH Mono "resgen"
|
||||
.SH NAME
|
||||
resgen, resgen2 \- Mono/CLI Resource Generator
|
||||
.SH SYNOPSIS
|
||||
|
||||
+1
-1
@@ -407,7 +407,7 @@ mysql MySQL AB MySql.Data.MySqlClient MySql.Data
|
||||
NOTES:
|
||||
|
||||
Ngsql is the .Net Data Provider for PosgreSQL. The
|
||||
latest verison can be downloaded from
|
||||
latest version can be downloaded from
|
||||
http://npgsql.projects.postgresql.org/
|
||||
|
||||
MySql.Data is the MySQL Connector/Net for connecting to MySql databases.
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
/LICENSE.MSPL -crlf
|
||||
/ScalableMonoIcon.svg -crlf
|
||||
/winexe.in crlf=input
|
||||
+2
-2
@@ -134,7 +134,7 @@
|
||||
code ();
|
||||
}
|
||||
|
||||
* Avoid using unecessary open/close braces, vertical space
|
||||
* Avoid using unnecessary open/close braces, vertical space
|
||||
is usually limited:
|
||||
|
||||
good:
|
||||
@@ -474,4 +474,4 @@ class X : Y {
|
||||
MyHelperClass.cli.cs
|
||||
MyHelperClass.jvm.cs
|
||||
|
||||
By using partial classes.
|
||||
By using partial classes.
|
||||
+2
-1
@@ -12,7 +12,8 @@ clean-local:
|
||||
|
||||
common/Consts.cs: common/Consts.cs.in $(wildcard config.make)
|
||||
test -n '$(MONO_VERSION)'
|
||||
sed -e 's,@''MONO_VERSION@,$(MONO_VERSION),' $< > $@
|
||||
test -n '$(MONO_CORLIB_VERSION)'
|
||||
sed -e 's,@''MONO_VERSION@,$(MONO_VERSION),' -e 's,@''MONO_CORLIB_VERSION@,$(MONO_CORLIB_VERSION),' $< > $@
|
||||
|
||||
PLATFORMS = darwin linux win32
|
||||
PROFILES = \
|
||||
|
||||
@@ -38,6 +38,7 @@ static class Consts
|
||||
public const string MonoCompany = "Mono development team";
|
||||
public const string MonoProduct = "Mono Common Language Infrastructure";
|
||||
public const string MonoCopyright = "(c) Various Mono authors";
|
||||
public const int MonoCorlibVersion = @MONO_CORLIB_VERSION@;
|
||||
|
||||
#if MOBILE
|
||||
// Versions of .NET Framework for Silverlight 4.0
|
||||
|
||||
+11
-2
@@ -134,7 +134,7 @@ csproj-local: csproj-library csproj-test
|
||||
intermediate_clean=$(subst /,-,$(intermediate))
|
||||
csproj-library:
|
||||
config_file=`basename $(LIBRARY) .dll`-$(intermediate_clean)$(PROFILE).input; \
|
||||
case "$(thisdir)" in *"Facades"*) config_file=Facades_$$config_file;; esac; \
|
||||
case "$(thisdir)" in *"Facades"*) config_file=Facades_$$config_file;; *"legacy"*) config_file=legacy_$$config_file;; esac; \
|
||||
echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
|
||||
(echo $(is_boot); \
|
||||
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
|
||||
@@ -266,7 +266,7 @@ endif
|
||||
# make dist will collect files in .sources files from all profiles
|
||||
dist-local: dist-default
|
||||
subs=' ' ; \
|
||||
for f in `$(topdir)/tools/removecomments.sh $(filter-out $(wildcard *_test.dll.sources) $(wildcard *exclude.sources),$(wildcard *.sources))` $(TEST_FILES) ; do \
|
||||
for f in `$(topdir)/tools/removecomments.sh $(filter-out $(wildcard *_test.dll.sources) $(wildcard *_xtest.dll.sources) $(wildcard *exclude.sources),$(wildcard *.sources))` $(TEST_FILES) ; do \
|
||||
case $$f in \
|
||||
../*) : ;; \
|
||||
*.g.cs) : ;; \
|
||||
@@ -377,3 +377,12 @@ $(the_libdir)/.doc-stamp: $(the_lib)
|
||||
# Need to be here so it comes after the definition of DEP_DIRS/DEP_LIBS
|
||||
gen-deps:
|
||||
@echo "$(DEPS_TARGET_DIR): $(DEP_DIRS) $(DEP_LIBS)" >> $(DEPS_FILE)
|
||||
|
||||
# Should be $(BUILD_TOOLS_PROFILE) but still missing System.Windows.Forms
|
||||
resx2sr=$(topdir)/class/lib/net_4_x/resx2sr.exe
|
||||
|
||||
update-corefx-sr: $(resx2sr) $(RESX_RESOURCE_STRING)
|
||||
MONO_PATH="$(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(resx2sr) $(RESX_RESOURCE_STRING) >corefx/SR.cs
|
||||
|
||||
$(resx2sr):
|
||||
$(MAKE) -C $(topdir)/tools/resx2sr
|
||||
@@ -1,12 +1,12 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Platform-specific makefile rules. This one's for linux.
|
||||
# Platform-specific makefile rules. This one's for macOS.
|
||||
#
|
||||
|
||||
PLATFORM_MCS_FLAGS =
|
||||
PLATFORM_RUNTIME = $(RUNTIME)
|
||||
PLATFORM_CORLIB = mscorlib.dll
|
||||
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnMac,
|
||||
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnMac,MacNotWorking,
|
||||
|
||||
EXTERNAL_MCS = mcs
|
||||
EXTERNAL_MBAS = mbas
|
||||
|
||||
@@ -25,14 +25,12 @@ PROFILE_MCS_FLAGS = \
|
||||
-d:MOBILE_DYNAMIC \
|
||||
-d:MONODROID \
|
||||
-d:ANDROID \
|
||||
-d:NETSTANDARD \
|
||||
-nowarn:1699 \
|
||||
-nostdlib \
|
||||
$(DEFAULT_REFERENCES) \
|
||||
$(PLATFORM_DEBUG_FLAGS)
|
||||
|
||||
FRAMEWORK_VERSION = 2.1
|
||||
NO_TEST = yes
|
||||
|
||||
# the tuner takes care of the install
|
||||
NO_INSTALL = yes
|
||||
|
||||
@@ -27,7 +27,6 @@ PROFILE_MCS_FLAGS = \
|
||||
-d:DISABLE_REMOTING \
|
||||
-d:DISABLE_COM \
|
||||
-d:FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK \
|
||||
-d:NETSTANDARD \
|
||||
-nowarn:1699 \
|
||||
-nostdlib \
|
||||
$(DEFAULT_REFERENCES) \
|
||||
@@ -43,3 +42,5 @@ MOBILE_PROFILE = yes
|
||||
NO_CONSOLE = yes
|
||||
|
||||
PROFILE_DISABLE_BTLS=1
|
||||
MONO_FEATURE_APPLETLS=1
|
||||
ONLY_APPLETLS=1
|
||||
@@ -9,3 +9,6 @@ NO_THREAD_SUSPEND_RESUME=1
|
||||
NO_MULTIPLE_APPDOMAINS=1
|
||||
NO_PROCESS_START=1
|
||||
NO_MONO_SECURITY=1
|
||||
MONO_FEATURE_APPLETLS=
|
||||
ONLY_APPLETLS=
|
||||
MONO_FEATURE_APPLE_X509=1
|
||||
@@ -10,3 +10,6 @@ NO_THREAD_SUSPEND_RESUME=1
|
||||
# so we need a System.dll that can do that.
|
||||
#NO_PROCESS_START=1
|
||||
NO_MONO_SECURITY=1
|
||||
MONO_FEATURE_APPLETLS=
|
||||
ONLY_APPLETLS=
|
||||
MONO_FEATURE_APPLE_X509=1
|
||||
@@ -15,3 +15,4 @@ PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:NET_4_6 -d:MONO -d:WIN_PLATFORM -no
|
||||
|
||||
FRAMEWORK_VERSION = 4.5
|
||||
XBUILD_VERSION = 4.0
|
||||
MONO_FEATURE_APPLETLS=1
|
||||
@@ -21,7 +21,6 @@ PROFILE_MCS_FLAGS = \
|
||||
-d:NET_4_0 \
|
||||
-d:NET_4_5 \
|
||||
-d:MONO \
|
||||
-d:NETSTANDARD \
|
||||
-d:MOBILE,MOBILE_LEGACY \
|
||||
-d:FULL_AOT_DESKTOP \
|
||||
-d:FULL_AOT_RUNTIME \
|
||||
|
||||
@@ -21,7 +21,6 @@ PROFILE_MCS_FLAGS = \
|
||||
-d:NET_4_0 \
|
||||
-d:NET_4_5 \
|
||||
-d:MONO \
|
||||
-d:NETSTANDARD \
|
||||
-d:MOBILE,MOBILE_LEGACY \
|
||||
-d:FULL_AOT_DESKTOP \
|
||||
-d:FULL_AOT_RUNTIME \
|
||||
|
||||
@@ -23,7 +23,6 @@ PROFILE_MCS_FLAGS = \
|
||||
-d:NET_4_0 \
|
||||
-d:NET_4_5 \
|
||||
-d:MONO \
|
||||
-d:NETSTANDARD \
|
||||
-nowarn:1699 \
|
||||
-nostdlib \
|
||||
$(DEFAULT_REFERENCES) \
|
||||
|
||||
@@ -21,7 +21,6 @@ PROFILE_MCS_FLAGS = \
|
||||
-d:NET_4_0 \
|
||||
-d:NET_4_5 \
|
||||
-d:MONO \
|
||||
-d:NETSTANDARD \
|
||||
-d:MOBILE,MOBILE_LEGACY \
|
||||
-d:FULL_AOT_DESKTOP \
|
||||
-d:FULL_AOT_RUNTIME \
|
||||
|
||||
@@ -24,7 +24,6 @@ PROFILE_MCS_FLAGS = \
|
||||
-d:XAMMAC \
|
||||
-d:FEATURE_INTERCEPTABLE_THREADPOOL_CALLBACK \
|
||||
-d:XAMARIN_MODERN \
|
||||
-d:NETSTANDARD \
|
||||
-nowarn:1699 \
|
||||
-nostdlib \
|
||||
$(DEFAULT_REFERENCES) \
|
||||
@@ -39,3 +38,5 @@ MOBILE_PROFILE = yes
|
||||
NO_CONSOLE = yes
|
||||
|
||||
PROFILE_DISABLE_BTLS=1
|
||||
MONO_FEATURE_APPLETLS=1
|
||||
ONLY_APPLETLS=1
|
||||
@@ -18,5 +18,6 @@ NO_SYSTEM_DRAWING_DEPENDENCY=1
|
||||
NO_SYSTEM_SERVICEMODEL_ACTIVATION_DEPENDENCY=1
|
||||
NO_SYSTEM_DESIGN_DEPENDENCY=1
|
||||
NO_SYSTEM_DIRECTORY_SERVICES_DEPENDENCY=1
|
||||
|
||||
PROFILE_DISABLE_BTLS=1
|
||||
MONO_FEATURE_APPLETLS=1
|
||||
ONLY_APPLETLS=1
|
||||
@@ -20,8 +20,18 @@ TEST_RUNTIME_WRAPPERS_PATH = $(shell dirname $(RUNTIME))/_tmpinst/bin
|
||||
ifndef NO_TEST
|
||||
|
||||
test_nunit_lib = nunitlite.dll
|
||||
xunit_core := xunit.core xunit.abstractions xunit.assert
|
||||
xunit_deps := System.Runtime
|
||||
xunit_class_deps := Xunit.NetCore.Extensions
|
||||
|
||||
xunit_libs_ref = $(patsubst %,-r:$(topdir)/../external/xunit-binaries/%.dll,$(xunit_core))
|
||||
xunit_libs_ref += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/Facades/%.dll,$(xunit_deps))
|
||||
|
||||
xunit_libs_dep = $(xunit_class_deps:%=$(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)%.dll)
|
||||
xunit_libs_ref += $(xunit_libs_dep:%=-r:%)
|
||||
|
||||
TEST_LIB_MCS_FLAGS = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/%.dll,$(TEST_LIB_REFS))
|
||||
XTEST_LIB_MCS_FLAGS = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE)/%.dll,$(XTEST_LIB_REFS))
|
||||
|
||||
test_nunit_dep = $(test_nunit_lib:%=$(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)%)
|
||||
test_nunit_ref = $(test_nunit_dep:%=-r:%)
|
||||
@@ -34,6 +44,7 @@ test_sourcefile = $(ASSEMBLY:$(ASSEMBLY_EXT)=_test.dll.sources)
|
||||
endif
|
||||
|
||||
test_lib = $(PROFILE)_$(ASSEMBLY:$(ASSEMBLY_EXT)=_test.dll)
|
||||
|
||||
test_sourcefile_excludes = $(test_lib).exclude.sources
|
||||
|
||||
test_pdb = $(test_lib:.dll=.pdb)
|
||||
@@ -42,12 +53,26 @@ test_makefrag = $(depsdir)/$(test_lib).makefrag
|
||||
test_flags = -r:$(the_assembly) $(test_nunit_ref) $(TEST_MCS_FLAGS) $(TEST_LIB_MCS_FLAGS)
|
||||
tests_CLEAN_FILES += $(ASSEMBLY:$(ASSEMBLY_EXT)=_test*.dll) $(ASSEMBLY:$(ASSEMBLY_EXT)=_test*.pdb) $(test_response) $(test_makefrag)
|
||||
|
||||
xtest_sourcefile = $(PROFILE)_$(ASSEMBLY:$(ASSEMBLY_EXT)=_xtest.dll.sources)
|
||||
|
||||
ifeq ($(wildcard $(xtest_sourcefile)),)
|
||||
xtest_sourcefile = $(ASSEMBLY:$(ASSEMBLY_EXT)=_xtest.dll.sources)
|
||||
endif
|
||||
|
||||
xunit_test_lib = $(PROFILE)_$(ASSEMBLY:$(ASSEMBLY_EXT)=_xunit-test.dll)
|
||||
|
||||
xtest_response = $(depsdir)/$(xtest_lib).response
|
||||
xtest_makefrag = $(depsdir)/$(xtest_lib).makefrag
|
||||
xtest_flags = -r:$(the_assembly) $(xunit_libs_ref) $(XTEST_MCS_FLAGS) $(XTEST_LIB_MCS_FLAGS)
|
||||
|
||||
ifndef HAVE_CS_TESTS
|
||||
HAVE_CS_TESTS := $(wildcard $(test_sourcefile))
|
||||
endif
|
||||
|
||||
HAVE_SOURCE_EXCLUDES := $(wildcard $(test_sourcefile_excludes))
|
||||
|
||||
HAVE_CS_XTESTS := $(wildcard $(xtest_sourcefile))
|
||||
|
||||
endif # !NO_TEST
|
||||
|
||||
ifndef NO_TEST
|
||||
@@ -61,6 +86,10 @@ endif
|
||||
echo "stamp" >$@
|
||||
|
||||
tests_CLEAN_FILES += $(topdir)/build/deps/nunit-$(PROFILE).stamp
|
||||
|
||||
$(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)Xunit.NetCore.Extensions.dll:
|
||||
$(MAKE) -C $(topdir)/class/Xunit.NetCore.Extensions
|
||||
|
||||
endif
|
||||
|
||||
test_assemblies :=
|
||||
@@ -157,6 +186,57 @@ $(test_makefrag): $(test_response)
|
||||
|
||||
-include $(test_makefrag)
|
||||
|
||||
build-test-lib: $(test_lib)
|
||||
@echo Building testing lib
|
||||
|
||||
endif
|
||||
|
||||
|
||||
ifdef HAVE_CS_XTESTS
|
||||
|
||||
XTEST_HARNESS_PATH = $(topdir)/../external/xunit-binaries
|
||||
XTEST_HARNESS = $(XTEST_HARNESS_PATH)/xunit.console.exe
|
||||
XTEST_HARNESS_FLAGS := -noappdomain -noshadow -parallel none -nunit TestResult-$(PROFILE)-xunit.xml
|
||||
XTEST_TRAIT := -notrait category=failing -notrait category=nonnetcoreapptests -notrait Benchmark=true -notrait category=outerloop
|
||||
|
||||
ifdef FIXTURE
|
||||
XTEST_HARNESS_FLAGS += -class $(FIXTURE)
|
||||
endif
|
||||
|
||||
ifdef TESTNAME
|
||||
XTEST_HARNESS_FLAGS += -method $(TESTNAME)
|
||||
endif
|
||||
|
||||
check: run-xunit-test-local
|
||||
run-xunit-test: run-xunit-test-local
|
||||
xunit-test-local: $(xunit_test_lib)
|
||||
run-xunit-test-local: run-xunit-test-lib
|
||||
|
||||
# ln -s is a HACK for xunit runner to require xunit.execution.desktop.dll file in local folder on .net only
|
||||
run-xunit-test-lib: xunit-test-local
|
||||
@ln -fs $(XTEST_HARNESS_PATH)/xunit.execution.desktop.dll xunit.execution.desktop.dll
|
||||
ok=:; \
|
||||
PATH="$(TEST_RUNTIME_WRAPPERS_PATH):$(PATH)" $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(AOT_RUN_FLAGS) $(XTEST_HARNESS) $(xunit_test_lib) $(XTEST_HARNESS_FLAGS) $(XTEST_TRAIT) || ok=false; \
|
||||
$$ok
|
||||
@rm -f xunit.execution.desktop.dll
|
||||
|
||||
$(xunit_test_lib): $(the_assembly) $(xtest_response) $(xunit_libs_dep)
|
||||
$(TEST_COMPILE) $(LIBRARY_FLAGS) $(XTEST_LIB_FLAGS) -target:library -out:$@ $(xtest_flags) @$(xtest_response)
|
||||
|
||||
xtest_response_preprocessed = $(xtest_response)_preprocessed
|
||||
|
||||
# This handles .excludes/.sources pairs, as well as resolving the
|
||||
# includes that occur in .sources files
|
||||
$(xtest_response): $(xtest_sourcefile)
|
||||
$(SHELL) $(topdir)/build/gensources.sh $@ '$(xtest_sourcefile)' '$(xtest_sourcefile_excludes)'
|
||||
|
||||
$(xtest_makefrag): $(xtest_response)
|
||||
@echo Creating $@ ...
|
||||
@sed 's,^,$(xunit_test_lib): ,' $< >$@
|
||||
|
||||
-include $(xtest_makefrag)
|
||||
|
||||
endif
|
||||
|
||||
|
||||
.PHONY: patch-nunitlite-appconfig
|
||||
@@ -1,2 +1,3 @@
|
||||
/lib
|
||||
/compat/
|
||||
monolite-*.tar.gz
|
||||
@@ -55,9 +55,7 @@
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\..\..\external\corefx\src\System.Data.Common\src\System\Data\Common\DbColumn.cs" />
|
||||
<Compile Include="..\..\..\..\external\corefx\src\System.Data.Common\src\System\Data\Common\DbDataReaderExtensions.Facade.cs" />
|
||||
<Compile Include="..\..\..\..\external\corefx\src\System.Data.Common\src\System\Data\IColumnMappingCollection.cs" />
|
||||
<Compile Include="AssemblyInfo.cs" />
|
||||
<Compile Include="TypeForwarders.cs" />␍ </ItemGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
TypeForwarders.cs
|
||||
AssemblyInfo.cs
|
||||
|
||||
../../../../external/corefx/src/System.Data.Common/src/System/Data/IColumnMappingCollection.cs
|
||||
../../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbColumn.cs
|
||||
../../../../external/corefx/src/System.Data.Common/src/System/Data/Common/DbDataReaderExtensions.Facade.cs
|
||||
@@ -23,6 +23,7 @@
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.DBNull))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.CommandBehavior))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.CommandType))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.Common.DbColumn))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.Common.DbCommand))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.Common.DbConnection))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.Common.DbConnectionStringBuilder))]
|
||||
@@ -38,6 +39,7 @@
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.DataRowVersion))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.DataTable))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.DbType))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.IColumnMappingCollection))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.IDataParameter))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.IDataParameterCollection))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Data.IDataReader))]
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventChannel))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventCommand))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventCommandEventArgs))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventCounter))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventDataAttribute))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventFieldAttribute))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventFieldFormat))]
|
||||
@@ -44,7 +45,3 @@
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventTask))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventWrittenEventArgs))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.NonEventAttribute))]
|
||||
|
||||
#if NETSTANDARD
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Diagnostics.Tracing.EventCounter))]
|
||||
#endif
|
||||
@@ -38,16 +38,13 @@
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketInformationOptions))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketOptionLevel))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketOptionName))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketReceiveFromResult))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketReceiveMessageFromResult))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketShutdown))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketTaskExtensions))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketType))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.TcpClient))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.TcpListener))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.TransmitFileOptions))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.UdpClient))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.UdpReceiveResult))]
|
||||
|
||||
#if NETSTANDARD
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketReceiveFromResult))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketReceiveMessageFromResult))]
|
||||
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Sockets.SocketTaskExtensions))]
|
||||
#endif
|
||||
@@ -11,9 +11,11 @@ LIBRARY = netstandard.dll
|
||||
|
||||
KEY_FILE = ../../msfinal.pub
|
||||
SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) /nowarn:1616,1699 /nowarn:618
|
||||
LIB_REFS = System System.Xml System.Xml.Linq System.Runtime.Serialization System.Core System.Numerics System.Net.Http System.Transactions \
|
||||
LIB_REFS = System System.Xml System.Xml.Linq System.Runtime.Serialization System.Core System.Numerics System.Numerics.Vectors System.Net.Http System.Transactions \
|
||||
System.IO.Compression System.Data System.ComponentModel.Composition System.IO.Compression.FileSystem \
|
||||
Facades/System.Security.Cryptography.Algorithms
|
||||
Facades/System.Security.Cryptography.Algorithms Facades/System.Globalization.Extensions Facades/System.Data.Common \
|
||||
Facades/System.Diagnostics.StackTrace Facades/System.Runtime.Serialization.Xml Facades/System.Runtime.Serialization.Primitives \
|
||||
Facades/System.Security.SecureString Facades/System.Threading.Overlapped Facades/System.Xml.XPath.XDocument
|
||||
|
||||
ifeq (2.1, $(FRAMEWORK_VERSION))
|
||||
LIB_REFS += System.Web.Services
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
// dotnetcli\dotnet.exe Tools\GenAPI.exe -assembly:bin\ref\netstandard\2.0.0.0\netstandard.dll -writer:TypeForwards
|
||||
//
|
||||
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.SqlServer.Server.SqlDataRecord))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.SqlServer.Server.SqlMetaData))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.CriticalHandleMinusOneIsInvalid))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.CriticalHandleZeroOrMinusOneIsInvalid))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.SafeFileHandle))]
|
||||
@@ -216,6 +218,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(string))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparer))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringComparison))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringNormalizationExtensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.StringSplitOptions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.SystemException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ThreadStaticAttribute))]
|
||||
@@ -316,8 +319,8 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.ISet<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.KeyNotFoundException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.KeyValuePair<,>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.LinkedList<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.LinkedListNode<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.LinkedList<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.List<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.Queue<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.SortedDictionary<,>))]
|
||||
@@ -706,12 +709,14 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DataColumnMappingCollection))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DataTableMapping))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DataTableMappingCollection))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbColumn))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbCommand))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbCommandBuilder))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbConnection))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbConnectionStringBuilder))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbDataAdapter))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbDataReader))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbDataReaderExtensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbDataRecord))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbDataSourceEnumerator))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbEnumerator))]
|
||||
@@ -724,12 +729,34 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbProviderSpecificTypePropertyAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.DbTransaction))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.GroupByBehavior))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.IDbColumnSchemaGenerator))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.IdentifierCase))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.RowUpdatedEventArgs))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.RowUpdatingEventArgs))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.SchemaTableColumn))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.SchemaTableOptionalColumn))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.Common.SupportedJoinOperators))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.ApplicationIntent))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SortOrder))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlBulkCopy))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlBulkCopyColumnMapping))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlBulkCopyColumnMappingCollection))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlBulkCopyOptions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlClientFactory))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlCommand))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlConnection))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlConnectionStringBuilder))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlDataReader))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlError))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlErrorCollection))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlInfoMessageEventArgs))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlInfoMessageEventHandler))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlParameter))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlParameterCollection))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlRowsCopiedEventArgs))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlRowsCopiedEventHandler))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlClient.SqlTransaction))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.INullable))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlAlreadyFilledException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlBinary))]
|
||||
@@ -773,6 +800,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.DebuggerVisualizerAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.DefaultTraceListener))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.DelimitedListTraceListener))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.EventTypeFilter))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.FileVersionInfo))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.MonitoringDescriptionAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Process))]
|
||||
@@ -787,6 +815,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.SourceLevels))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.SourceSwitch))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.StackFrame))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.StackFrameExtensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.StackTrace))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Stopwatch))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.Switch))]
|
||||
@@ -905,6 +934,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.DaylightTime))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.DigitShapes))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.EastAsianLunisolarCalendar))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.GlobalizationExtensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.GregorianCalendar))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.GregorianCalendarTypes))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Globalization.HebrewCalendar))]
|
||||
@@ -1041,9 +1071,9 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.DynamicExpressionVisitor))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.ElementInit))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.Expression))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.Expression<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.ExpressionType))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.ExpressionVisitor))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.Expression<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.GotoExpression))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.GotoExpressionKind))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.IArgumentProvider))]
|
||||
@@ -1331,9 +1361,11 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Matrix4x4))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Plane))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Quaternion))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector2))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector3))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector4))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Numerics.Vector<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AmbiguousMatchException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.Assembly))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AssemblyAlgorithmIdAttribute))]
|
||||
@@ -1456,9 +1488,9 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallerLineNumberAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallerMemberNameAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSite))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSite<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSiteBinder))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSiteHelpers))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CallSite<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CompilationRelaxations))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CompilationRelaxationsAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute))]
|
||||
@@ -1610,8 +1642,8 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.VarEnum))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.VariantWrapper))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.ADVF))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.BIND_OPTS))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.BINDPTR))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.BIND_OPTS))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.CALLCONV))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.CONNECTDATA))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.DATADIR))]
|
||||
@@ -1671,6 +1703,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataContractAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataContractResolver))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataContractSerializer))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataContractSerializerExtensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataContractSerializerSettings))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataMemberAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DateTimeFormat))]
|
||||
@@ -1691,6 +1724,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ISafeSerializationData))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ISerializable))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ISerializationSurrogate))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ISerializationSurrogateProvider))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ISurrogateSelector))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.KnownTypeAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.ObjectIDGenerator))]
|
||||
@@ -1736,6 +1770,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.ISecurityEncodable))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.PartialTrustVisibilityLevel))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecureString))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecureStringMarshal))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityCriticalAttribute))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityCriticalScope))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.SecurityElement))]
|
||||
@@ -1767,6 +1802,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Claims.ClaimTypes))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Claims.ClaimValueTypes))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.Aes))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.AesCng))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.AesCryptoServiceProvider))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.AesManaged))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.AsnEncodedData))]
|
||||
@@ -1813,6 +1849,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ECCurve))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ECDiffieHellmanPublicKey))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ECDsa))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ECDsaCng))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ECParameters))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ECPoint))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.FromBase64Transform))]
|
||||
@@ -1875,6 +1912,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SymmetricAlgorithm))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.ToBase64Transform))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.TripleDES))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.TripleDESCng))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.TripleDESCryptoServiceProvider))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.ECDsaCertificateExtensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.OpenFlags))]
|
||||
@@ -1966,8 +2004,8 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AbandonedMutexException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ApartmentState))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AsyncFlowControl))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AsyncLocal<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AsyncLocalValueChangedArgs<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AsyncLocal<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.AutoResetEvent))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Barrier))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.BarrierPostPhaseException))]
|
||||
@@ -1996,6 +2034,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.NativeOverlapped))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Overlapped))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ParameterizedThreadStart))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.PreAllocatedOverlapped))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ReaderWriterLock))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ReaderWriterLockSlim))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.RegisteredWaitHandle))]
|
||||
@@ -2014,6 +2053,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadInterruptedException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadLocal<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadPool))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadPoolBoundHandle))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadPriority))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadStart))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.ThreadStartException))]
|
||||
@@ -2034,7 +2074,6 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.ParallelLoopState))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.ParallelOptions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Task))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Task<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskCanceledException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskCompletionSource<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskContinuationOptions))]
|
||||
@@ -2045,6 +2084,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskScheduler))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskSchedulerException))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.TaskStatus))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Task<>))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.UnobservedTaskExceptionEventArgs))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Timers.ElapsedEventArgs))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Timers.ElapsedEventHandler))]
|
||||
@@ -2350,6 +2390,7 @@
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlTypeMapping))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.Extensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.IXPathNavigable))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XDocumentExtensions))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XmlCaseOrder))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XmlDataType))]
|
||||
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.XPath.XmlSortOrder))]
|
||||
|
||||
+14
-2
@@ -2,6 +2,12 @@ thisdir = class
|
||||
|
||||
pcl_facade_dirs := Facades
|
||||
|
||||
-include ../build/config.make
|
||||
|
||||
ifdef MCS_MODE
|
||||
MCS_MODE_dirs := Mono.Cecil.Mdb
|
||||
endif
|
||||
|
||||
# The minimal set of csc dependencies
|
||||
basic_SUBDIRS := \
|
||||
corlib \
|
||||
@@ -14,6 +20,7 @@ basic_SUBDIRS := \
|
||||
System.Xml.Linq \
|
||||
System.Runtime.InteropServices.RuntimeInformation \
|
||||
Mono.Cecil \
|
||||
$(MCS_MODE_dirs) \
|
||||
../tools/cil-stringreplacer
|
||||
|
||||
# resgen is corlib specific so we need to wait until corlib is build
|
||||
@@ -33,12 +40,11 @@ build_SUBDIRS := \
|
||||
System.Runtime.InteropServices.RuntimeInformation \
|
||||
System.IO.Compression \
|
||||
Mono.Cecil \
|
||||
$(MCS_MODE_dirs) \
|
||||
Mono.CompilerServices.SymbolWriter \
|
||||
PEAPI \
|
||||
../tools/cil-stringreplacer
|
||||
|
||||
-include ../build/config.make
|
||||
|
||||
ifdef MCS_MODE
|
||||
basic_PARALLEL_SUBDIRS := ../mcs
|
||||
build_PARALLEL_SUBDIRS := ../mcs
|
||||
@@ -105,6 +111,7 @@ monodroid_dirs := \
|
||||
$(mobile_common_dirs) \
|
||||
Mono.CompilerServices.SymbolWriter \
|
||||
Mono.Btls.Interface \
|
||||
Mono.Posix \
|
||||
$(pcl_facade_dirs)
|
||||
|
||||
monotouch_dirs := \
|
||||
@@ -419,6 +426,11 @@ $(build_files:%=lib/build/%):
|
||||
|
||||
dist-monolite: $(monolite_files) lib/$(monolite_dir)/mcs.exe
|
||||
|
||||
package-monolite-latest:
|
||||
MONOLITE=monolite-$(MONO_CORLIB_VERSION)-latest; \
|
||||
$(MAKE) dist-monolite monolite_dir=$$MONOLITE; \
|
||||
tar zcvpf $$MONOLITE.tar.gz --directory=lib $$MONOLITE/
|
||||
|
||||
dist-default: dist-monolite
|
||||
|
||||
dist-local: dist-default
|
||||
|
||||
@@ -168,19 +168,19 @@ namespace Microsoft.Build.BuildEngine {
|
||||
yield return kvp.Value;
|
||||
}
|
||||
|
||||
public void RemoveProperty (BuildProperty propertyToRemove)
|
||||
public void RemoveProperty (BuildProperty property)
|
||||
{
|
||||
if (propertyToRemove == null)
|
||||
throw new ArgumentNullException ("propertyToRemove");
|
||||
if (property == null)
|
||||
throw new ArgumentNullException ("property");
|
||||
|
||||
if (FromXml) {
|
||||
if (!propertyToRemove.FromXml)
|
||||
if (!property.FromXml)
|
||||
throw new InvalidOperationException ("The specified property does not belong to the current property group.");
|
||||
|
||||
propertyToRemove.XmlElement.ParentNode.RemoveChild (propertyToRemove.XmlElement);
|
||||
properties.Remove (propertyToRemove);
|
||||
property.XmlElement.ParentNode.RemoveChild (property.XmlElement);
|
||||
properties.Remove (property);
|
||||
} else
|
||||
propertiesByName.Remove (propertyToRemove.Name);
|
||||
propertiesByName.Remove (property.Name);
|
||||
}
|
||||
|
||||
public void RemoveProperty (string propertyName)
|
||||
|
||||
@@ -296,14 +296,14 @@ namespace Microsoft.Build.BuildEngine
|
||||
return build_records.GetOrAdd (key, _ => new BuildRecord (this));
|
||||
}
|
||||
|
||||
public void BuildStartedHandler (object sender, BuildStartedEventArgs args)
|
||||
public void BuildStartedHandler (object sender, BuildStartedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).BuildStartedHandler (sender, args);
|
||||
GetBuildRecord (sender).BuildStartedHandler (sender, e);
|
||||
}
|
||||
|
||||
public void BuildFinishedHandler (object sender, BuildFinishedEventArgs args)
|
||||
public void BuildFinishedHandler (object sender, BuildFinishedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).BuildFinishedHandler (args);
|
||||
GetBuildRecord (sender).BuildFinishedHandler (e);
|
||||
((IDictionary) build_records).Remove (sender);
|
||||
}
|
||||
|
||||
@@ -315,47 +315,47 @@ namespace Microsoft.Build.BuildEngine
|
||||
{
|
||||
GetBuildRecord (sender).PopEvent (args);
|
||||
}
|
||||
public void ProjectStartedHandler (object sender, ProjectStartedEventArgs args)
|
||||
public void ProjectStartedHandler (object sender, ProjectStartedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).ProjectStartedHandler (args);
|
||||
GetBuildRecord (sender).ProjectStartedHandler (e);
|
||||
}
|
||||
public void ProjectFinishedHandler (object sender, ProjectFinishedEventArgs args)
|
||||
public void ProjectFinishedHandler (object sender, ProjectFinishedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).ProjectFinishedHandler (args);
|
||||
GetBuildRecord (sender).ProjectFinishedHandler (e);
|
||||
}
|
||||
public void TargetStartedHandler (object sender, TargetStartedEventArgs args)
|
||||
public void TargetStartedHandler (object sender, TargetStartedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).TargetStartedHandler (args);
|
||||
GetBuildRecord (sender).TargetStartedHandler (e);
|
||||
}
|
||||
public void TargetFinishedHandler (object sender, TargetFinishedEventArgs args)
|
||||
public void TargetFinishedHandler (object sender, TargetFinishedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).TargetFinishedHandler (args);
|
||||
GetBuildRecord (sender).TargetFinishedHandler (e);
|
||||
}
|
||||
public void TaskStartedHandler (object sender, TaskStartedEventArgs args)
|
||||
public void TaskStartedHandler (object sender, TaskStartedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).TaskStartedHandler (args);
|
||||
GetBuildRecord (sender).TaskStartedHandler (e);
|
||||
}
|
||||
public void TaskFinishedHandler (object sender, TaskFinishedEventArgs args)
|
||||
public void TaskFinishedHandler (object sender, TaskFinishedEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).TaskFinishedHandler (args);
|
||||
GetBuildRecord (sender).TaskFinishedHandler (e);
|
||||
}
|
||||
public void MessageHandler (object sender, BuildMessageEventArgs args)
|
||||
public void MessageHandler (object sender, BuildMessageEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).MessageHandler (args);
|
||||
GetBuildRecord (sender).MessageHandler (e);
|
||||
}
|
||||
public void WarningHandler (object sender, BuildWarningEventArgs args)
|
||||
public void WarningHandler (object sender, BuildWarningEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).WarningHandler (args);
|
||||
GetBuildRecord (sender).WarningHandler (e);
|
||||
}
|
||||
public void ErrorHandler (object sender, BuildErrorEventArgs args)
|
||||
public void ErrorHandler (object sender, BuildErrorEventArgs e)
|
||||
{
|
||||
GetBuildRecord (sender).ErrorHandler (args);
|
||||
GetBuildRecord (sender).ErrorHandler (e);
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public void CustomEventHandler (object sender, CustomBuildEventArgs args)
|
||||
public void CustomEventHandler (object sender, CustomBuildEventArgs e)
|
||||
{
|
||||
build_records [sender].CustomHandler (args);
|
||||
build_records [sender].CustomHandler (e);
|
||||
}
|
||||
|
||||
void SetColor (ConsoleColor color)
|
||||
|
||||
@@ -131,17 +131,17 @@ namespace Microsoft.Build.BuildEngine {
|
||||
}
|
||||
|
||||
[MonoTODO ("Not tested")]
|
||||
public void AddNewImport (string importLocation,
|
||||
string importCondition)
|
||||
public void AddNewImport (string projectFile,
|
||||
string condition)
|
||||
{
|
||||
if (importLocation == null)
|
||||
throw new ArgumentNullException ("importLocation");
|
||||
if (projectFile == null)
|
||||
throw new ArgumentNullException ("projectFile");
|
||||
|
||||
XmlElement importElement = xmlDocument.CreateElement ("Import", XmlNamespace);
|
||||
xmlDocument.DocumentElement.AppendChild (importElement);
|
||||
importElement.SetAttribute ("Project", importLocation);
|
||||
if (!String.IsNullOrEmpty (importCondition))
|
||||
importElement.SetAttribute ("Condition", importCondition);
|
||||
importElement.SetAttribute ("Project", projectFile);
|
||||
if (!String.IsNullOrEmpty (condition))
|
||||
importElement.SetAttribute ("Condition", condition);
|
||||
|
||||
AddImport (importElement, null, false);
|
||||
MarkProjectAsDirty ();
|
||||
@@ -506,9 +506,9 @@ namespace Microsoft.Build.BuildEngine {
|
||||
Load (projectFileName, ProjectLoadSettings.None);
|
||||
}
|
||||
|
||||
public void Load (string projectFileName, ProjectLoadSettings settings)
|
||||
public void Load (string projectFileName, ProjectLoadSettings projectLoadSettings)
|
||||
{
|
||||
project_load_settings = settings;
|
||||
project_load_settings = projectLoadSettings;
|
||||
if (String.IsNullOrEmpty (projectFileName))
|
||||
throw new ArgumentNullException ("projectFileName");
|
||||
|
||||
@@ -644,7 +644,7 @@ namespace Microsoft.Build.BuildEngine {
|
||||
|
||||
[MonoTODO]
|
||||
// NOTE: does not modify imported projects
|
||||
public void RemoveItemGroupsWithMatchingCondition (string matchingCondition)
|
||||
public void RemoveItemGroupsWithMatchingCondition (string matchCondition)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
@@ -697,9 +697,9 @@ namespace Microsoft.Build.BuildEngine {
|
||||
isDirty = false;
|
||||
}
|
||||
|
||||
public void Save (TextWriter outTextWriter)
|
||||
public void Save (TextWriter textWriter)
|
||||
{
|
||||
xmlDocument.Save (outTextWriter);
|
||||
xmlDocument.Save (textWriter);
|
||||
isDirty = false;
|
||||
}
|
||||
|
||||
@@ -733,12 +733,12 @@ namespace Microsoft.Build.BuildEngine {
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public void SetProjectExtensions (string id, string xmlText)
|
||||
public void SetProjectExtensions (string id, string content)
|
||||
{
|
||||
if (id == null)
|
||||
throw new ArgumentNullException ("id");
|
||||
if (xmlText == null)
|
||||
throw new ArgumentNullException ("xmlText");
|
||||
if (content == null)
|
||||
throw new ArgumentNullException ("content");
|
||||
|
||||
XmlNode projectExtensions, node;
|
||||
|
||||
@@ -749,7 +749,7 @@ namespace Microsoft.Build.BuildEngine {
|
||||
xmlDocument.DocumentElement.AppendChild (projectExtensions);
|
||||
|
||||
node = xmlDocument.CreateElement (id, XmlNamespace);
|
||||
node.InnerXml = xmlText;
|
||||
node.InnerXml = content;
|
||||
projectExtensions.AppendChild (node);
|
||||
} else {
|
||||
node = xmlDocument.SelectSingleNode (String.Format ("/tns:Project/tns:ProjectExtensions/tns:{0}", id), XmlNamespaceManager);
|
||||
@@ -759,7 +759,7 @@ namespace Microsoft.Build.BuildEngine {
|
||||
projectExtensions.AppendChild (node);
|
||||
}
|
||||
|
||||
node.InnerXml = xmlText;
|
||||
node.InnerXml = content;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -111,11 +111,11 @@ namespace Microsoft.Build.BuildEngine {
|
||||
}
|
||||
|
||||
// FIXME: shouldn't we remove it from XML?
|
||||
public void RemoveTask (BuildTask buildTask)
|
||||
public void RemoveTask (BuildTask taskElement)
|
||||
{
|
||||
if (buildTask == null)
|
||||
throw new ArgumentNullException ("buildTask");
|
||||
buildTasks.Remove (buildTask);
|
||||
if (taskElement == null)
|
||||
throw new ArgumentNullException ("taskElement");
|
||||
buildTasks.Remove (taskElement);
|
||||
}
|
||||
|
||||
bool Build ()
|
||||
|
||||
@@ -45,9 +45,9 @@ namespace Microsoft.Build.Construction
|
||||
get { return Line == 0 ? File : String.Format ("{0} ({1}{2})", File, Line, Column != 0 ? "," + Column : String.Empty); }
|
||||
}
|
||||
|
||||
public override bool Equals (object other)
|
||||
public override bool Equals (object obj)
|
||||
{
|
||||
var o = other as ElementLocation;
|
||||
var o = obj as ElementLocation;
|
||||
return (object) o != null && o.File == File && o.Line == Line && o.Column == Column;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,27 +79,27 @@ namespace Microsoft.Build.Evaluation
|
||||
+ "{data.Items.Count} #Targets={data.Targets.Count}")]
|
||||
public class Project
|
||||
{
|
||||
public Project (XmlReader xml)
|
||||
: this (ProjectRootElement.Create (xml))
|
||||
public Project (XmlReader xmlReader)
|
||||
: this (ProjectRootElement.Create (xmlReader))
|
||||
{
|
||||
}
|
||||
|
||||
public Project (XmlReader xml, IDictionary<string, string> globalProperties,
|
||||
public Project (XmlReader xmlReader, IDictionary<string, string> globalProperties,
|
||||
string toolsVersion)
|
||||
: this (ProjectRootElement.Create (xml), globalProperties, toolsVersion)
|
||||
: this (ProjectRootElement.Create (xmlReader), globalProperties, toolsVersion)
|
||||
{
|
||||
}
|
||||
|
||||
public Project (XmlReader xml, IDictionary<string, string> globalProperties,
|
||||
public Project (XmlReader xmlReader, IDictionary<string, string> globalProperties,
|
||||
string toolsVersion, ProjectCollection projectCollection)
|
||||
: this (ProjectRootElement.Create (xml), globalProperties, toolsVersion, projectCollection)
|
||||
: this (ProjectRootElement.Create (xmlReader), globalProperties, toolsVersion, projectCollection)
|
||||
{
|
||||
}
|
||||
|
||||
public Project (XmlReader xml, IDictionary<string, string> globalProperties,
|
||||
public Project (XmlReader xmlReader, IDictionary<string, string> globalProperties,
|
||||
string toolsVersion, ProjectCollection projectCollection,
|
||||
ProjectLoadSettings loadSettings)
|
||||
: this (ProjectRootElement.Create (xml), globalProperties, toolsVersion, projectCollection, loadSettings)
|
||||
: this (ProjectRootElement.Create (xmlReader), globalProperties, toolsVersion, projectCollection, loadSettings)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -49,15 +49,15 @@ namespace Microsoft.Build.Evaluation
|
||||
{
|
||||
public class ProjectCollection : IDisposable
|
||||
{
|
||||
public delegate void ProjectAddedEventHandler (object target, ProjectAddedToProjectCollectionEventArgs args);
|
||||
public delegate void ProjectAddedEventHandler (object sender, ProjectAddedToProjectCollectionEventArgs e);
|
||||
|
||||
public class ProjectAddedToProjectCollectionEventArgs : EventArgs
|
||||
{
|
||||
public ProjectAddedToProjectCollectionEventArgs (ProjectRootElement project)
|
||||
public ProjectAddedToProjectCollectionEventArgs (ProjectRootElement element)
|
||||
{
|
||||
if (project == null)
|
||||
if (element == null)
|
||||
throw new ArgumentNullException ("project");
|
||||
ProjectRootElement = project;
|
||||
ProjectRootElement = element;
|
||||
}
|
||||
|
||||
public ProjectRootElement ProjectRootElement { get; private set; }
|
||||
@@ -98,8 +98,8 @@ namespace Microsoft.Build.Evaluation
|
||||
{
|
||||
}
|
||||
|
||||
public ProjectCollection (ToolsetDefinitionLocations toolsetDefinitionLocations)
|
||||
: this (null, null, toolsetDefinitionLocations)
|
||||
public ProjectCollection (ToolsetDefinitionLocations toolsetLocations)
|
||||
: this (null, null, toolsetLocations)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -4,8 +4,10 @@ include ../../build/rules.make
|
||||
|
||||
LIBRARY = Microsoft.CSharp.dll
|
||||
|
||||
LIB_REFS = System.Core Mono.CSharp
|
||||
LIB_REFS = System.Core System
|
||||
LIB_MCS_FLAGS =
|
||||
|
||||
RESX_RESOURCE_STRING = ../../../external/corefx/src/Microsoft.CSharp/src/Resources/Strings.resx
|
||||
|
||||
include ../../build/library.make
|
||||
|
||||
@@ -49,29 +49,201 @@
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Binder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\BinderHelper.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpArgumentInfo.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpArgumentInfoFlags.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpBinaryOperationFlags.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpBinderFlags.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpCallFlags.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpConversionKind.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpConvertBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpGetIndexBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpGetMemberBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpInvokeBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpInvokeConstructorBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpInvokeMemberBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpIsEventBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpSetIndexBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpSetMemberBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\CSharpUnaryOperationBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Error.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\CController.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\CError.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\CErrorFactory.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\CParameterizedError.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\ErrorCode.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\ErrorFacts.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\ErrorFmt.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\IErrorSink.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\MessageID.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\ICSharpInvokeOrInvokeMemberBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\ResetBindException.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\RuntimeBinderController.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\RuntimeBinderException.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\RuntimeBinderInternalCompilerException.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Binding\ErrorReporting.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\BindingContextBase.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\BindingContexts.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\BindingFlag.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\BinOpArgInfo.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\BinOpKind.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\BinOpSig.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\CandidateFunctionMember.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ConstVal.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ConstValFactory.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Conversions.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Declarations\AggregateDeclaration.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Declarations\Declaration.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Declarations\GlobalAttributeDeclaration.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Declarations\NamespaceDeclaration.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionKind.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\EXPRExtensions.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\EXPRFLAG.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\FileRecord.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\FundamentalTypes.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\GlobalSymbolContext.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinderResult.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\InputFile.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\ITypeOrNamespace.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\LangCompiler.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookupResults.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\MetadataToken.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\MethodKind.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\NameGenerator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\NullableLift.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\OriginalExpressions.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedAttributes.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\SubstitutionContext.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\AggregateSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\AssemblyQualifiedNamespaceSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\EventSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\FieldSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\IndexerSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\LabelSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\LocalVariableSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MiscSymFactory.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\NamespaceOrAggregateSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\NamespaceSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\ParentSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\PropertySymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\Scope.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\Symbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolKind.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolManagerBase.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolMask.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolTable.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymFactory.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymFactoryBase.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\TransparentIdentifierMemberSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\TypeParameterSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\UnresolvedAggregateSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\VariableSymbol.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ArrayIndex.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ArrayInitialization.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ArrayLength.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Assignment.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\BinaryOperator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Block.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\BoundAnonymousFunction.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Call.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Cast.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Class.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\CompoundOperator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Concatenate.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ConditionalOperator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Constant.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Event.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\EXPR.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ExpressionIterator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Field.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\FieldInfo.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\HoistedLocal.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\List.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\LocalVariable.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MemberGroup.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodReference.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\NamedArgumentSpecification.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Property.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Return.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Statement.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Temporary.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\This.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\TypeArguments.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\TypeOf.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\TypeOrNamespace.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\UnaryOperator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\UnboundAnonymousFunction.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\UserDefinedConversion.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\UserDefinedLogicalOperator.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExprVisitorBase.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Tree\ZeroInitialize.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\ArgumentListType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\ArrayType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\BoundLambdaType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\ErrorType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\MethodGroupType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\OpenTypePlaceholderType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\ParameterModifierType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\PointerType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\Type.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeFactory.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeKind.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeParameterType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\Types\VoidType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\UnaOpSig.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\UtilityTypeExtensions.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\SpecialNames.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\SymbolTable.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\KnownName.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\NameManager.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\Names.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\NameTable.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\Operators.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\PredefinedName.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\PredefinedType.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\TokenFacts.cs" />
|
||||
<Compile Include="..\..\..\external\corefx\src\Microsoft.CSharp\src\Microsoft\CSharp\RuntimeBinder\Syntax\TokenKind.cs" />
|
||||
<Compile Include="..\..\build\common\Consts.cs" />
|
||||
<Compile Include="..\..\build\common\SR.cs" />
|
||||
<Compile Include="Assembly\AssemblyInfo.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\Binder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpArgumentInfo.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpArgumentInfoFlags.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpBinaryOperationBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpBinderFlags.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpConvertBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpGetIndexBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpGetMemberBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpInvokeBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpInvokeConstructorBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpInvokeMemberBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpIsEventBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpSetIndexBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpSetMemberBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\CSharpUnaryOperationBinder.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\DynamicContext.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\ErrorPrinter.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\Extensions.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\RuntimeBinderContext.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\RuntimeBinderException.cs" />
|
||||
<Compile Include="Microsoft.CSharp.RuntimeBinder\RuntimeBinderInternalCompilerException.cs" />␍ </ItemGroup>
|
||||
<Compile Include="corefx\SR.cs" />␍ </ItemGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
@@ -102,9 +274,9 @@
|
||||
<Project>{359142A1-D80F-401E-AA64-7167C9317649}</Project>
|
||||
<Name>System.Core-net_4_x</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="../Mono.CSharp/Mono.CSharp-net_4_x.csproj">
|
||||
<Project>{BEFCA993-98B4-48E9-8D68-1ACCB1FA7200}</Project>
|
||||
<Name>Mono.CSharp-net_4_x</Name>
|
||||
<ProjectReference Include="../System/System-net_4_x.csproj">
|
||||
<Project>{2762E921-91A8-4C87-91E9-BA628013F753}</Project>
|
||||
<Name>System-net_4_x</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
//
|
||||
// Binder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
public static class Binder
|
||||
{
|
||||
public static CallSiteBinder BinaryOperation (CSharpBinderFlags flags, ExpressionType operation, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpBinaryOperationBinder (operation, flags, context, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder Convert (CSharpBinderFlags flags, Type type, Type context)
|
||||
{
|
||||
return new CSharpConvertBinder (type, context, flags);
|
||||
}
|
||||
|
||||
public static CallSiteBinder GetIndex (CSharpBinderFlags flags, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpGetIndexBinder (context, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder GetMember (CSharpBinderFlags flags, string name, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpGetMemberBinder (name, context, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder Invoke (CSharpBinderFlags flags, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpInvokeBinder (flags, context, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder InvokeConstructor (CSharpBinderFlags flags, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
// What are flags for here
|
||||
return new CSharpInvokeConstructorBinder (context, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder InvokeMember (CSharpBinderFlags flags, string name, IEnumerable<Type> typeArguments, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpInvokeMemberBinder (flags, name, context, typeArguments, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder IsEvent (CSharpBinderFlags flags, string name, Type context)
|
||||
{
|
||||
return new CSharpIsEventBinder (name, context);
|
||||
}
|
||||
|
||||
public static CallSiteBinder SetIndex (CSharpBinderFlags flags, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpSetIndexBinder (flags, context, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder SetMember (CSharpBinderFlags flags, string name, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpSetMemberBinder (flags, name, context, argumentInfo);
|
||||
}
|
||||
|
||||
public static CallSiteBinder UnaryOperation (CSharpBinderFlags flags, ExpressionType operation, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
return new CSharpUnaryOperationBinder (operation, flags, context, argumentInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
//
|
||||
// CSharpArgumentInfo.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
public sealed class CSharpArgumentInfo
|
||||
{
|
||||
readonly CSharpArgumentInfoFlags flags;
|
||||
readonly string name;
|
||||
|
||||
CSharpArgumentInfo (CSharpArgumentInfoFlags flags, string name)
|
||||
{
|
||||
this.flags = flags;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static CSharpArgumentInfo Create (CSharpArgumentInfoFlags flags, string name)
|
||||
{
|
||||
return new CSharpArgumentInfo (flags, name);
|
||||
}
|
||||
|
||||
internal Compiler.Argument.AType ArgumentModifier {
|
||||
get {
|
||||
if ((flags & CSharpArgumentInfoFlags.IsRef) != 0)
|
||||
return Compiler.Argument.AType.Ref;
|
||||
|
||||
if ((flags & CSharpArgumentInfoFlags.IsOut) != 0)
|
||||
return Compiler.Argument.AType.Out;
|
||||
|
||||
return Compiler.Argument.AType.None;
|
||||
}
|
||||
}
|
||||
|
||||
internal static CallInfo CreateCallInfo (IEnumerable<CSharpArgumentInfo> argumentInfo, int skipCount)
|
||||
{
|
||||
var named = from arg in argumentInfo.Skip (skipCount) where arg.IsNamed select arg.name;
|
||||
return new CallInfo (Math.Max (0, argumentInfo.Count () - skipCount), named);
|
||||
}
|
||||
|
||||
internal CSharpArgumentInfoFlags Flags {
|
||||
get { return flags; }
|
||||
}
|
||||
|
||||
internal bool IsNamed {
|
||||
get { return (flags & CSharpArgumentInfoFlags.NamedArgument) != 0; }
|
||||
}
|
||||
|
||||
internal string Name {
|
||||
get { return name; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
//
|
||||
// CSharpArgumentInfoFlags.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
[Flags]
|
||||
public enum CSharpArgumentInfoFlags
|
||||
{
|
||||
None = 0,
|
||||
UseCompileTimeType = 1,
|
||||
Constant = 2,
|
||||
NamedArgument = 4,
|
||||
IsRef = 8,
|
||||
IsOut = 16,
|
||||
IsStaticType = 32
|
||||
}
|
||||
}
|
||||
-160
@@ -1,160 +0,0 @@
|
||||
//
|
||||
// CSharpBinaryOperationBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpBinaryOperationBinder : BinaryOperationBinder
|
||||
{
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
readonly CSharpBinderFlags flags;
|
||||
readonly Type context;
|
||||
|
||||
public CSharpBinaryOperationBinder (ExpressionType operation, CSharpBinderFlags flags, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (operation)
|
||||
{
|
||||
this.argumentInfo = new ReadOnlyCollectionBuilder<CSharpArgumentInfo> (argumentInfo);
|
||||
if (this.argumentInfo.Count != 2)
|
||||
throw new ArgumentException ("Binary operation requires 2 arguments");
|
||||
|
||||
this.flags = flags;
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
Compiler.Binary.Operator GetOperator (out bool isCompound)
|
||||
{
|
||||
isCompound = false;
|
||||
switch (Operation) {
|
||||
case ExpressionType.Add:
|
||||
return Compiler.Binary.Operator.Addition;
|
||||
case ExpressionType.AddAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.Addition;
|
||||
case ExpressionType.And:
|
||||
return (flags & CSharpBinderFlags.BinaryOperationLogical) != 0 ?
|
||||
Compiler.Binary.Operator.LogicalAnd : Compiler.Binary.Operator.BitwiseAnd;
|
||||
case ExpressionType.AndAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.BitwiseAnd;
|
||||
case ExpressionType.Divide:
|
||||
return Compiler.Binary.Operator.Division;
|
||||
case ExpressionType.DivideAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.Division;
|
||||
case ExpressionType.Equal:
|
||||
return Compiler.Binary.Operator.Equality;
|
||||
case ExpressionType.ExclusiveOr:
|
||||
return Compiler.Binary.Operator.ExclusiveOr;
|
||||
case ExpressionType.ExclusiveOrAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.ExclusiveOr;
|
||||
case ExpressionType.GreaterThan:
|
||||
return Compiler.Binary.Operator.GreaterThan;
|
||||
case ExpressionType.GreaterThanOrEqual:
|
||||
return Compiler.Binary.Operator.GreaterThanOrEqual;
|
||||
case ExpressionType.LeftShift:
|
||||
return Compiler.Binary.Operator.LeftShift;
|
||||
case ExpressionType.LeftShiftAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.LeftShift;
|
||||
case ExpressionType.LessThan:
|
||||
return Compiler.Binary.Operator.LessThan;
|
||||
case ExpressionType.LessThanOrEqual:
|
||||
return Compiler.Binary.Operator.LessThanOrEqual;
|
||||
case ExpressionType.Modulo:
|
||||
return Compiler.Binary.Operator.Modulus;
|
||||
case ExpressionType.ModuloAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.Modulus;
|
||||
case ExpressionType.Multiply:
|
||||
return Compiler.Binary.Operator.Multiply;
|
||||
case ExpressionType.MultiplyAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.Multiply;
|
||||
case ExpressionType.NotEqual:
|
||||
return Compiler.Binary.Operator.Inequality;
|
||||
case ExpressionType.Or:
|
||||
return (flags & CSharpBinderFlags.BinaryOperationLogical) != 0 ?
|
||||
Compiler.Binary.Operator.LogicalOr : Compiler.Binary.Operator.BitwiseOr;
|
||||
case ExpressionType.OrAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.BitwiseOr;
|
||||
case ExpressionType.OrElse:
|
||||
return Compiler.Binary.Operator.LogicalOr;
|
||||
case ExpressionType.RightShift:
|
||||
return Compiler.Binary.Operator.RightShift;
|
||||
case ExpressionType.RightShiftAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.RightShift;
|
||||
case ExpressionType.Subtract:
|
||||
return Compiler.Binary.Operator.Subtraction;
|
||||
case ExpressionType.SubtractAssign:
|
||||
isCompound = true;
|
||||
return Compiler.Binary.Operator.Subtraction;
|
||||
default:
|
||||
throw new NotImplementedException (Operation.ToString ());
|
||||
}
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackBinaryOperation (DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
var left = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
var right = ctx.CreateCompilerExpression (argumentInfo [1], arg);
|
||||
|
||||
bool is_compound;
|
||||
var oper = GetOperator (out is_compound);
|
||||
Compiler.Expression expr;
|
||||
|
||||
if (is_compound) {
|
||||
var target_expr = new Compiler.RuntimeValueExpression (target, ctx.ImportType (target.LimitType));
|
||||
expr = new Compiler.CompoundAssign (oper, target_expr, right, left);
|
||||
} else {
|
||||
expr = new Compiler.Binary (oper, left, right);
|
||||
}
|
||||
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
|
||||
if ((flags & CSharpBinderFlags.CheckedContext) != 0)
|
||||
expr = new Compiler.CheckedExpr (expr, Compiler.Location.Null);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
binder.AddRestrictions (arg);
|
||||
|
||||
return binder.Bind (ctx, context);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,128 +0,0 @@
|
||||
//
|
||||
// CSharpBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Linq.Expressions;
|
||||
using Compiler = Mono.CSharp;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpBinder
|
||||
{
|
||||
static ConstructorInfo binder_exception_ctor;
|
||||
static object resolver = new object ();
|
||||
|
||||
DynamicMetaObjectBinder binder;
|
||||
Compiler.Expression expr;
|
||||
BindingRestrictions restrictions;
|
||||
DynamicMetaObject errorSuggestion;
|
||||
|
||||
public CSharpBinder (DynamicMetaObjectBinder binder, Compiler.Expression expr, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
this.binder = binder;
|
||||
this.expr = expr;
|
||||
this.restrictions = BindingRestrictions.Empty;
|
||||
this.errorSuggestion = errorSuggestion;
|
||||
}
|
||||
|
||||
public Compiler.ResolveContext.Options ResolveOptions { get; set; }
|
||||
|
||||
public void AddRestrictions (DynamicMetaObject arg)
|
||||
{
|
||||
restrictions = restrictions.Merge (CreateRestrictionsOnTarget (arg));
|
||||
}
|
||||
|
||||
public void AddRestrictions (DynamicMetaObject[] args)
|
||||
{
|
||||
restrictions = restrictions.Merge (CreateRestrictionsOnTarget (args));
|
||||
}
|
||||
|
||||
public DynamicMetaObject Bind (DynamicContext ctx, Type callingType)
|
||||
{
|
||||
Expression res;
|
||||
try {
|
||||
var rc = new Compiler.ResolveContext (new RuntimeBinderContext (ctx, callingType), ResolveOptions);
|
||||
|
||||
// Static typemanager and internal caches are not thread-safe
|
||||
lock (resolver) {
|
||||
expr = expr.Resolve (rc, Compiler.ResolveFlags.VariableOrValue);
|
||||
}
|
||||
|
||||
if (expr == null)
|
||||
throw new RuntimeBinderInternalCompilerException ("Expression resolved to null");
|
||||
|
||||
res = expr.MakeExpression (new Compiler.BuilderContext ());
|
||||
} catch (RuntimeBinderException e) {
|
||||
if (errorSuggestion != null)
|
||||
return errorSuggestion;
|
||||
|
||||
res = CreateBinderException (e.Message);
|
||||
} catch (Exception) {
|
||||
if (errorSuggestion != null)
|
||||
return errorSuggestion;
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
return new DynamicMetaObject (res, restrictions);
|
||||
}
|
||||
|
||||
Expression CreateBinderException (string message)
|
||||
{
|
||||
if (binder_exception_ctor == null)
|
||||
binder_exception_ctor = typeof (RuntimeBinderException).GetConstructor (new[] { typeof (string) });
|
||||
|
||||
//
|
||||
// Uses target type to keep expressions composition working
|
||||
//
|
||||
return Expression.Throw (Expression.New (binder_exception_ctor, Expression.Constant (message)), binder.ReturnType);
|
||||
}
|
||||
|
||||
static BindingRestrictions CreateRestrictionsOnTarget (DynamicMetaObject arg)
|
||||
{
|
||||
return arg.HasValue && arg.Value == null ?
|
||||
BindingRestrictions.GetInstanceRestriction (arg.Expression, null) :
|
||||
BindingRestrictions.GetTypeRestriction (arg.Expression, arg.LimitType);
|
||||
}
|
||||
|
||||
public static BindingRestrictions CreateRestrictionsOnTarget (DynamicMetaObject[] args)
|
||||
{
|
||||
if (args.Length == 0)
|
||||
return BindingRestrictions.Empty;
|
||||
|
||||
var res = CreateRestrictionsOnTarget (args[0]);
|
||||
for (int i = 1; i < args.Length; ++i)
|
||||
res = res.Merge (CreateRestrictionsOnTarget (args[i]));
|
||||
|
||||
return res;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
//
|
||||
// CSharpBinderFlags.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
[Flags]
|
||||
public enum CSharpBinderFlags
|
||||
{
|
||||
None = 0,
|
||||
CheckedContext = 1,
|
||||
InvokeSimpleName = 1 << 1,
|
||||
InvokeSpecialName = 1 << 2,
|
||||
BinaryOperationLogical = 1 << 3,
|
||||
ConvertExplicit = 1 << 4,
|
||||
ConvertArrayIndex = 1 << 5,
|
||||
ResultIndexed = 1 << 6,
|
||||
ValueFromCompoundAssignment = 1 << 7,
|
||||
ResultDiscarded = 1 << 8
|
||||
}
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
//
|
||||
// CSharpConvertBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpConvertBinder : ConvertBinder
|
||||
{
|
||||
readonly CSharpBinderFlags flags;
|
||||
readonly Type context;
|
||||
|
||||
public CSharpConvertBinder (Type type, Type context, CSharpBinderFlags flags)
|
||||
: base (type, (flags & CSharpBinderFlags.ConvertExplicit) != 0)
|
||||
{
|
||||
this.flags = flags;
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackConvert (DynamicMetaObject target, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
var expr = ctx.CreateCompilerExpression (null, target);
|
||||
|
||||
if (Explicit)
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (Type), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
else
|
||||
expr = new Compiler.ImplicitCast (expr, ctx.ImportType (Type), (flags & CSharpBinderFlags.ConvertArrayIndex) != 0);
|
||||
|
||||
if ((flags & CSharpBinderFlags.CheckedContext) != 0)
|
||||
expr = new Compiler.CheckedExpr (expr, Compiler.Location.Null);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
|
||||
return binder.Bind (ctx, context);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
//
|
||||
// CSharpGetIndexBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpGetIndexBinder : GetIndexBinder
|
||||
{
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
Type callingContext;
|
||||
|
||||
public CSharpGetIndexBinder (Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (CSharpArgumentInfo.CreateCallInfo (argumentInfo, 1))
|
||||
{
|
||||
this.callingContext = callingContext;
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackGetIndex (DynamicMetaObject target, DynamicMetaObject[] indexes, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
if (argumentInfo.Count != indexes.Length + 1) {
|
||||
if (errorSuggestion == null)
|
||||
throw new NotImplementedException ();
|
||||
|
||||
return errorSuggestion;
|
||||
}
|
||||
|
||||
var ctx = DynamicContext.Create ();
|
||||
var expr = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
var args = ctx.CreateCompilerArguments (argumentInfo.Skip (1), indexes);
|
||||
expr = new Compiler.ElementAccess (expr, args, Compiler.Location.Null);
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
binder.AddRestrictions (indexes);
|
||||
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
//
|
||||
// CSharpGetMemberBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpGetMemberBinder : GetMemberBinder
|
||||
{
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
Type callingContext;
|
||||
|
||||
public CSharpGetMemberBinder (string name, Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (name, false)
|
||||
{
|
||||
this.callingContext = callingContext;
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackGetMember (DynamicMetaObject target, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
|
||||
var expr = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
expr = new Compiler.MemberAccess (expr, Name);
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
//
|
||||
// CSharpInvokeBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpInvokeBinder : InvokeBinder
|
||||
{
|
||||
readonly CSharpBinderFlags flags;
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
Type callingContext;
|
||||
|
||||
public CSharpInvokeBinder (CSharpBinderFlags flags, Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (CSharpArgumentInfo.CreateCallInfo (argumentInfo, 1))
|
||||
{
|
||||
this.flags = flags;
|
||||
this.callingContext = callingContext;
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackInvoke (DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
var expr = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
var c_args = ctx.CreateCompilerArguments (argumentInfo.Skip (1), args);
|
||||
expr = new Compiler.Invocation (expr, c_args);
|
||||
|
||||
if ((flags & CSharpBinderFlags.ResultDiscarded) == 0)
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
else
|
||||
expr = new Compiler.DynamicResultCast (ctx.ImportType (ReturnType), expr);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
binder.AddRestrictions (args);
|
||||
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
-73
@@ -1,73 +0,0 @@
|
||||
//
|
||||
// CSharpInvokeConstructorBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpInvokeConstructorBinder : DynamicMetaObjectBinder
|
||||
{
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
Type callingContext;
|
||||
Type target_return_type;
|
||||
|
||||
public CSharpInvokeConstructorBinder (Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
{
|
||||
this.callingContext = callingContext;
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
}
|
||||
|
||||
public override DynamicMetaObject Bind (DynamicMetaObject target, DynamicMetaObject[] args)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
|
||||
var type = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
target_return_type = type.Type.GetMetaInfo ();
|
||||
|
||||
var c_args = ctx.CreateCompilerArguments (argumentInfo.Skip (1), args);
|
||||
|
||||
var binder = new CSharpBinder (
|
||||
this, new Compiler.New (type, c_args, Compiler.Location.Null), null);
|
||||
|
||||
binder.AddRestrictions (target);
|
||||
binder.AddRestrictions (args);
|
||||
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
|
||||
public override Type ReturnType {
|
||||
get {
|
||||
return target_return_type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
-194
@@ -1,194 +0,0 @@
|
||||
//
|
||||
// CSharpInvokeMemberBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
using SLE = System.Linq.Expressions;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpInvokeMemberBinder : InvokeMemberBinder
|
||||
{
|
||||
//
|
||||
// A custom runtime invocation is needed to deal with member invocation which
|
||||
// is not real member invocation but invocation on invocalble member.
|
||||
//
|
||||
// An example:
|
||||
// class C {
|
||||
// dynamic f;
|
||||
// void Foo ()
|
||||
// {
|
||||
// dynamic d = new C ();
|
||||
// d.f.M ();
|
||||
// }
|
||||
//
|
||||
// The runtime value of `f' can be a delegate in which case we are invoking result
|
||||
// of member invocation, this is already handled by DoResolveDynamic but we need
|
||||
// more runtime dependencies which require Microsoft.CSharp assembly reference or
|
||||
// a lot of reflection calls
|
||||
//
|
||||
class Invocation : Compiler.Invocation
|
||||
{
|
||||
sealed class RuntimeDynamicInvocation : Compiler.ShimExpression
|
||||
{
|
||||
Invocation invoke;
|
||||
|
||||
public RuntimeDynamicInvocation (Invocation invoke, Compiler.Expression memberExpr)
|
||||
: base (memberExpr)
|
||||
{
|
||||
this.invoke = invoke;
|
||||
}
|
||||
|
||||
protected override Compiler.Expression DoResolve (Compiler.ResolveContext rc)
|
||||
{
|
||||
type = expr.Type;
|
||||
eclass = Compiler.ExprClass.Value;
|
||||
return this;
|
||||
}
|
||||
|
||||
//
|
||||
// Creates an invoke call on invocable expression
|
||||
//
|
||||
public override System.Linq.Expressions.Expression MakeExpression (Compiler.BuilderContext ctx)
|
||||
{
|
||||
var invokeBinder = invoke.invokeBinder;
|
||||
var binder = Binder.Invoke (invokeBinder.flags, invokeBinder.callingContext, invokeBinder.argumentInfo);
|
||||
|
||||
var args = invoke.Arguments;
|
||||
var args_expr = new SLE.Expression[invokeBinder.argumentInfo.Count];
|
||||
|
||||
var types = new Type [args_expr.Length + 2];
|
||||
|
||||
// Required by MakeDynamic
|
||||
types[0] = typeof (System.Runtime.CompilerServices.CallSite);
|
||||
types[1] = expr.Type.GetMetaInfo ();
|
||||
|
||||
args_expr[0] = expr.MakeExpression (ctx);
|
||||
|
||||
for (int i = 0; i < args.Count; ++i) {
|
||||
args_expr[i + 1] = args[i].Expr.MakeExpression (ctx);
|
||||
|
||||
int type_index = i + 2;
|
||||
types[type_index] = args[i].Type.GetMetaInfo ();
|
||||
if (args[i].IsByRef)
|
||||
types[type_index] = types[type_index].MakeByRefType ();
|
||||
}
|
||||
|
||||
// Return type goes last
|
||||
bool void_result = (invokeBinder.flags & CSharpBinderFlags.ResultDiscarded) != 0;
|
||||
types[types.Length - 1] = void_result ? typeof (void) : invokeBinder.ReturnType;
|
||||
|
||||
//
|
||||
// Much easier to use Expression.Dynamic cannot be used because it ignores ByRef arguments
|
||||
// and it always generates either Func or Action and any value type argument is lost
|
||||
//
|
||||
Type delegateType = SLE.Expression.GetDelegateType (types);
|
||||
return SLE.Expression.MakeDynamic (delegateType, binder, args_expr);
|
||||
}
|
||||
}
|
||||
|
||||
readonly CSharpInvokeMemberBinder invokeBinder;
|
||||
|
||||
public Invocation (Compiler.Expression expr, Compiler.Arguments arguments, CSharpInvokeMemberBinder invokeBinder)
|
||||
: base (expr, arguments)
|
||||
{
|
||||
this.invokeBinder = invokeBinder;
|
||||
}
|
||||
|
||||
protected override Compiler.Expression DoResolveDynamic (Compiler.ResolveContext ec, Compiler.Expression memberExpr)
|
||||
{
|
||||
return new RuntimeDynamicInvocation (this, memberExpr).Resolve (ec);
|
||||
}
|
||||
}
|
||||
|
||||
readonly CSharpBinderFlags flags;
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
IList<Type> typeArguments;
|
||||
Type callingContext;
|
||||
|
||||
public CSharpInvokeMemberBinder (CSharpBinderFlags flags, string name, Type callingContext, IEnumerable<Type> typeArguments, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (name, false, CSharpArgumentInfo.CreateCallInfo (argumentInfo, 1))
|
||||
{
|
||||
this.flags = flags;
|
||||
this.callingContext = callingContext;
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
this.typeArguments = typeArguments.ToReadOnly ();
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackInvoke (DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var b = new CSharpInvokeBinder (flags, callingContext, argumentInfo);
|
||||
|
||||
// TODO: Is errorSuggestion ever used?
|
||||
return b.Defer (target, args);
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackInvokeMember (DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
var c_args = ctx.CreateCompilerArguments (argumentInfo.Skip (1), args);
|
||||
var t_args = typeArguments == null ?
|
||||
null :
|
||||
new Compiler.TypeArguments (typeArguments.Select (l => new Compiler.TypeExpression (ctx.ImportType (l), Compiler.Location.Null)).ToArray ());
|
||||
|
||||
var expr = ctx.CreateCompilerExpression (argumentInfo[0], target);
|
||||
|
||||
//
|
||||
// Simple name invocation is actually member access invocation
|
||||
// to capture original this argument. This brings problem when
|
||||
// simple name is resolved as a static invocation and member access
|
||||
// has to be reduced back to simple name without reporting an error
|
||||
//
|
||||
if ((flags & CSharpBinderFlags.InvokeSimpleName) != 0) {
|
||||
var value = expr as Compiler.RuntimeValueExpression;
|
||||
if (value != null)
|
||||
value.IsSuggestionOnly = true;
|
||||
}
|
||||
|
||||
expr = new Compiler.MemberAccess (expr, Name, t_args, Compiler.Location.Null);
|
||||
expr = new Invocation (expr, c_args, this);
|
||||
|
||||
if ((flags & CSharpBinderFlags.ResultDiscarded) == 0)
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
else
|
||||
expr = new Compiler.DynamicResultCast (ctx.ImportType (ReturnType), expr);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
binder.AddRestrictions (args);
|
||||
|
||||
if ((flags & CSharpBinderFlags.InvokeSpecialName) != 0)
|
||||
binder.ResolveOptions |= Compiler.ResolveContext.Options.InvokeSpecialName;
|
||||
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
//
|
||||
// CSharpIsEventBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpIsEventBinder : DynamicMetaObjectBinder
|
||||
{
|
||||
Type callingContext;
|
||||
string name;
|
||||
|
||||
public CSharpIsEventBinder (string name, Type callingContext)
|
||||
{
|
||||
this.name = name;
|
||||
this.callingContext = callingContext;
|
||||
}
|
||||
|
||||
public override DynamicMetaObject Bind (DynamicMetaObject target, DynamicMetaObject[] args)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
var context_type = ctx.ImportType (callingContext);
|
||||
var queried_type = ctx.ImportType (target.LimitType);
|
||||
var rc = new Compiler.ResolveContext (new RuntimeBinderContext (ctx, context_type), 0);
|
||||
|
||||
var expr = Compiler.Expression.MemberLookup (rc, false, queried_type,
|
||||
name, 0, Compiler.Expression.MemberLookupRestrictions.ExactArity, Compiler.Location.Null);
|
||||
|
||||
var binder = new CSharpBinder (
|
||||
this, new Compiler.BoolConstant (ctx.CompilerContext.BuiltinTypes, expr is Compiler.EventExpr, Compiler.Location.Null), null);
|
||||
|
||||
binder.AddRestrictions (target);
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
|
||||
public override Type ReturnType {
|
||||
get {
|
||||
return typeof (bool);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
//
|
||||
// CSharpSetIndexBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpSetIndexBinder : SetIndexBinder
|
||||
{
|
||||
readonly CSharpBinderFlags flags;
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
Type callingContext;
|
||||
|
||||
public CSharpSetIndexBinder (CSharpBinderFlags flags, Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (CSharpArgumentInfo.CreateCallInfo (argumentInfo, 2))
|
||||
{
|
||||
this.flags = flags;
|
||||
this.callingContext = callingContext;
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackSetIndex (DynamicMetaObject target, DynamicMetaObject[] indexes, DynamicMetaObject value, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
if (argumentInfo.Count != indexes.Length + 2) {
|
||||
if (errorSuggestion == null)
|
||||
throw new NotImplementedException ();
|
||||
|
||||
return errorSuggestion;
|
||||
}
|
||||
|
||||
var ctx = DynamicContext.Create ();
|
||||
var expr = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
var args = ctx.CreateCompilerArguments (argumentInfo.Skip (1), indexes);
|
||||
expr = new Compiler.ElementAccess (expr, args, Compiler.Location.Null);
|
||||
|
||||
var source = ctx.CreateCompilerExpression (argumentInfo [indexes.Length + 1], value);
|
||||
|
||||
// Same conversion as in SetMemberBinder
|
||||
if ((flags & CSharpBinderFlags.ValueFromCompoundAssignment) != 0) {
|
||||
expr = new Compiler.RuntimeExplicitAssign (expr, source);
|
||||
} else {
|
||||
expr = new Compiler.SimpleAssign (expr, source);
|
||||
}
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
|
||||
if ((flags & CSharpBinderFlags.CheckedContext) != 0)
|
||||
expr = new Compiler.CheckedExpr (expr, Compiler.Location.Null);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
binder.AddRestrictions (value);
|
||||
binder.AddRestrictions (indexes);
|
||||
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
//
|
||||
// CSharpSetMemberBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpSetMemberBinder : SetMemberBinder
|
||||
{
|
||||
readonly CSharpBinderFlags flags;
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
Type callingContext;
|
||||
|
||||
public CSharpSetMemberBinder (CSharpBinderFlags flags, string name, Type callingContext, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (name, false)
|
||||
{
|
||||
this.flags = flags;
|
||||
this.callingContext = callingContext;
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackSetMember (DynamicMetaObject target, DynamicMetaObject value, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
var source = ctx.CreateCompilerExpression (argumentInfo [1], value);
|
||||
var expr = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
|
||||
// Field assignment
|
||||
expr = new Compiler.MemberAccess (expr, Name);
|
||||
|
||||
// Compound assignment under dynamic context does not convert result
|
||||
// expression but when setting member type we need to do explicit
|
||||
// conversion to ensure type match between member type and dynamic
|
||||
// expression type
|
||||
if ((flags & CSharpBinderFlags.ValueFromCompoundAssignment) != 0) {
|
||||
expr = new Compiler.RuntimeExplicitAssign (expr, source);
|
||||
} else {
|
||||
expr = new Compiler.SimpleAssign (expr, source);
|
||||
}
|
||||
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
|
||||
if ((flags & CSharpBinderFlags.CheckedContext) != 0)
|
||||
expr = new Compiler.CheckedExpr (expr, Compiler.Location.Null);
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
binder.AddRestrictions (value);
|
||||
|
||||
return binder.Bind (ctx, callingContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
-101
@@ -1,101 +0,0 @@
|
||||
//
|
||||
// CSharpUnaryOperationBinder.cs
|
||||
//
|
||||
// Authors:
|
||||
// Marek Safar <[email protected]>
|
||||
//
|
||||
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Dynamic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using Compiler = Mono.CSharp;
|
||||
|
||||
namespace Microsoft.CSharp.RuntimeBinder
|
||||
{
|
||||
class CSharpUnaryOperationBinder : UnaryOperationBinder
|
||||
{
|
||||
IList<CSharpArgumentInfo> argumentInfo;
|
||||
readonly CSharpBinderFlags flags;
|
||||
readonly Type context;
|
||||
|
||||
public CSharpUnaryOperationBinder (ExpressionType operation, CSharpBinderFlags flags, Type context, IEnumerable<CSharpArgumentInfo> argumentInfo)
|
||||
: base (operation)
|
||||
{
|
||||
this.argumentInfo = argumentInfo.ToReadOnly ();
|
||||
if (this.argumentInfo.Count != 1)
|
||||
throw new ArgumentException ("Unary operation requires 1 argument");
|
||||
|
||||
this.flags = flags;
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
|
||||
Compiler.Unary.Operator GetOperator ()
|
||||
{
|
||||
switch (Operation) {
|
||||
case ExpressionType.Negate:
|
||||
return Compiler.Unary.Operator.UnaryNegation;
|
||||
case ExpressionType.Not:
|
||||
return Compiler.Unary.Operator.LogicalNot;
|
||||
case ExpressionType.OnesComplement:
|
||||
return Compiler.Unary.Operator.OnesComplement;
|
||||
case ExpressionType.UnaryPlus:
|
||||
return Compiler.Unary.Operator.UnaryPlus;
|
||||
default:
|
||||
throw new NotImplementedException (Operation.ToString ());
|
||||
}
|
||||
}
|
||||
|
||||
public override DynamicMetaObject FallbackUnaryOperation (DynamicMetaObject target, DynamicMetaObject errorSuggestion)
|
||||
{
|
||||
var ctx = DynamicContext.Create ();
|
||||
var expr = ctx.CreateCompilerExpression (argumentInfo [0], target);
|
||||
|
||||
if (Operation == ExpressionType.IsTrue) {
|
||||
expr = new Compiler.BooleanExpression (expr);
|
||||
} else if (Operation == ExpressionType.IsFalse) {
|
||||
expr = new Compiler.BooleanExpressionFalse (expr);
|
||||
} else {
|
||||
if (Operation == ExpressionType.Increment)
|
||||
expr = new Compiler.UnaryMutator (Compiler.UnaryMutator.Mode.PreIncrement, expr, Compiler.Location.Null);
|
||||
else if (Operation == ExpressionType.Decrement)
|
||||
expr = new Compiler.UnaryMutator (Compiler.UnaryMutator.Mode.PreDecrement, expr, Compiler.Location.Null);
|
||||
else
|
||||
expr = new Compiler.Unary (GetOperator (), expr, Compiler.Location.Null);
|
||||
|
||||
expr = new Compiler.Cast (new Compiler.TypeExpression (ctx.ImportType (ReturnType), Compiler.Location.Null), expr, Compiler.Location.Null);
|
||||
|
||||
if ((flags & CSharpBinderFlags.CheckedContext) != 0)
|
||||
expr = new Compiler.CheckedExpr (expr, Compiler.Location.Null);
|
||||
}
|
||||
|
||||
var binder = new CSharpBinder (this, expr, errorSuggestion);
|
||||
binder.AddRestrictions (target);
|
||||
|
||||
return binder.Bind (ctx, context);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loaded 100 of 1670 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user