Browse Source

removed detection of ExtensionAttribute, because it works only in some cases.

pull/2/head
Siegfried Pammer 16 years ago
parent
commit
2d289a5d26
  1. 2342
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs
  2. 6
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

2342
src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs

File diff suppressed because it is too large Load Diff

6
src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

@ -871,8 +871,7 @@ StructureMemberDecl<ModifierList m, List<AttributeSection> attributes> @@ -871,8 +871,7 @@ StructureMemberDecl<ModifierList m, List<AttributeSection> attributes>
TypeReference = new TypeReference("System.Void", true),
Templates = templates,
HandlesClause = handlesClause,
InterfaceImplementations = implementsClause,
IsExtensionMethod = attributes.Any(section => section.Attributes.Any(a => a.Name.Contains("Extension")))
InterfaceImplementations = implementsClause
};
AddChild(methodDeclaration);
.)
@ -980,8 +979,7 @@ StructureMemberDecl<ModifierList m, List<AttributeSection> attributes> @@ -980,8 +979,7 @@ StructureMemberDecl<ModifierList m, List<AttributeSection> attributes>
EndLocation = endLocation,
Templates = templates,
HandlesClause = handlesClause,
InterfaceImplementations = implementsClause,
IsExtensionMethod = attributes.Any(section => section.Attributes.Any(a => a.Name.Contains("Extension")))
InterfaceImplementations = implementsClause
};
AddChild(methodDeclaration);

Loading…
Cancel
Save