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
Daniel Grunwald
f159810013
Remove unresolved references from new Alias*ResolveResult.
13 years ago
Mike Krüger
11aa873815
Added alias resolve results that allows it to handle aliases more
...
easily. (for example showing them in the text editor UI or tooltips)
13 years ago
Mike Krüger
ecc15dde9a
Fixed bug in type system conversion (interface members can shadow
...
other members) & implement interface action bug.
13 years ago
Daniel Grunwald
6d0f3fb02e
Add "add using" context action.
...
The unit tests are based on pull request #104 by Adam Connelly
13 years ago
Daniel Grunwald
72ee6eb22f
Copy over some fixes from SD5.
13 years ago
Mike Krüger
eaad50e8be
[TypeSystem] Added C# style async modifier to methods.
13 years ago
Daniel Grunwald
47a47016f3
Add support for empty namespaces in the C# type system.
13 years ago
Daniel Grunwald
80ba1b3dba
Always set ArrayCreateResolveResult.SizeArguments. Closes #111 .
13 years ago
Daniel Grunwald
f558b300e7
Revert "[AST] Handled protected and/or internal on AST level."
...
"protected internal" and "internal protected" are the same thing in C#.
Both map to ProtectedOrInternal; the ProtectedAndInternal accessibility is
not usable from C#.
This reverts commit b5ad2882ca
.
13 years ago
Mike Krüger
b5ad2882ca
[AST] Handled protected and/or internal on AST level.
13 years ago
Daniel Grunwald
d01a22564a
Implement ICompilationProvider in a few more places where we have the compilation available.
13 years ago
Daniel Grunwald
b37698b39b
ICompilation.Import(IType): added support for importing open generic types
...
Renamed 'IResolved' to 'ICompilationProvider'.
13 years ago
Daniel Grunwald
5670248de8
Add 'FullTypeName' struct, and use it to represent type names.
...
Contains some breaking API changes:
- Renamed 'FullNameAndTypeParameterCount' to 'TopLevelTypeName'.
- IAssembly.GetTypeDefinition(string, string, int) -> IAssembly.GetTypeDefinition(TopLevelTypeName)
- IAssembly.GetTypeDefinition(IUnresolvedTypeDefinition) -> IAssembly.GetTypeDefinition(FullTypeName)
- GetClassTypeReference now supports nested types
13 years ago
Daniel Grunwald
6682aa6f92
NRefactory changes from SharpDevelop: add IDocument.FileName and IAssembly.FullAssemblyName,
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
d0bed831ae
Add a mechanism to the FastSerializer that allows us to invalidate cached project contents when fixing a bug in one of the type system loaders.
13 years ago
Daniel Grunwald
31474555b2
Avoid looking for inner classes when resolving a class constraint.
13 years ago
Daniel Grunwald
e2eef883e1
Add 'HasBody' property to IMethod. Closes #100 .
13 years ago
erikkallen
5b29f2b292
Fixed issue with duplicate using directives.
13 years ago
Daniel Grunwald
16aa0c6c28
Rename IParsedFile -> IUnresolvedFile to make clear it belongs to the unresolved type system.
13 years ago
Daniel Grunwald
273178a141
Rename CompilationUnit to SyntaxTree.
13 years ago
Daniel Grunwald
60607bcc65
Fix icsharpcode/NRefactory#86 : method declaration with attributes fails to resolve since 2926e24
.
13 years ago
Daniel Grunwald
2926e24dcf
C# type system convert visitor: do not include attributes in IEntity.Region
13 years ago
Daniel Grunwald
a3534f250d
Add INamespace.ContributingAssemblies.
13 years ago
Daniel Grunwald
b65637108b
Implemented C# cref parser.
13 years ago
Daniel Grunwald
806869e563
Add IType.GetAccessors().
...
Accessors now use EntityType.Accessor instead of EntityType.Method.
Added accessors support to DefaultMemberReference and ExplicitInterfaceImplementationMemberReference.
Removed hacky code from CecilLoader - we now allow IsExplicitInterfaceImplementation=true on accessors.
13 years ago
erikkallen
da0feac286
Another one of those x.IsOverride = y.IsOverridable issues.
13 years ago
erikkallen
8431aa0039
Fixed bugs with events: 1) Assignment of IsOverride to IsOverridable, and 2) AccessorOwner not being set for auto-events.
13 years ago
erikkallen
a2a0975eaa
Fixes IsOverridable flag for accessors
13 years ago
Daniel Grunwald
a77fa3103a
Add IMethod.AccessorOwner.
13 years ago
Daniel Grunwald
180ed85c85
Implemented IUnresolvedMember.Resolve().
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
57d4bd48d0
[TypeSystem] UsingScope now uses as operator for casts.
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
Daniel Grunwald
c06cfeda6e
Fix icsharpcode/NRefactory#42 : const IField returns IsStatic=false
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
Daniel Grunwald
444fe4ebf7
Make IParsedFile.LastWriteTime nullable.
...
Replace IAXmlVisitor interface with AXmlVisitor abstract base class.
14 years ago
Daniel Grunwald
e213758ec7
Replace LazyInit.ReadBarrier() with LazyInit.VolatileRead().
14 years ago
Mike Krüger
c51a5f6222
Fixed stub mechanic.
14 years ago
Daniel Grunwald
3ac1e560ec
Fix icsharpcode/NRefactory#22 : Event accessors should be called add_X and remove_X
14 years ago
Mike Krüger
90bf204c7f
Moved the roles class out of AstNode.
14 years ago
Daniel Grunwald
3215504223
Fix icsharpcode/NRefactory#20 : Copy virtual/override/static/etc. modifiers from properties/events to accessor methods.
14 years ago
Daniel Grunwald
3fbcf2f7d0
Add support for partial methods.
14 years ago
Daniel Grunwald
fe8e098a27
Fixed some FxCop warnings.
14 years ago
Daniel Grunwald
a353f23d70
Combine AttributedNode and MemberDeclaration into EntityDeclaration.
14 years ago
Daniel Grunwald
a993df9090
Use simpler IAstVisitor for InsertParenthesesVisitor and TypeSystemConvertVisitor.
14 years ago
Daniel Grunwald
14bf452879
Rename InterfaceImplementations -> ImplementedInterfaceMembers.
14 years ago
Daniel Grunwald
18c96e089d
Add support for multiline XML documentation comments.
14 years ago