Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[[ Bug 20874 ]] Fix incorrect private imports from assembly support module #6282

Merged
merged 1 commit into from
Jan 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 5 docs/lcb/notes/20874.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# LiveCode Builder Tools
## lc-compile

# [20874] Take access type into account when importing assembly support module definitions

39 changes: 21 additions & 18 deletions 39 toolchain/lc-compile/src/bind.g
Original file line number Diff line number Diff line change
Expand Up @@ -136,29 +136,29 @@
'rule' DeclareImportedDefinitions(Module, unsafe(_, Definition)):
DeclareImportedDefinitions(Module, Definition)

'rule' DeclareImportedDefinitions(Module, type(Position, _, Name, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, type(Position, Access, Name, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, constant(Position, _, Name, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, constant(Position, Access, Name, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, variable(Position, _, Name, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, variable(Position, Access, Name, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, handler(Position, _, Name, _, _, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, handler(Position, Access, Name, _, _, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, foreignhandler(Position, _, Name, _, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, foreignhandler(Position, Access, Name, _, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, property(Position, _, Name, _, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, property(Position, Access, Name, _, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, event(Position, _, Name, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, event(Position, Access, Name, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, syntax(Position, _, Name, _, _, _, _)):
DeclareImportedId(Module, Name)
'rule' DeclareImportedDefinitions(Module, syntax(Position, Access, Name, _, _, _, _)):
DeclareImportedId(Module, Access, Name)

'rule' DeclareImportedDefinitions(Module, metadata(_, _, _)):
-- do nothing
Expand Down Expand Up @@ -631,12 +631,15 @@

'condition' ResolveNamespace(OPTIONALID -> NAME)

'action' DeclareImportedId(ID, ID)
'action' DeclareImportedId(ID, ACCESS, ID)

'rule' DeclareImportedId(Namespace, Id):
'rule' DeclareImportedId(Namespace, public, Id):
Id'Namespace <- id(Namespace)
DeclareNamespacedId(Id)

'rule' DeclareImportedId(Namespace, Access, Id):
-- don't import non-public ids

-- Ensure all module-level declarations have module namespace
'action' DeclareId(ID)

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.