~zorba-coders/zorba/no-copy

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/no-copy/eval15.xq

  • Committer: Markos Zaharioudakis
  • Date: 2012-10-09 16:33:56 UTC
  • Revision ID: markos_za@yahoo.com-20121009163356-a6x6g6eklmu17ega
fixed bug #1021492

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import module namespace refl = "http://www.zorba-xquery.com/modules/reflection";
 
2
 
 
3
declare namespace an = "http://www.zorba-xquery.com/annotations";
 
4
 
 
5
 
 
6
declare variable $local:account  := ();
 
7
 
 
8
 
 
9
declare function local:get-by-id($id as xs:string)
 
10
{
 
11
  ()
 
12
};
 
13
 
 
14
 
 
15
declare %an:sequential function local:validate() as xs:boolean 
 
16
{
 
17
  variable $uid := "user";
 
18
  
 
19
  if (true())
 
20
  then 
 
21
    let $account := local:get-by-id($uid)
 
22
    return 
 
23
      if (true())
 
24
      then
 
25
        if (true())
 
26
        then 
 
27
        {
 
28
          $local:account := $account;
 
29
          true()
 
30
        } 
 
31
        else ()
 
32
      else ()
 
33
  else ()
 
34
};
 
35
 
 
36
 
 
37
declare function local:index() 
 
38
{
 
39
  ()
 
40
};
 
41
 
 
42
 
 
43
refl:eval("local:index()")