Daniel Grunwald
ee5d87a0f8
Add year to license headers.
13 years ago
Daniel Grunwald
4324311718
Use IMember.Specialize() instead of 'new SpecializedMember()', and remove unnecessary upcasts.
13 years ago
Erik Källén
4c1dbb9adc
Added information about built-in conversions before and after a user-defined conversion operator is applied
13 years ago
Erik Källén
867dc8b407
Improved handling of sizeof(x)
...
Resolving sizeof(x) will now return a specialized ResolveResult that contains information about which type's size is investigated. Also fixed a bug that caused sizeof() to not work when initializing fields. Also made sizeof(SomeEnum) resolve to the size of the underlying type which is illegal according to the spec, but mcs allows it.
13 years ago
Erik Källén
f186d27cc9
Return a CSharpInvocationResolveResult with the type overridden with Dynamic instead of a converted invocation
13 years ago
Daniel Grunwald
c1b2b13b5d
Ambiguous conversions don't cause overload resolution to pick a different overload.
13 years ago
Mike Krüger
fab565a92d
[Resolver] Local resolve result no longer returns a constant value for
...
parameters.
Even if the parameters have a default value it's wrong to assume that
this is always the default value. See the unreachable code issue test.
13 years ago
Daniel Grunwald
59cc439a30
Added delegate compatibility check to method-group conversions.
13 years ago
Daniel Grunwald
80ba1b3dba
Always set ArrayCreateResolveResult.SizeArguments. Closes #111 .
13 years ago
Mike Krüger
3acaf5eca2
[Semantic] Handled default parameter value conversion in default
...
unresolved parameter.
13 years ago
Mike Krüger
2733a83a79
[Semantics] ConversionResolveResult: For nullable conversions return
...
the constant value of the input resolve result. IMHO ConstantValue ==
null is an error for example for int? i = 1; case. The constant value
should be '1' there.
13 years ago
Daniel Grunwald
d6b4420940
Introduced NamedArgumentResolveResult.
13 years ago
Erik Källén
f3d13eebdf
Added property Conversion.IsConstantExpressionConversion
13 years ago
Daniel Grunwald
13dce76d36
Add Conversion.IsNullLiteralConversion ( icsharpcode/NRefactory#59 )
13 years ago
Daniel Grunwald
ed0e4c5197
Fixed conversions from "dynamic" - these only exist from expressions, not from the type (this was causing subtle issues with type inference).
13 years ago
Daniel Grunwald
77283dc2f1
Merge minor changes from SharpDevelop repository (mostly additional documentation for ResolveResults).
13 years ago
Daniel Grunwald
585ae50c2f
CSharpAstResolver: don't return the same ResolveResult for two different nodes.
...
(make clones when using caches)
Closes icsharpcode/NRefactory#46 .
13 years ago
Siegfried Pammer
a9d876904b
Implemented CSharpResolver.ResolveConditionFalse() for resolving operator false() calls.
...
Add message to ErrorResolveResult.
Expose CSharpOutputVisitor.PrintPrimitiveValue and CSharpConversions.IsImplicitReferenceConversion/IsBoxingConversion.
13 years ago
Daniel Grunwald
731ddf7c39
Add ConversionResolveResult.CheckForOverflow
13 years ago
Daniel Grunwald
d4dd1648e8
Implemented the new options for overridden members in FindReferences.
14 years ago
Daniel Grunwald
d338acc553
Fix icsharpcode/NRefactory#18 : ResolveResult for object creation
14 years ago
Daniel Grunwald
47d7d5adea
Fix icsharpcode/NRefactory#29 : NullReferenceException when using FindReferencedEntities navigator
14 years ago
Daniel Grunwald
fe8e098a27
Fixed some FxCop warnings.
14 years ago
Daniel Grunwald
3e7244197c
Fix icsharpcode/NRefactory#16 : Resolve the GetEnumerator call inside a foreach
14 years ago
Daniel Grunwald
fb0dbc9bee
Fix icsharpcode/NRefactory#17 : Resolving "is" and "as" expressions loses the semantics
14 years ago
Daniel Grunwald
77ea4dae30
Report more types of invalid equality comparisons as errors.
...
Mark an anonymous function conversion as invalid if there are compiler errors in the implicitly typed lambda.
14 years ago
Daniel Grunwald
822fda7e36
Handle T[] -> T* and string -> char* conversions in fixed statement initializers.
14 years ago
Daniel Grunwald
942b4f70ef
Move ConversionResoleResult to ICSharpCode.NRefactory.Semantics.
...
Boxing conversion for attribute arguments is now used consistently in C# type system and Cecil-loaded type system.
14 years ago
Daniel Grunwald
9af3c040f2
Fixed resolving compound assignment operators.
14 years ago
Daniel Grunwald
f410a2b5d5
Enum members are implicitly cast to the underlying type when used in an enum member initializer.
14 years ago
Daniel Grunwald
4d4f1f42b7
Fixed various resolver bugs.
14 years ago
Daniel Grunwald
9d7c018fb2
Adjusted C# resolver to refactored type system.
14 years ago
Daniel Grunwald
c02e801b5d
Introduce ResolvedUsingScope (serves as cache per using-scope; avoids resolving imported namespaces repeatedly).
14 years ago
Daniel Grunwald
f631199013
Type system refactoring: split unresolved/resolved type systems.
14 years ago
Mike Krüger
e96dbbd777
Added 'UnknownTypeResolveResult'.
...
Makes it easier to implement the 'add missing namespace import'
function.
14 years ago
Daniel Grunwald
9ddf9bc442
Combine C#-specific UnaryOperatorResolveResult/BinaryOperatorResolveResult and ConditionalOperatorResolveResult classes into a single language-independent OperatorResolveResult class.
14 years ago
Daniel Grunwald
dfc98609ce
Move ICSharpCode.Editor into NRefactory.
14 years ago
Daniel Grunwald
b5b2408cbc
Move NRefactory.CSharp to separate assembly.
14 years ago
Daniel Grunwald
e37dc4b6c7
Move ResolveResults to NR.Semantics
14 years ago