OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_AST_AST_H_ | 5 #ifndef V8_AST_AST_H_ |
6 #define V8_AST_AST_H_ | 6 #define V8_AST_AST_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/ast/ast-value-factory.h" | 9 #include "src/ast/ast-value-factory.h" |
10 #include "src/ast/modules.h" | 10 #include "src/ast/modules.h" |
(...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2934 | 2934 |
2935 | 2935 |
2936 // Nodes for the optional type system. | 2936 // Nodes for the optional type system. |
2937 namespace typesystem { | 2937 namespace typesystem { |
2938 | 2938 |
2939 enum TypeFlagsEnum { | 2939 enum TypeFlagsEnum { |
2940 kNormalTypes = 0, | 2940 kNormalTypes = 0, |
2941 kDisallowTypeParameters = 1 << 0, | 2941 kDisallowTypeParameters = 1 << 0, |
2942 kDisallowTypeAnnotation = 1 << 1, | 2942 kDisallowTypeAnnotation = 1 << 1, |
2943 kAllowSignature = 1 << 2, | 2943 kAllowSignature = 1 << 2, |
2944 kConstructorTypes = kDisallowTypeParameters | kDisallowTypeAnnotation | 2944 kDisallowBody = 1 << 3, |
| 2945 kConstructorTypes = kDisallowTypeParameters | kDisallowTypeAnnotation, |
| 2946 kAmbient = kAllowSignature | kDisallowBody |
2945 }; | 2947 }; |
2946 | 2948 |
2947 typedef base::Flags<TypeFlagsEnum> TypeFlags; | 2949 typedef base::Flags<TypeFlagsEnum> TypeFlags; |
2948 | 2950 |
2949 class FormalParameter; | 2951 class FormalParameter; |
2950 | 2952 |
2951 | 2953 |
2952 // Abstract class for all types. | 2954 // Abstract class for all types. |
2953 // It also covers: binding identifiers, binding (array and object) patterns | 2955 // It also covers: binding identifiers, binding (array and object) patterns |
2954 // and formal parameter lists. | 2956 // and formal parameter lists. |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4112 : NULL; \ | 4114 : NULL; \ |
4113 } | 4115 } |
4114 TYPESYSTEM_NODE_LIST(DECLARE_NODE_FUNCTIONS) | 4116 TYPESYSTEM_NODE_LIST(DECLARE_NODE_FUNCTIONS) |
4115 #undef DECLARE_NODE_FUNCTIONS | 4117 #undef DECLARE_NODE_FUNCTIONS |
4116 | 4118 |
4117 | 4119 |
4118 } // namespace internal | 4120 } // namespace internal |
4119 } // namespace v8 | 4121 } // namespace v8 |
4120 | 4122 |
4121 #endif // V8_AST_AST_H_ | 4123 #endif // V8_AST_AST_H_ |
OLD | NEW |