Merge pull request #1950 from ericvergnaud/fix-naming-issue

fix inconsistent naming in target stg
This commit is contained in:
Terence Parr 2017-09-17 11:18:44 -07:00 committed by GitHub
commit f8b272a721
3 changed files with 6 additions and 6 deletions

View File

@ -36,12 +36,12 @@
* REQUIRED.
*/
pythonTypeInitMap ::= [
"bool":"False",
javascriptTypeInitMap ::= [
"bool":"false",
"int":"0",
"float":"0.0",
"str":"",
default:"None" // anything other than a primitive type is an object
default:"{}" // anything other than a primitive type is an object
]
// args must be <object-model-object>, <fields-resulting-in-STs>
@ -863,7 +863,7 @@ var serializedATN = ["<model.serialized; wrap={",<\n> "}>"].join("");
* must be an object, default value is "null".
*/
initValue(typeName) ::= <<
<javaTypeInitMap.(typeName)>
<javacriptTypeInitMap.(typeName)>
>>
codeFileExtension() ::= ".js"

View File

@ -809,7 +809,7 @@ def serializedATN():
* must be an object, default value is "null".
*/
initValue(typeName) ::= <<
<javaTypeInitMap.(typeName)>
<pythonTypeInitMap.(typeName)>
>>
codeFileExtension() ::= ".py"

View File

@ -816,7 +816,7 @@ def serializedATN():
* must be an object, default value is "null".
*/
initValue(typeName) ::= <<
<javaTypeInitMap.(typeName)>
<pythonTypeInitMap.(typeName)>
>>
codeFileExtension() ::= ".py"