2009-06-12 Bill Holmes <billholmes54@gmail.com>
[mono.git] / mcs / class / System.Data.Linq / src / DbLinq / Data / Linq / Sugar / ExpressionPrecedence.cs
1 #region MIT license\r
2 // \r
3 // MIT license\r
4 //\r
5 // Copyright (c) 2007-2008 Jiri Moudry, Pascal Craponne\r
6 // \r
7 // Permission is hereby granted, free of charge, to any person obtaining a copy\r
8 // of this software and associated documentation files (the "Software"), to deal\r
9 // in the Software without restriction, including without limitation the rights\r
10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
11 // copies of the Software, and to permit persons to whom the Software is\r
12 // furnished to do so, subject to the following conditions:\r
13 // \r
14 // The above copyright notice and this permission notice shall be included in\r
15 // all copies or substantial portions of the Software.\r
16 // \r
17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
23 // THE SOFTWARE.\r
24 // \r
25 #endregion\r
26 \r
27 #if MONO_STRICT\r
28 namespace System.Data.Linq.Sugar\r
29 #else\r
30 namespace DbLinq.Data.Linq.Sugar\r
31 #endif\r
32 {\r
33     internal enum ExpressionPrecedence\r
34     {\r
35         /// <summary>\r
36         /// x.y  f(x)  a[x]  x++  x--  new typeof  checked  unchecked\r
37         /// </summary>\r
38         Primary,\r
39         /// <summary>\r
40         /// +  -  !  ~  ++x  --x  (T)x\r
41         /// </summary>\r
42         Unary,\r
43         /// <summary>\r
44         /// *  /  %\r
45         /// </summary>\r
46         Multiplicative,\r
47         /// <summary>\r
48         /// +  -\r
49         /// </summary>\r
50         Additive,\r
51         /// <summary>\r
52         /// &lt;&lt;  >>\r
53         /// </summary>\r
54         Shift,\r
55         /// <summary>\r
56         /// &lt;  >  &lt;=  >=  is  as\r
57         /// </summary>\r
58         RelationalAndTypeTest,\r
59         /// <summary>\r
60         /// ==  !=\r
61         /// </summary>\r
62         Equality,\r
63         /// <summary>\r
64         /// &amp;\r
65         /// </summary>\r
66         LogicalAnd,\r
67         /// <summary>\r
68         /// ^\r
69         /// </summary>\r
70         LogicalXor,\r
71         /// <summary>\r
72         /// |\r
73         /// </summary>\r
74         LogicalOr,\r
75         /// <summary>\r
76         /// &amp;&amp,\r
77         /// </summary>\r
78         ConditionalAnd,\r
79         /// <summary>\r
80         /// ||\r
81         /// </summary>\r
82         ConditionalOr,\r
83         /// <summary>\r
84         /// ??\r
85         /// </summary>\r
86         NullCoalescing,\r
87         /// <summary>\r
88         /// ?:\r
89         /// </summary>\r
90         Conditional,\r
91         /// <summary>\r
92         /// =  *=  /=  %=  +=  -=  <<=  >>=  &=  ^=  |=\r
93         /// </summary>\r
94         Assignment,\r
95 \r
96         /// <summary>\r
97         /// A SQL clause, FROM, WHERE, etc.\r
98         /// </summary>\r
99         Clause\r
100     }\r
101 }