Siegfried Pammer 15 years ago
parent
commit
dc058ae3a9
  1. 2342
      src/Libraries/NRefactory/Project/Src/Parser/CSharp/Parser.cs
  2. 1705
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/Parser.cs
  3. 26
      src/Libraries/NRefactory/Project/Src/Parser/VBNet/VBNET.ATG

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

File diff suppressed because it is too large Load Diff

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

File diff suppressed because it is too large Load Diff

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

@ -1222,22 +1222,19 @@ StructureMemberDecl<ModifierList m, List<AttributeSection> attributes>
Location startPos = t.Location; Location startPos = t.Location;
TypeReference returnType = NullTypeReference.Instance; TypeReference returnType = NullTypeReference.Instance;
TypeReference operandType = NullTypeReference.Instance; TypeReference operandType = NullTypeReference.Instance;
string operandName;
OverloadableOperatorType operatorType; OverloadableOperatorType operatorType;
AttributeSection section; AttributeSection section;
ParameterDeclarationExpression param;
List<ParameterDeclarationExpression> parameters = new List<ParameterDeclarationExpression>(); List<ParameterDeclarationExpression> parameters = new List<ParameterDeclarationExpression>();
.) .)
OverloadableOperator<out operatorType> OverloadableOperator<out operatorType>
"(" [ "ByVal" ] Identifier (. operandName = t.val; .) "("
[ "As" TypeName<out operandType> ] FormalParameter<out param>
(. parameters.Add(new ParameterDeclarationExpression(operandType, operandName, ParameterModifiers.In)); .) (. if (param != null) parameters.Add(param); .)
[
{ "," FormalParameter<out param>
"," (. if (param != null) parameters.Add(param); .)
[ "ByVal" ] Identifier (. operandName = t.val; .) ]
[ "As" TypeName<out operandType> ]
(. parameters.Add(new ParameterDeclarationExpression(operandType, operandName, ParameterModifiers.In)); .)
}
")" ")"
(. Location endPos = t.EndLocation; .) (. Location endPos = t.EndLocation; .)
[ "As" { AttributeSection<out section> [ "As" { AttributeSection<out section>
@ -2874,9 +2871,9 @@ AttributeSection<out AttributeSection section>
FormalParameterList<List<ParameterDeclarationExpression> parameter> FormalParameterList<List<ParameterDeclarationExpression> parameter>
(. ParameterDeclarationExpression p; .) (. ParameterDeclarationExpression p; .)
= =
FormalParameter <out p> (. if (p != null) parameter.Add(p); .) FormalParameter<out p> (. if (p != null) parameter.Add(p); .)
{ "," { ","
FormalParameter <out p> (. if (p != null) parameter.Add(p); .) FormalParameter<out p> (. if (p != null) parameter.Add(p); .)
} }
. .
/* 9.2.5 */ /* 9.2.5 */
@ -2889,6 +2886,7 @@ FormalParameter<out ParameterDeclarationExpression p>
Expression expr = null; Expression expr = null;
p = null; p = null;
ArrayList arrayModifiers = null; ArrayList arrayModifiers = null;
Location startLocation = la.Location;
.) .)
= =
{ AttributeSection<out section> (. attributes.Add(section); .) } { AttributeSection<out section> (. attributes.Add(section); .) }
@ -2912,6 +2910,8 @@ FormalParameter<out ParameterDeclarationExpression p>
mod.Check(); mod.Check();
p = new ParameterDeclarationExpression(type, parameterName, mod.Modifier, expr); p = new ParameterDeclarationExpression(type, parameterName, mod.Modifier, expr);
p.Attributes = attributes; p.Attributes = attributes;
p.StartLocation = startLocation;
p.EndLocation = t.EndLocation;
.) .)
. .

Loading…
Cancel
Save