mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
#10000=@"/restPatternWithDefault.ts;sourcefile"
|
|
files(#10000,"/restPatternWithDefault.ts")
|
|
#10001=@"/;folder"
|
|
folders(#10001,"/")
|
|
containerparent(#10001,#10000)
|
|
#10002=@"loc,{#10000},0,0,0,0"
|
|
locations_default(#10002,#10000,0,0,0,0)
|
|
hasLocation(#10000,#10002)
|
|
#20000=@"global_scope"
|
|
scopes(#20000,0)
|
|
#20001=@"script;{#10000},1,1"
|
|
toplevels(#20001,0)
|
|
#20002=@"loc,{#10000},1,1,1,1"
|
|
locations_default(#20002,#10000,1,1,1,1)
|
|
hasLocation(#20001,#20002)
|
|
#20003=*
|
|
js_parse_errors(#20003,#20001,"Error: Rest patterns cannot have a default value","[...x = a] = a; // Error, rest element cannot have initializer
|
|
")
|
|
#20004=@"loc,{#10000},3,5,3,5"
|
|
locations_default(#20004,#10000,3,5,3,5)
|
|
hasLocation(#20003,#20004)
|
|
#20005=*
|
|
lines(#20005,#20001,"var a: number[];","
|
|
")
|
|
#20006=@"loc,{#10000},1,1,1,16"
|
|
locations_default(#20006,#10000,1,1,1,16)
|
|
hasLocation(#20005,#20006)
|
|
#20007=*
|
|
lines(#20007,#20001,"var x: number[];","
|
|
")
|
|
#20008=@"loc,{#10000},2,1,2,16"
|
|
locations_default(#20008,#10000,2,1,2,16)
|
|
hasLocation(#20007,#20008)
|
|
#20009=*
|
|
lines(#20009,#20001,"[...x = a] = a; // Error, rest element cannot have initializer","
|
|
")
|
|
#20010=@"loc,{#10000},3,1,3,63"
|
|
locations_default(#20010,#10000,3,1,3,63)
|
|
hasLocation(#20009,#20010)
|
|
numlines(#20001,3,0,0)
|
|
numlines(#10000,3,0,0)
|
|
filetype(#10000,"typescript")
|