diff options
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java index d497b3437..e47ad78af 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/IProblem.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation * IBM Corporation - added the following constants @@ -216,7 +216,18 @@ * RepeatableAnnotationIsDocumented * RepeatableAnnotationIsInherited * RepeatableAnnotationWithRepeatingContainerAnnotation -*******************************************************************************/ + * VarLocalMultipleDeclarators + * VarLocalCannotBeArray + * VarLocalReferencesItself + * VarLocalWithoutInitizalier + * VarLocalInitializedToNull + * VarLocalCannotBeArrayInitalizers + * VarLocalCannotBeLambda + * VarLocalCannotBeMethodReference + * VarIsReserved + * VarIsReservedInFuture + * VarIsNotAllowedHere +******************************************************************************/ package org.eclipse.jdt.core.compiler; import org.eclipse.jdt.internal.compiler.lookup.ProblemReasons; @@ -2018,6 +2029,32 @@ void setSourceStart(int sourceStart); /** @since 3.13 */ int UnlikelyEqualsArgumentType = 1201; + /* Local-Variable Type Inference */ + /** @since 3.14 */ + int VarLocalMultipleDeclarators = Syntax + 1500; // ''var'' is not allowed in a compound declaration + /** @since 3.14 */ + int VarLocalCannotBeArray = Syntax + 1501; // ''var'' is not allowed as an element type of an array + /** @since 3.14 */ + int VarLocalReferencesItself = Syntax + 1502; // Declaration using ''var'' may not contin references to itself + /** @since 3.14 */ + int VarLocalWithoutInitizalier = Syntax + 1503; // Cannot use ''var'' on variable without initializer + /** @since 3.14 */ + int VarLocalInitializedToNull = TypeRelated + 1504; // Variable initialized to ''null'' needs an explicit target-type + /** @since 3.14 */ + int VarLocalInitializedToVoid = TypeRelated + 1505; // Variable initializer is ''void'' -- cannot infer variable type + /** @since 3.14 */ + int VarLocalCannotBeArrayInitalizers = TypeRelated + 1506; // Array initializer needs an explicit target-type + /** @since 3.14 */ + int VarLocalCannotBeLambda = TypeRelated + 1507; // Lambda expression needs an explicit target-type + /** @since 3.14 */ + int VarLocalCannotBeMethodReference = TypeRelated + 1508; // Method reference needs an explicit target-type + /** @since 3.14 */ + int VarIsReserved = Syntax + 1509; // ''var'' is not a valid type name + /** @since 3.14 */ + int VarIsReservedInFuture = Syntax + 1510; // ''var'' should not be used as an type name, since it is a reserved word from source level 10 on + /** @since 3.14 */ + int VarIsNotAllowedHere = Syntax + 1511; // ''var'' is not allowed here + //{ObjectTeams: int OTJ_RELATED = 1000000; int OTCHAP = 100000; |