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

Loading…
Cancel
Save