Daniel Grunwald
27978f44c7
Add 'allowOptionalParameters' flag to MGRR.PerformOverloadResolution.
13 years ago
Daniel Grunwald
80ba1b3dba
Always set ArrayCreateResolveResult.SizeArguments. Closes #111 .
13 years ago
Daniel Grunwald
79db6fe54c
Change ISupportsInterning so that objects are interned immediately after they are created.
...
This lets us get rid of the hidden mutation due to interning; ISupportsInterning objects can now be truly immutable.
13 years ago
Daniel Grunwald
31474555b2
Avoid looking for inner classes when resolving a class constraint.
13 years ago
Daniel Grunwald
16aa0c6c28
Rename IParsedFile -> IUnresolvedFile to make clear it belongs to the unresolved type system.
13 years ago
Erik Källén
703889298e
Ensure that named argument instances are unique for dynamic invocations.
13 years ago
Daniel Grunwald
273178a141
Rename CompilationUnit to SyntaxTree.
13 years ago
Daniel Grunwald
d6b4420940
Introduced NamedArgumentResolveResult.
13 years ago
Daniel Grunwald
60607bcc65
Fix icsharpcode/NRefactory#86 : method declaration with attributes fails to resolve since 2926e24
.
13 years ago
Daniel Grunwald
b65637108b
Implemented C# cref parser.
13 years ago
Daniel Grunwald
93e2def893
Fix #75 : conversion between delegate types
13 years ago
Daniel Grunwald
459a2ef9f5
Fixed bug resolving indexer parameter declarations (was introduced with #66 [ 9476183
]).
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
Erik Källén
9476183889
Fix for the parameter identity in accessors issue.
13 years ago
Daniel Grunwald
731ddf7c39
Add ConversionResolveResult.CheckForOverflow
13 years ago
Simon Lindgren
e60567ab86
[Resolver] Give the value parameter a domregion close to the setter or adder.
...
Previously the value parameters were given the start and end location (0, 0) which was problematic for the
FindReferences class which uses this information to decide if two variables are the same when finding references.
13 years ago
Daniel Grunwald
180ed85c85
Implemented IUnresolvedMember.Resolve().
13 years ago
Daniel Grunwald
282d3c3423
Fix icsharpcode/NRefactory#32 : ResolveResult for anonymous type creation
13 years ago
Daniel Grunwald
4d07b33b44
CSharpAstResolver now can resolve type members even when no parsedFile is specified.
...
This is useful for analyzing generated code that does not have accurate StartLocation/EndLocation assigned.
13 years ago
Mike Krüger
1ade7c4996
[Resolver] Fixed using statement.
13 years ago
Daniel Grunwald
4fe7c72b16
Fixed context for determining accessibility of protected inner classes when resolving a base type reference (NameLookupTests.InheritFromProtectedInnerClassTest)
13 years ago
Mike Krüger
063d0f569c
Renamed named expression identifier -> name.
13 years ago
Mike Krüger
5dbe3654f5
[Ast] Renamed named argument expression identifier -> name.
13 years ago
Mike Krüger
0cbca24882
Added whitespace and text node.
...
They are needed anyways, now the ast should be theretically round-trip
complete.
13 years ago
Mike Krüger
c7e1236c5a
Added NewLine ast node.
13 years ago
Daniel Grunwald
d4dd1648e8
Implemented the new options for overridden members in FindReferences.
14 years ago
Daniel Grunwald
eab8372365
Fixed resolver crash when resolving the arguments of an ObjectCreateExpression with unresolved type (e.g. due to missing using).
14 years ago
mike
29da952623
Fixed some warnings.
14 years ago
Daniel Grunwald
d338acc553
Fix icsharpcode/NRefactory#18 : ResolveResult for object creation
14 years ago
Daniel Grunwald
ab024b9ddc
Fix icsharpcode/NRefactory#28 : Identity of lambda parameters
...
Revert change regarding TypeDeclaration.ClassType; using derived nested classes / factory methods is inconsistent API with all other AST nodes.
If we want to save that bit of memory, we could store ClassType in the flags instead (there's about 20 bits free), although I think it won't matter since TypeDeclaration is a relatively rare node.
14 years ago
Daniel Grunwald
df380b6055
Fixed potential cause of CSharpAstResolver.Resolve returning null.
14 years ago
Daniel Grunwald
e80f142381
Fixed bug in CSharpAstResolver.GetExpectedType().
14 years ago
Mike Krüger
6a0a96ce31
Moved some roles to the Roles class.
14 years ago
Mike Krüger
90bf204c7f
Moved the roles class out of AstNode.
14 years ago
Daniel Grunwald
b491ea85c3
Rename Conversions to CSharpConversions.
14 years ago
Daniel Grunwald
cf331bb4af
Fixed resolving partial method definitions.
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
mike
b13dad1436
Resolve visitor change: If the type of an object create expression
...
can't be resolved give back the type resolution failure.
This is required to tell why the object creation couldn't be resolved.
14 years ago
Daniel Grunwald
a353f23d70
Combine AttributedNode and MemberDeclaration into EntityDeclaration.
14 years ago
Daniel Grunwald
2f859148f0
Use simpler IAstVisitor for ResolveVisitor.
14 years ago
Daniel Grunwald
2bebee46a1
C# XML documentation support.
14 years ago
Mike Krüger
de6870b067
Fixed completion unit test.
14 years ago
Daniel Grunwald
cfe807ab73
Fix "find references" for method group conversions in delegate creation expressions "new Action(MyMethod)"
14 years ago
Daniel Grunwald
a7245affe6
Fixed finding references to method group conversions.
14 years ago
Daniel Grunwald
311df2bbb2
CSharpAstResolver: add cancellation support
14 years ago
Daniel Grunwald
46254b3b0d
Add support for resolving "operator true".
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
67d19127f5
Fixed bug in reachability analysis when lambda/anonymous method contains a condition or switch statement.
14 years ago