-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JS: Improve completion for property chain (obj.prop1.prop2) with embe…
…dded comments and new lines
- Loading branch information
1 parent
bb2d43f
commit 9766a62
Showing
36 changed files
with
439 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
webcommon/javascript2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_0.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
impo |
6 changes: 6 additions & 0 deletions
6
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_0.js.testGH5919_0_1.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
impo| | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS import [PUBLIC] metaproperties.js | ||
KEYWORD import ECMAScript 6 - 2015 |
23 changes: 23 additions & 0 deletions
23
webcommon/javascript2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import.meta.url; | ||
function dummy() { | ||
new.target; | ||
} |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js.testGH5919_1_1.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import.|meta.url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS meta [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js.testGH5919_1_2.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import.me|ta.url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS meta [PUBLIC] metaproperties.js |
6 changes: 6 additions & 0 deletions
6
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js.testGH5919_1_3.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
import.meta.|url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD resolve(moduleName: String): S [PUBLIC] <font color=#999999>metaproperties.js</font> | ||
FIELD url: null|String [PUBLIC] <font color=#999999>metaproperties.js</font> |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js.testGH5919_1_4.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import.meta.ur|l; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
FIELD url: null|String [PUBLIC] <font color=#999999>metaproperties.js</font> |
6 changes: 6 additions & 0 deletions
6
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js.testGH5919_1_5.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
ne|w.target; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS new [PUBLIC] metaproperties.js | ||
KEYWORD new null |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js.testGH5919_1_6.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
new.|target; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD target(): undefined [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_1.js.testGH5919_1_7.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
new.targ|et; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD target(): undefined [PUBLIC] metaproperties.js |
23 changes: 23 additions & 0 deletions
23
webcommon/javascript2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import/*dummy*/.meta.url; | ||
function dummy() { | ||
new/*dummy*/.target; | ||
} |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js.testGH5919_2_1.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import/*dummy*/.|meta.url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS meta [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js.testGH5919_2_2.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import/*dummy*/.me|ta.url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS meta [PUBLIC] metaproperties.js |
6 changes: 6 additions & 0 deletions
6
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js.testGH5919_2_3.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
import/*dummy*/.meta.|url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD resolve(moduleName: String): S [PUBLIC] <font color=#999999>metaproperties.js</font> | ||
FIELD url: null|String [PUBLIC] <font color=#999999>metaproperties.js</font> |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js.testGH5919_2_4.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import/*dummy*/.meta.ur|l; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
FIELD url: null|String [PUBLIC] <font color=#999999>metaproperties.js</font> |
6 changes: 6 additions & 0 deletions
6
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js.testGH5919_2_5.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
ne|w/*dummy*/.target; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS new [PUBLIC] metaproperties.js | ||
KEYWORD new null |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js.testGH5919_2_6.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
new/*dummy*/.|target; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD target(): undefined [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_2.js.testGH5919_2_7.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
new/*dummy*/.targ|et; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD target(): undefined [PUBLIC] metaproperties.js |
23 changes: 23 additions & 0 deletions
23
webcommon/javascript2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import/*dummy*/./*dummy*/meta.url; | ||
function dummy() { | ||
new/*dummy*/./*dummy*/target; | ||
} |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_1.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import/*dummy*/.|/*dummy*/meta.url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS meta [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_2.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import/*dummy*/./*dummy*/|meta.url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS meta [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_3.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import/*dummy*/./*dummy*/me|ta.url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS meta [PUBLIC] metaproperties.js |
6 changes: 6 additions & 0 deletions
6
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_4.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
import/*dummy*/./*dummy*/meta.|url; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD resolve(moduleName: String): S [PUBLIC] <font color=#999999>metaproperties.js</font> | ||
FIELD url: null|String [PUBLIC] <font color=#999999>metaproperties.js</font> |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_5.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
import/*dummy*/./*dummy*/meta.ur|l; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
FIELD url: null|String [PUBLIC] <font color=#999999>metaproperties.js</font> |
6 changes: 6 additions & 0 deletions
6
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_6.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Code completion result for source line: | ||
ne|w/*dummy*/./*dummy*/target; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
CLASS new [PUBLIC] metaproperties.js | ||
KEYWORD new null |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_7.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
new/*dummy*/.|/*dummy*/target; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD target(): undefined [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_8.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
new/*dummy*/./*dummy*/|target; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD target(): undefined [PUBLIC] metaproperties.js |
5 changes: 5 additions & 0 deletions
5
...2.editor/test/unit/data/testfiles/completion/gh5919/gh5919_3.js.testGH5919_3_9.completion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Code completion result for source line: | ||
new/*dummy*/./*dummy*/targ|et; | ||
(QueryType=COMPLETION, prefixSearch=true, caseSensitive=true) | ||
------------------------------------ | ||
METHOD target(): undefined [PUBLIC] metaproperties.js |
24 changes: 24 additions & 0 deletions
24
...unit/data/testfiles/ecmascript6/parser/ES6/meta-property/import-meta-resolve-multiline.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import( | ||
import | ||
.meta | ||
.resolve("demo") | ||
); |
54 changes: 54 additions & 0 deletions
54
...a/testfiles/ecmascript6/parser/ES6/meta-property/import-meta-resolve-multiline.js.ast.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
|
||
<FunctionNode name='import-meta-resolve-multiline.js' kind='MODULE' start='0' end='870'> | ||
<isProgram/> | ||
<!-- FunctionNode Parameters --> | ||
<!-- FunctionNode Body --> | ||
<Block start='0' end='869'> | ||
<isFunctionBody/> | ||
<isSynthetic/> | ||
<!-- Block Statements --> | ||
<ExpressionStatement start='809' end='869'> | ||
<CallNode start='809' end='868'> | ||
<!-- CallNode Arguments --> | ||
<CallNode start='821' end='866'> | ||
<!-- CallNode Arguments --> | ||
<StringLiteralNode value='demo' start='860' end='864'/> | ||
<!-- CallNode Function --> | ||
<AccessNode property='resolve' start='821' end='858'> | ||
<!-- AccessNode Base --> | ||
<AccessNode property='meta' start='821' end='841'> | ||
<!-- AccessNode Base --> | ||
<IdentNode start='821' end='827'> | ||
<name>import</name> | ||
</IdentNode> | ||
</AccessNode> | ||
</AccessNode> | ||
</CallNode> | ||
<!-- CallNode Function --> | ||
<IdentNode start='815' end='815'> | ||
<name>import</name> | ||
</IdentNode> | ||
</CallNode> | ||
</ExpressionStatement> | ||
</Block> | ||
</FunctionNode> |
Oops, something went wrong.