예제 #1
0
 private static void HandleCurrentPositionInMethodParameters(OPathParseResult parseResult, char opathChar)
 {
     if (IsClosingBracket(opathChar))
     {
         parseResult.CurrentPosition = OPathParsePosition.InVariableOPath;
         parseResult.AddOPathMethodPart();
     }
     else if (IsWhitespaceChar(opathChar))
     {
         // Ignore
     }
     else
     {
         throw new OPathException("Non-empty method starting at position " + (parseResult.MemberStartIndex + 1));
     }
 }