fcshd 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -0
- data/bin/fcshc +4 -2
- data/lib/fcshd/transcript-item.rb +16 -16
- data/lib/fcshd/version.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/bin/fcshc
CHANGED
@@ -199,8 +199,10 @@ if $run_compilation
|
|
199
199
|
case $source_files.size
|
200
200
|
when 0
|
201
201
|
die "missing main application source file"
|
202
|
-
when 1
|
203
|
-
|
202
|
+
when 1
|
203
|
+
$source_file = $source_files.first
|
204
|
+
else
|
205
|
+
die "multiple source files not allowed when compiling SWF"
|
204
206
|
end
|
205
207
|
|
206
208
|
if $directories.empty?
|
@@ -44,14 +44,14 @@ module FCSHD
|
|
44
44
|
|
45
45
|
def parsed_message
|
46
46
|
case FCSHD.trim(mxmlc_message).sub(/^Error: /, "")
|
47
|
-
when "Unable to resolve MXML language version. Please specify the language namespace on the root document tag."
|
47
|
+
when "Unable to resolve MXML language version. Please specify the language namespace on the root document tag." then <<EOF
|
48
48
|
error: missing MXML version
|
49
49
|
error: hint: xmlns:fx="library://ns.adobe.com/mxml/2009"
|
50
50
|
error: hint: xmlns="library://ns.adobe.com/flex/spark"
|
51
51
|
error: hint: xmlns:mx="library://ns.adobe.com/flex/mx" (Flex 4)
|
52
52
|
error: hint: xmlns="http://www.adobe.com/2006/mxml" (Flex 3)
|
53
53
|
EOF
|
54
|
-
when /^Incorrect number of arguments. Expected (\d+)
|
54
|
+
when /^Incorrect number of arguments. Expected (\d+)\.$/ then <<EOF
|
55
55
|
error: expected #$1 arguments
|
56
56
|
EOF
|
57
57
|
when
|
@@ -61,7 +61,7 @@ EOF
|
|
61
61
|
then <<EOF
|
62
62
|
error: #{quote $1} undeclared in #{name $2}
|
63
63
|
EOF
|
64
|
-
when /^Attempted access of inaccessible property (.+) through a reference with static type (.+)
|
64
|
+
when /^Attempted access of inaccessible property (.+) through a reference with static type (.+)\.$/ then <<EOF
|
65
65
|
error: #{quote $1} inaccessible in #{name $2}
|
66
66
|
EOF
|
67
67
|
when
|
@@ -82,7 +82,7 @@ error: hint: import #{package}.#$1
|
|
82
82
|
EOF
|
83
83
|
end
|
84
84
|
end
|
85
|
-
when /^Definition (.+) could not be found
|
85
|
+
when /^Definition (.+) could not be found\.$/ then <<EOF
|
86
86
|
error: #{quote $1} not found
|
87
87
|
EOF
|
88
88
|
when /^Implicit coercion of a value of type (.+) to an unrelated type (.+)\.$/, /^Implicit coercion of a value with static type (.+) to a possibly unrelated type (.+)\./
|
@@ -93,16 +93,16 @@ error: expected #{format_type(expected)} (got #{format_type(actual)})
|
|
93
93
|
EOF
|
94
94
|
error: expected #{expected} (got #{actual})
|
95
95
|
EOF
|
96
|
-
when "Method marked override must override another method."
|
96
|
+
when "Method marked override must override another method." then <<EOF
|
97
97
|
error: overriding nonexistent method
|
98
98
|
EOF
|
99
|
-
when "Overriding a function that is not marked for override."
|
99
|
+
when "Overriding a function that is not marked for override." then <<EOF
|
100
100
|
error: unmarked override
|
101
101
|
EOF
|
102
|
-
when "Incompatible override."
|
102
|
+
when "Incompatible override." then <<EOF
|
103
103
|
error: incompatible override
|
104
104
|
EOF
|
105
|
-
when /^Ambiguous reference to (.+)
|
105
|
+
when /^Ambiguous reference to (.+)\.$/ then <<EOF
|
106
106
|
error: #{quote $1} is ambiguous
|
107
107
|
EOF
|
108
108
|
when /^Can not resolve a multiname reference unambiguously. (\S+) \(from ([^)]+)\) and (\S+) \(from ([^)]+)\) are available\.$/
|
@@ -114,7 +114,7 @@ error: conflicting definition
|
|
114
114
|
EOF
|
115
115
|
error: conflicting definition
|
116
116
|
EOF
|
117
|
-
when /^A conflict exists with definition (.+) in namespace internal
|
117
|
+
when /^A conflict exists with definition (.+) in namespace internal\.$/ then <<EOF
|
118
118
|
error: #{quote $1} conflicts with an internal name
|
119
119
|
EOF
|
120
120
|
when
|
@@ -125,25 +125,25 @@ EOF
|
|
125
125
|
<<EOF
|
126
126
|
error: #{who} missing type declaration
|
127
127
|
EOF
|
128
|
-
when /^A file found in a source-path must have the same package structure '(.*)', as the definition's package, '(.*)'
|
128
|
+
when /^A file found in a source-path must have the same package structure '(.*)', as the definition's package, '(.*)'\.$/ then <<EOF
|
129
129
|
error: package should be #{quote $1}
|
130
130
|
EOF
|
131
|
-
when /^Comparison between a value with static type (.+) and a possibly unrelated type (.+)
|
131
|
+
when /^Comparison between a value with static type (.+) and a possibly unrelated type (.+)\.$/ then <<EOF
|
132
132
|
error: comparing #$1 to #$2
|
133
133
|
EOF
|
134
|
-
when "Illegal assignment to a variable specified as constant."
|
134
|
+
when "Illegal assignment to a variable specified as constant." then <<EOF
|
135
135
|
error: modifying constant
|
136
136
|
EOF
|
137
|
-
when "Function does not have a body."
|
137
|
+
when "Function does not have a body." then <<EOF
|
138
138
|
error: missing function body"
|
139
139
|
EOF
|
140
|
-
when "Return type of a setter definition must be unspecified or void."
|
140
|
+
when "Return type of a setter definition must be unspecified or void." then <<EOF
|
141
141
|
error: setter must return void"
|
142
142
|
EOF
|
143
|
-
when "Function does not return a value."
|
143
|
+
when "Function does not return a value." then <<EOF
|
144
144
|
error: missing return statement"
|
145
145
|
EOF
|
146
|
-
when "Syntax error: expecting identifier before rightparen."
|
146
|
+
when "Syntax error: expecting identifier before rightparen." then <<EOF
|
147
147
|
error: #{quote ")"} unexpected"
|
148
148
|
EOF
|
149
149
|
when
|
data/lib/fcshd/version.rb
CHANGED