Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsduck
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
extjs
jsduck
Commits
a4ed5e49
Commit
a4ed5e49
authored
12 years ago
by
Rene Saarsoo
Browse files
Options
Downloads
Patches
Plain Diff
Prototype of @cfg tag implemented as a class.
parent
6479097a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/jsduck/builtins/cfg.rb
+24
-0
24 additions, 0 deletions
lib/jsduck/builtins/cfg.rb
with
24 additions
and
0 deletions
lib/jsduck/builtins/cfg.rb
0 → 100644
+
24
−
0
View file @
a4ed5e49
module
JsDuck::Builtins
# Implementation of @cfg tag.
class
Cfg
def
initialize
@pattern
=
"cfg"
end
def
parse
(
p
)
p
.
add_tag
(
:cfg
)
p
.
maybe_type
p
.
maybe_name_with_default
maybe_required
(
p
)
end
# matches: "(required)"
def
maybe_required
(
p
)
p
.
skip_horiz_white
if
p
.
look
(
/\(required\)/i
)
p
.
match
(
/\(required\)/i
)
p
.
current_tag
[
:optional
]
=
false
end
end
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment