Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function visibility #3

Closed
isudana opened this issue Nov 21, 2016 · 3 comments
Closed

Function visibility #3

isudana opened this issue Nov 21, 2016 · 3 comments

Comments

@isudana
Copy link
Contributor

isudana commented Nov 21, 2016

Currently all the functions are visible to everyone (anyone can import and use).
We have the requirement to make some of the functions private to the package (mainly for implementing connectors).

@isudana
Copy link
Contributor Author

isudana commented Nov 21, 2016

Agreed on that we need visibility levels, yet to finalize keywords.

@isudana
Copy link
Contributor Author

isudana commented Nov 22, 2016

Based on the discussion held on 21/11, our current state is as follows,

  • We need to have visibility levels.
  • All functions of a package is visible to everywhere in the same package
  • No relationship with files and visibility levels of functions, everything is decided based on the packages
  • By default no function is visible outside the package, if we want we can make them visible by adding keyword 'public' or similar keyword.
  • Keyword to make the function visible to outside is not yet finalized
  • Still we have no agreement on visibility of Resources, we know that it is visible to the external world, but not decided on whether we need visibility levels for Resources within Ballerina code.

@isudana
Copy link
Contributor Author

isudana commented Nov 22, 2016

Keyword is "public"

Visibility of the Resources, is something we don't need to worry about as they are not callable.

@isudana isudana closed this as completed Nov 22, 2016
sumuditha-viraj pushed a commit that referenced this issue Jan 3, 2017
maheeka pushed a commit that referenced this issue Feb 2, 2017
revert action-invocation-statement changes
sameerajayasoma pushed a commit that referenced this issue Feb 19, 2017
Shan1024 referenced this issue in Shan1024/ballerina Feb 21, 2017
Megala21 added a commit to Megala21/ballerina that referenced this issue Feb 22, 2017
…se-fixes

Removing parameter from file connector docs.
kasun04 pushed a commit that referenced this issue Mar 7, 2017
lankavitharana pushed a commit that referenced this issue Jul 21, 2017
Update interceptors to read from balx and fix test failures.
irunika pushed a commit to irunika/ballerina that referenced this issue Aug 17, 2017
chamil321 referenced this issue in chamil321/ballerina Sep 8, 2017
Add request response signature annotations
chamil321 referenced this issue in chamil321/ballerina Oct 31, 2017
Add default path for config file location
Shan1024 pushed a commit that referenced this issue Feb 6, 2018
MaryamZi referenced this issue in MaryamZi/ballerina Mar 4, 2018
Where clause support for Ballerina Stream/Table
Anoukh referenced this issue in Anoukh/ballerina-lang Mar 5, 2018
Rename the function that gets all headers from mime:Entity
afkham added a commit that referenced this issue Mar 6, 2018
MaryamZi referenced this issue in MaryamZi/ballerina Mar 6, 2018
Introduce independent names for streams' topics
hasithaa pushed a commit that referenced this issue Jun 12, 2018
Fix Test Failures for orgName revamp
rasika referenced this issue in rasika/ballerina-lang Jun 19, 2018
This fix make use of two extension points in the ANTLR default
ErrorHandler; reportMatch() and sync().

reportMatch() triggered per each successfull token match. When we are in
a token match this validates whether we're in the last terminating
token(i.e. '}','{',',',';').

Refer below example;

1. import ballerina/http;
2. import ballerina/io;
3. import ballerina/|

Suppose your cursor is at the end of the line #3. Your last terminating
token is the ';' in the line #2. If the current token of the parser is
above last terminating token; we'll remove/consume all future tokens
up to the current cursor position.

sync() triggered before any decision point in the parser. When we are in
a sync() hit; we'll analyze whether the cursor is just after the first
token of the cursor line. Whenever; sync hits before mentioned token it
will be removed/consumed by the CustomErrorStrategy.
nadeeshaan referenced this issue in nadeeshaan/ballerina Aug 29, 2018
Add signature help and hover support for new doc syntax
gimantha added a commit that referenced this issue Sep 20, 2018
Refactor and add test cases streaming v2
Kishanthan pushed a commit that referenced this issue Dec 4, 2018
Change OrderedHashSet to LinkedHashSet
anupama-pathirage pushed a commit that referenced this issue Dec 4, 2018
hasithaa pushed a commit that referenced this issue Mar 30, 2019
Add formatting support for extern lang change
warunalakshitha pushed a commit that referenced this issue May 31, 2019
BIR gen crypto, file, log, math, reflect and time modules
hasithaa added a commit that referenced this issue Aug 31, 2019
shafreenAnfar pushed a commit that referenced this issue Mar 12, 2020
…pes-pr

Xml remove old on xml named types pr
shafreenAnfar pushed a commit that referenced this issue Apr 2, 2020
mohanvive added a commit that referenced this issue Apr 28, 2020
ldclakmal added a commit that referenced this issue May 12, 2020
nadeeshaan referenced this issue in nadeeshaan/ballerina Jun 15, 2020
Fix failing annotation completion tests
azinneera pushed a commit to azinneera/ballerina-lang that referenced this issue Oct 16, 2020
…rj_api_module_refactor

Fix executable jar creation
CharukaK pushed a commit to CharukaK/ballerina that referenced this issue Dec 2, 2020
…tion

Add category label to Ballerina connectors
rpjayasekara added a commit to rpjayasekara/ballerina-lang that referenced this issue Jun 25, 2021
rdhananjaya pushed a commit that referenced this issue Aug 30, 2021
nadeeshaan added a commit that referenced this issue Nov 26, 2021
Change diagnostic extension to use cloned project
anupama-pathirage pushed a commit that referenced this issue Jun 15, 2022
Add resource and module part missing commits
dilanSachi added a commit that referenced this issue Nov 9, 2022
gimantha added a commit that referenced this issue Feb 20, 2023
dulajdilshan added a commit that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant