Browse Source

reverted assignment of locations to special TypeReferences - cannot use Clone() because it would destroy referential equality

pull/2/head
Siegfried Pammer 16 years ago
parent
commit
4894432a83
  1. 2637
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs
  2. 16
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

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

File diff suppressed because it is too large Load Diff

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

@ -445,18 +445,10 @@ TypeParameterConstraints<TemplateDefinition template>
TypeParameterConstraint<out TypeReference constraint> TypeParameterConstraint<out TypeReference constraint>
(. constraint = null; Location startLocation = la.Location; .) (. constraint = null; Location startLocation = la.Location; .)
= =
( "Class" (. constraint = TypeReference.ClassConstraint; .)
"Class" (. constraint = TypeReference.ClassConstraint.Clone(); .) | "Structure" (. constraint = TypeReference.StructConstraint; .)
| "Structure" (. constraint = TypeReference.StructConstraint.Clone(); .) | "New" (. constraint = TypeReference.NewConstraint; .)
| "New" (. constraint = TypeReference.NewConstraint.Clone(); .) | TypeName<out constraint>
| TypeName<out constraint>
)
(.
if (constraint != null) {
constraint.StartLocation = startLocation;
constraint.EndLocation = t.EndLocation;
}
.)
. .
/* 6.4.2 */ /* 6.4.2 */

Loading…
Cancel
Save